Tested with Joomla 3.5.0-dev, current master (as of 7abe00f).
Database Version MySQL 5.1.73 (mysqlnd 5.0.10)
Database Connection Collation utf8_general_ci
PHP Version 5.4.16
To test (requires using a system that does not support utf8mb4 -- see PR #7173):
Go to Extensions->Manage->Database:
Note the errors shown:
8 Database Problems found:
Table 'osvlt_banners' does not have column 'alias' with type 'varchar(191)'. (From file 3.5.0-2015-07-01.sql.)
Table 'osvlt_categories' does not have column 'alias' with type 'varchar(191)'. (From file 3.5.0-2015-07-01.sql.)
Table 'osvlt_contact_details' does not have column 'alias' with type 'varchar(191)'. (From file 3.5.0-2015-07-01.sql.)
Table 'osvlt_content' does not have column 'alias' with type 'varchar(191)'. (From file 3.5.0-2015-07-01.sql.)
Table 'osvlt_menu' does not have column 'alias' with type 'varchar(191)'. (From file 3.5.0-2015-07-01.sql.)
Table 'osvlt_newsfeeds' does not have column 'alias' with type 'varchar(191)'. (From file 3.5.0-2015-07-01.sql.)
Table 'osvlt_tags' does not have column 'alias' with type 'varchar(191)'. (From file 3.5.0-2015-07-01.sql.)
Table 'osvlt_ucm_content' does not have column 'core_alias' with type 'varchar(191)'. (From file 3.5.0-2015-07-01.sql.)
Tap the "Fix" button. Note the error:
An error has occurred.
1115 Unknown character set: 'utf8mb4' SQL=ALTER TABLE `osvlt_banners` MODIFY `alias` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '';
The errors obviously relate to PR #7173.
I'm not sure what the proper fix is, but I do see a couple things in that PR that I have questions about:
administrator/components/com_installer/models/database.php, line 266 has a hard-coded file name which doesn't actually exist: $fileName = JPATH_ADMINISTRATOR . "/components/com_admin/sql/updates/$serverType/3.5.0-2015-01-01.sql";
. I believe the file it is referring to is actually mysql/3.5.0-2015-07-01.sql
(note the different date).
As noted in the errors above, Numerous columns are reported as having an incorrect type. The SQL file attempts to set the type to varchar(191)
, but the actual type found in the database is varchar(255)
. So the SQL file is obviously not being applied properly (hence the errors). But that also raises the point that the default schema (installation/sql/mysql/joomla.sql
) needs updating so that the columns at issue are created as varchar(191)
, not varchar(255)
.
Labels |
Added:
?
|
Milestone |
Added: |
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-11-04 09:56:15 |
Closed_By | ⇒ | zero-24 |
Milestone |
Removed: |
I need to repopen this one as i have finaly broken my PR and no future idea how to fix the real problem :(
code can be found here: https://github.com/jah-tz/joomla-cms/tree/c6cb680fbb0e55fab3b4d8e726c9db5dd634c1d7
See the PR comments for more info: #8268
Status | Closed | ⇒ | New |
Closed_Date | 2015-11-04 09:56:14 | ⇒ | |
Closed_By | zero-24 | ⇒ |
Milestone |
Added: |
Milestone |
Added: |
||
Priority | Medium | ⇒ | Critical |
Status | New | ⇒ | Confirmed |
Category | ⇒ | SQL Updating |
Just to clarify -- the preceding comment by @zero-24 makes reference to an inability for users to update from 3.4 to 3.5 if they are using a mysql version that does not support utf8mb4. This new issue is not described anywhere here above, but instead is first described in this comment (and confirmed by another in later comments thereafter).
For parts of this issue, see #8376
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-11-17 21:47:32 |
Closed_By | ⇒ | roland-d |
Just did a clean install of the beta1 and got this error I did the fix and it corrected the error
Database Version 5.6.20
Database Collation utf8mb4_general_ci
Database Connection Collation utf8mb4_general_ci
PHP Version 5.6.7
Web Server Apache/2.4.10 (Win32) OpenSSL/1.0.1m PHP/5.6.7
WebServer to PHP Interface apache2handler
Joomla! Version Joomla! 3.5.0-beta Beta [ Ember ] 06-November-2015 24:00 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0
Hi @k4lch , I know it's been a long time since you reported it but me and @nikosdion have been going through this yesterday.
Would you be able to send me the information on your server set up - it's a new feature we have in 3.5. (see screenshot below) as we believe that this is a failure where your system wasn't detecting the utf8mb4 support properly to george.wilson@community.joomla.org so we can try and identify what we are detecting incorrectly. Don't worry - no personally identifiable information is sent
Thankyou! I did!
Closing as we have a PR that fixes the first and seccond point. I hope we can fix there the third point too. Thanks for reporting!