php 8.2 Errors

Open to all! Ask other shopowners for help.
Post Reply
Xpajun
Contributor
Posts: 187
Joined: Thu Mar 04, 2021 1:18 pm
Phoenix Version: v1.0.9.0
Has thanked: 3 times
Been thanked: 6 times

php 8.2 Errors

Post by Xpajun »

I have unfortunately updated to php 8.2 - can go back to 8.1 but not 8.0
Hoever let me present you with the initial list (maybe) of 8.2 errors

Code: Select all

[16-May-2024 19:46:27 UTC] PHP Deprecated:  Creation of dynamic property objectInfo::$orders_status is deprecated in /home/*****/public_html/store/admin/includes/classes/object_info.php on line 21
[16-May-2024 19:46:27 UTC] PHP Deprecated:  Creation of dynamic property objectInfo::$orders_date_finished is deprecated in /home/*****/public_html/store/admin/includes/classes/object_info.php on line 21
[16-May-2024 19:46:27 UTC] PHP Deprecated:  Creation of dynamic property objectInfo::$currency is deprecated in /home/*****/public_html/store/admin/includes/classes/object_info.php on line 21
[16-May-2024 19:46:27 UTC] PHP Deprecated:  Creation of dynamic property objectInfo::$currency_value is deprecated in /home/*****/public_html/store/admin/includes/classes/object_info.php on line 21
[16-May-2024 19:46:27 UTC] PHP Deprecated:  Creation of dynamic property objectInfo::$shipping_module is deprecated in /home/*****/public_html/store/admin/includes/classes/object_info.php on line 21
[16-May-2024 19:46:27 UTC] PHP Deprecated:  Creation of dynamic property objectInfo::$customer_service_id is deprecated in /home/*****/public_html/store/admin/includes/classes/object_info.php on line 21
[16-May-2024 19:46:27 UTC] PHP Deprecated:  Creation of dynamic property objectInfo::$discount_codes is deprecated in /home/*****/public_html/store/admin/includes/classes/object_info.php on line 21
[16-May-2024 19:46:27 UTC] PHP Deprecated:  Creation of dynamic property objectInfo::$orders_status_id is deprecated in /home/*****/public_html/store/admin/includes/classes/object_info.php on line 21
[16-May-2024 19:46:27 UTC] PHP Deprecated:  Creation of dynamic property objectInfo::$language_id is deprecated in /home/*****/public_html/store/admin/includes/classes/object_info.php on line 21
[16-May-2024 19:46:27 UTC] PHP Deprecated:  Creation of dynamic property objectInfo::$orders_status_name is deprecated in /home/*****/public_html/store/admin/includes/classes/object_info.php on line 21
[16-May-2024 19:46:27 UTC] PHP Deprecated:  Creation of dynamic property objectInfo::$public_flag is deprecated in /home/*****/public_html/store/admin/includes/classes/object_info.php on line 21
[16-May-2024 19:46:27 UTC] PHP Deprecated:  Creation of dynamic property objectInfo::$downloads_flag is deprecated in /home/*****/public_html/store/admin/includes/classes/object_info.php on line 21
[16-May-2024 19:46:27 UTC] PHP Deprecated:  Creation of dynamic property objectInfo::$order_total is deprecated in /home/*****/public_html/store/admin/includes/classes/object_info.php on line 21
[16-May-2024 19:46:27 UTC] PHP Deprecated:  Function strftime() is deprecated in /home/*****/public_html/store/includes/system/versioned/1.0.8.3/date.php on line 45
[16-May-2024 19:46:27 UTC] PHP Deprecated:  Function strftime() is deprecated in /home/*****/public_html/store/includes/system/versioned/1.0.8.3/date.php on line 45
[16-May-2024 19:46:27 UTC] PHP Deprecated:  Function strftime() is deprecated in /home/*****/public_html/store/includes/system/versioned/1.0.8.3/date.php on line 45

(OK everything still works but it would be nice to get rid of the errors ;) )
Current Store is now running 1.0.9.0 - php 8.2.18
Now working on taking a short rest :D - php 8.2.18


Join The Code Co-op to get access to your library in the Code Co-op Forum
Xpajun
Contributor
Posts: 187
Joined: Thu Mar 04, 2021 1:18 pm
Phoenix Version: v1.0.9.0
Has thanked: 3 times
Been thanked: 6 times

Re: php 8.2 Errors

Post by Xpajun »

I've changed line 45 in the date.php file to

Code: Select all

           ? date($format, $this->timestamp)
           
not had any errors since then so either it worked or it's not working at all...
Current Store is now running 1.0.9.0 - php 8.2.18
Now working on taking a short rest :D - php 8.2.18


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply