?
Referenced as Duplicate of: # 8368
avatar zjw
zjw
4 Nov 2015

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):

  • Perform a fresh install using the "Test English (GB) Sample Data"
  • Log in and configure:
    • Global Configuration->System Settings: Debug system = yes
    • Global Configuration->Server Settings: Error Reporting = Development

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:

  1. 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).

  2. 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).

avatar zjw zjw - open - 4 Nov 2015
avatar zero-24 zero-24 - change - 4 Nov 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 4 Nov 2015
Milestone Added:
avatar zero-24
zero-24 - comment - 4 Nov 2015

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!

avatar zero-24 zero-24 - change - 4 Nov 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-11-04 09:56:15
Closed_By zero-24
avatar zero-24 zero-24 - close - 4 Nov 2015
avatar zero-24 zero-24 - close - 4 Nov 2015
avatar zero-24 zero-24 - change - 4 Nov 2015
Milestone Removed:
avatar zero-24
zero-24 - comment - 10 Nov 2015

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

avatar zero-24 zero-24 - change - 10 Nov 2015
Status Closed New
Closed_Date 2015-11-04 09:56:14
Closed_By zero-24
avatar zero-24 zero-24 - reopen - 10 Nov 2015
avatar zero-24 zero-24 - reopen - 10 Nov 2015
avatar zero-24 zero-24 - change - 10 Nov 2015
Milestone Added:
avatar zero-24
zero-24 - comment - 10 Nov 2015

As of my point of view this is a release blocker for 3.5.0 as we broke the update for our users wiith #7173

avatar zero-24 zero-24 - change - 10 Nov 2015
Milestone Added:
Priority Medium Critical
Status New Confirmed
avatar zero-24 zero-24 - change - 10 Nov 2015
Category SQL Updating
avatar zjw
zjw - comment - 11 Nov 2015

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).

avatar infograf768
infograf768 - comment - 11 Nov 2015

For parts of this issue, see #8376


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8267.

avatar wilsonge wilsonge - close - 17 Nov 2015
avatar wilsonge wilsonge - close - 17 Nov 2015
avatar roland-d roland-d - close - 17 Nov 2015
avatar roland-d
roland-d - comment - 17 Nov 2015

@zjw Can you please test #8472 ? The code says UTF8MB4 is supported since mysqlnd 5.0.9 but if you have the issue still with 5.0.10 we should probably lower that check. Closing this PR as we have a new PR. Thanks.

avatar roland-d roland-d - change - 17 Nov 2015
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2015-11-17 21:47:32
Closed_By roland-d
avatar roland-d roland-d - close - 17 Nov 2015
avatar k4lch
k4lch - comment - 1 Dec 2015

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

avatar wilsonge
wilsonge - comment - 14 Feb 2016

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

image

avatar wilsonge wilsonge - assigned - 14 Feb 16
avatar richard67
richard67 - comment - 14 Feb 2016

@wilsonge Maybe you meant @zjw with your previous comment? He reported this issue here, and @k4lch had reported that the fix worked for him.

avatar wilsonge
wilsonge - comment - 14 Feb 2016

Thankyou! I did!

Add a Comment

Login with GitHub to post a comment