User tests: Successful: Unsuccessful:
Pull Request for Issue #30224 .
This pull request is not relevant for installations with a PostgreSQL database. It only applies to MySQL (or MariaDB).
With Pull Request (PR) #29217 , the #__ucm_history
database table has been renamed to #__history
.
But it was forgotten to do this change in the utf8mb4 conversion SQL script.
This causes an update from 3.10 to 4 with utf8mb4 conversion to fail with an SQL error.
This PR here corrects this.
Due to the minimum database server version requirement we can be sure that J4 runs on a database which supports utf8mb4.
But the utf8mb4 conversion is still needed in J4 for following scenario:
On a clean installation of Joomla 3.10 (latest nightly or Alpha 1 or current 3.10-dev branch) using a MySQL or MariaDB database, login to database using a tool like e.g. phpMyAdmin, and issue following SQL statement, replacing #__
by your database table prefix:
UPDATE `#__utf8_conversion` SET `converted`=3;
This will simulate the situation that a database server of a J 3.10 has been updated from an old version which did not support utf8mb4 to a newer version which does that and fulfills the version requirements of J4, or migrates the database from an old server to a new server with the same result.
Go to Global Configuration and set error reporting to "Maximum" in the server settings.
Go to "Extensions -> Manage -> Database" and check if there are database problems, but DO NOT USE THE FIX BUTTON!!!
Result: 1 database problem "The Joomla! Core database tables have not been converted yet to UTF-8 Multibyte (utf8mb4).".
Make a complete backup, i.e. files and database, so you can later restore the starting point for test 2 after having done test 1.
Update a Joomla 3.10 which has been prepared as described above in section "Preparation" to the latest Joomla 4 nightly build.
If you can use the Live Update, change the update Channel to "Custom URL" and enter the following URL in the Joomla Update component's options: https://update.joomla.org/core/nightlies/next_major_list.xml.
I you can't use the Live Update for some reason, download the update package from the following link and use "Upload & Update": https://developer.joomla.org/nightlies/Joomla_4.0.0-beta4-dev-Development-Update_Package.zip.
Hint: The error alert "The template for this display is not available." shown during the update when having to log in is a know issue and can be ignored.
Result: See section "Actual result BEFORE applying this Pull Request" below.
Same as before, but this time you update the prepared 3.10 to latest 4.0-dev plus the patch of this PR applied.
For this you either use the Live Update with custom URL https://ci.joomla.org/artifacts/joomla/joomla-cms/4.0-dev/30227/downloads/34309/pr_list.xml, or use the "Upload & Update" and download the update package for this PR from https://ci.joomla.org/artifacts/joomla/joomla-cms/4.0-dev/30227/downloads/34309/Joomla_4.0.0-beta4-dev+pr.30227-Development-Update_Package.zip.
Use a tool like e.g. phpMyAdmin to check collation of core database tables.
Result: See section "Expected result AFTER applying this Pull Request" below.
The update fails with an SQL error about not existing table #__ucm_history
(replace #__
by your database prefix). See issue #30224 .
In "System -> Information -> Database" (which was "Extensions -> Manage -> Database" in J3):
Using the "Update Structure" button (formerly called "Fix" in J3) does not change anything.
The error alert "The template for this display is not available." is a know issue and can be ignored. It will disappear and never appear again after first navigating in the backend.
In "System -> Information -> Database" (which was "Extensions -> Manage -> Database" in J3):
The error about not matching version numbers is normal when using an update package which has been automatically build for a PR. It can be ignored, but it also can be fixed with the "Update Structure" button because that looks nicer at the end.
In database all core tables have collation utf8mb4_unicode_ci
.
None.
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_admin |
Title |
|
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Thanks guys for testing.
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-08-01 23:59:17 |
Closed_By | ⇒ | Quy | |
Labels |
Added:
?
?
|
I have tested this item✅ successfully on 9712037
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30227.