Hi,
I was trying to upgrade my joomla 5.0.3 installation to 5.1.0 manually with PHP 8.1 and Mysql 8.0
I found out that administrator\components\com_admin\sql\updates\mysql\5.1.0-2024-02-24.sql contains an update query which my PhpMyAdmin is failing to execute. On further debugging I found that the there is an error in comment in the following query.
line 27 to 34
-----------------------------------------------------------
-- The following UPDATE statement has been modified to avoid an SQL error
-- when there is more than 1 update site for the Joomla core.
-- See https://github.com/joomla/joomla-cms/pull/42988 for details.
--
UPDATE `#__update_sites`
SET `type` = 'tuf', `location` = 'https://update.joomla.org/cms/'
WHERE `update_site_id` IN (SELECT ue.`update_site_id` FROM `#__update_sites_extensions` AS ue JOIN `#__extensions` AS e ON (e.`extension_id` = ue.`extension_id`) WHERE e.`type`='file' AND e.`element`='joomla');
In which Line 27 comment should be in the following way.(space after two --)
-- ---------------------------------------------------------
I changed this manually and it worked well.
I was trying to upgrade my joomla 5.0.3 installation to 5.1.0 manually with PHP 8.1 and Mysql 8.0
I found out that administrator\components\com_admin\sql\updates\mysql\5.1.0-2024-02-24.sql contains an update query which my PhpMyAdmin is failing to execute. On further debugging I found that the there is an error in comment in the following query.
line 27 to 34
-----------------------------------------------------------
-- The following UPDATE statement has been modified to avoid an SQL error
-- when there is more than 1 update site for the Joomla core.
-- See https://github.com/joomla/joomla-cms/pull/42988 for details.
--
UPDATE `#__update_sites`
SET `type` = 'tuf', `location` = 'https://update.joomla.org/cms/'
WHERE `update_site_id` IN (SELECT ue.`update_site_id` FROM `#__update_sites_extensions` AS ue JOIN `#__extensions` AS e ON (e.`extension_id` = ue.`extension_id`) WHERE e.`type`='file' AND e.`element`='joomla');
In which Line 27 comment should be in the following way.(space after two --)
-- ---------------------------------------------------------
I changed this manually and it worked well.
Statistics: Posted by nikita12 — Thu Apr 18, 2024 5:26 am