Update a test website from version 5.0.3 to 5.1.0 RC 1
Joomla update OK
Extension check get stuck in media/com_joomlaupdate/js/default.js with error at line 302 because of a bunch of deprecated messages
PHP 8.3.3, Laragon on PC Windows
Labels |
Added:
No Code Attached Yet
|
Title |
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-04-02 16:37:01 |
Closed_By | ⇒ | conseilgouz |
Status | Closed | ⇒ | New |
Closed_Date | 2024-04-02 16:37:01 | ⇒ | |
Closed_By | conseilgouz | ⇒ |
Hi,
I took me a while but I found the condition when this occurs : enable Error reporting to default or higher.
In this case, ajax answer contains a lot of notice message :
First notice comes from administrator\components\com_joomlaupdate\src\Model\UpdateModel.php line 1630 :
$update->set('jversion.full', $joomlaTargetVersion);
very odd. I am using laragon and php 8.3.3 on windows and I have not been able to replicate this
It only appears if you set error reporting to default.
checkCompatibility in UpdateModel is used for non core extension.
So if you have any non core extension, you'll see these notices.
I just tried on a clean Joomla 5.0.3 version with latest Akeeba backup : same error when trying to update to 5.1.0-rc
I took me a while but I found the condition when this occurs : enable Error reporting to default or higher.
I checked with error reporting set to maximum
Update a test website
I missed this part and was just checking for updates. Will test again
To fix this, we have to add the missing definitions in libraries/src/Updater/Update.php.
I'm trying to create a new PR to fix this, but, as I already have one in progress, I can't achive this.
I still cant replicate the error
@brianteeman Deprecated: Creation of dynamic property
type of warning is specific to php 8.2+.
I am using 8.3.3
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-04-07 08:20:16 |
Closed_By | ⇒ | richard67 |
Sorry, I messed up, trying to update from 5.1.0 beta 2 to 5.1.0 RC.