Page 1 of 1

PHP 8

Posted: Sat Feb 20, 2021 4:00 am
by johnp
I've got a 1.5.6.5 test site running on PHP 8.0. So far it's error free. If anyone wants to share their PHP 8 experiences I'd be interested to hear them. :)

Re: PHP 8

Posted: Sun Feb 21, 2021 12:21 am
by straightlight
johnp wrote:
Sat Feb 20, 2021 4:00 am
I've got a 1.5.6.5 test site running on PHP 8.0. So far it's error free. If anyone wants to share their PHP 8 experiences I'd be interested to hear them. :)
PHP 8 requirements has also been updated on the master branch officially since today.

Re: PHP 8

Posted: Mon May 10, 2021 9:18 am
by jhisaza
Hi, I am using OC 3.0.3.7 and php 8.0.3. OpenCart is functioning well, except for the Blog at this level: oc/index.php?route=blog/article&article_id=13
Here I get the following error message: Warning: Trying to access array offset on value of type null in /home/MyDomain/public_html/oc/catalog/controller/blog/article.php on line 50
The same occurs in PHP 7.4. This disappears in php7.3. Please help me to solve this problem

Re: PHP 8

Posted: Mon May 10, 2021 3:57 pm
by JNeuhoff
jhisaza wrote:
Mon May 10, 2021 9:18 am
Hi, I am using OC 3.0.3.7 and php 8.0.3. OpenCart is functioning well, except for the Blog at this level: oc/index.php?route=blog/article&article_id=13
Here I get the following error message: Warning: Trying to access array offset on value of type null in /home/MyDomain/public_html/oc/catalog/controller/blog/article.php on line 50
The same occurs in PHP 7.4. This disappears in php7.3. Please help me to solve this problem
Seriously, you want help for a 3rd party blog extension which isn't part of OpenCart? You have to get in touch with the author of that extension.

Re: PHP 8

Posted: Wed Mar 01, 2023 10:35 am
by eddielai
johnp wrote:
Sat Feb 20, 2021 4:00 am
I've got a 1.5.6.5 test site running on PHP 8.0. So far it's error free. If anyone wants to share their PHP 8 experiences I'd be interested to hear them. :)
Hi Johnp,

I tried running opencart 1.5.6.4 on PHP 8.1 but received this error:
"PHP message: PHP Fatal error: Uncaught Error: Unknown named parameter $front in vqmod/vqcache/vq2-system_engine_front.php:53
Stack trace:
#0 vqmod/vqcache/vq2-system_engine_front.php(40): Front->execute()
#1 index.php(236): Front->dispatch()
#2 {main}\n thrown in /vqmod/vqcache/vq2-system_engine_front.php on line 53"

Any idea how to fix this? Thanks. :)

Re: PHP 8

Posted: Wed Mar 01, 2023 6:28 pm
by ADD Creative
eddielai wrote:
Wed Mar 01, 2023 10:35 am
I tried running opencart 1.5.6.4 on PHP 8.1 but received this error:
"PHP message: PHP Fatal error: Uncaught Error: Unknown named parameter $front in vqmod/vqcache/vq2-system_engine_front.php:53
Stack trace:
#0 vqmod/vqcache/vq2-system_engine_front.php(40): Front->execute()
#1 index.php(236): Front->dispatch()
#2 {main}\n thrown in /vqmod/vqcache/vq2-system_engine_front.php on line 53"

Any idea how to fix this? Thanks. :)
Cause by an extension or modification. You would need to work out which one and get it updated to work with PHP 8.