PHP 8.x
avatar obuisard
obuisard
16 Oct 2024

Steps to reproduce the issue

I have tried to move a couple Joomla 5.1 sites to 5.2 under PHP 8.2.
I waited for the pre-update checker to finish its job of checking extensions.

Expected result

Pre-update checks ends.

Actual result

They never do.

System information (as much as possible)

5.1 to 5.2 update
PHP 8.2.19
MySQL 8.0.32

Additional comments

This is the error I get when looking at the data before the json info is parsed:

Image

<br />
<b>Deprecated</b>:  Creation of dynamic property Joomla\CMS\Updater\Update::$length is deprecated in <b>E:\bearsampp\www\MyWork_5_latest_free\libraries\src\Updater\Update.php</b> on line <b>486</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property Joomla\CMS\Updater\Update::$length is deprecated in <b>E:\bearsampp\www\MyWork_5_latest_free\libraries\src\Updater\Update.php</b> on line <b>486</b><br />
{"success":true,"message":null,"messages":null,"data":{"compatibility": ...

Having the warning in the response forces the json parsing to fail.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar obuisard obuisard - open - 16 Oct 2024
avatar joomla-cms-bot joomla-cms-bot - change - 16 Oct 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 Oct 2024
avatar obuisard obuisard - change - 16 Oct 2024
The description was changed
avatar obuisard obuisard - edited - 16 Oct 2024
avatar obuisard obuisard - change - 16 Oct 2024
Labels Added: PHP 8.x
Removed: No Code Attached Yet
avatar obuisard obuisard - unlabeled - 16 Oct 2024
avatar obuisard obuisard - labeled - 16 Oct 2024
avatar exlemor
exlemor - comment - 16 Oct 2024

I had the same issue on one site - initially I tried doing so as a test from an iPhone 15 Pro (via Safari) and also then when I got home from a laptop running Safari 18 same result/issue as above

avatar alikon
alikon - comment - 18 Oct 2024

can you check adding declaration of $length in the Joomla\CMS\Updater\Update class , should solve

avatar rdeutz
rdeutz - comment - 18 Oct 2024

You can set the errror reporting to none, then you can continue with the update

avatar alikon
alikon - comment - 18 Oct 2024

#44307 will remove the deprecation

avatar richard67 richard67 - change - 19 Oct 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-10-19 15:43:19
Closed_By richard67
avatar richard67 richard67 - close - 19 Oct 2024
avatar richard67
richard67 - comment - 19 Oct 2024

Closing as having a pull request. See #44307 .

Add a Comment

Login with GitHub to post a comment