Post by symbolicmedia » Wed Jan 31, 2024 11:33 pm

Opencart Theme: Jounal
OpenCart Version: 2.3.0.0-2.3.0.2
PHP 8

Hi Guys,

After searching and finding a lot of posts related to issues encountered after upgrading to PHP8 on opencart 2.3, I've started to run into the some issues myself. I would greatly appreciate it if anyone after reading the email could direct me in the right direction. I appreciate anyones time in reading and responsing to this query.

The webhost (developers) upgraded to PHP 8 the last few days and Ive just started relisting items online and am encountering issues which some of you may know more about and I'm wondering if I can sort them myself or bring them back to the hosting companies/developers to resolve.

When I go to edit/list new products on the company website, on the "Image tab" the usual buttons you see to add/delete product images have dissapeared. When I go to change/edit the main product image, an arrow shaped box appears with no option to add or delete new images. Same for additional images underneath. Please see the image below;

Image


I also looked at the opencart error logs and server error logs throughb opencart backend and see the following:

Facebook Business Extension
2024-01-29 18:53:18 - Facebook Business Extension :: Fail to send server event! Error Message: Client error: `POST https://graph.facebook.com/v10.0/309108784391031/events` resulted in a `400 Bad Request` response:
{"error":{"message":"Invalid parameter","type":"OAuthException","code":100,"error_subcode":2804014,"is_transient":false, (truncated...

Abandoned Cart Extension
I know there are issues with the "Abandoned Cart Extension" as emails being sent out as reminders are no longer from our "info@" email address but from hosting companies email address and emails are presented in html, not the usual presentedable email template ...
Unknown: Required parameter $store_id follows optional parameter $data in /home/telfords/public_html/admin/controller/extension/module/abandonedcarts.php on line 229

As I said earlier having searched through many posts, I seen that there have been many issues in relation to this upgrade, but any advice would be very much appreciated if I can do anything from my end or if I need to contact the hosting developers company as I dont have access to the server side files / hosting side of things.

Thank you for taking time out of your busy day.

Any input or advice would be greatly appreciated.
Cheers
Sean

Newbie

Posts

Joined
Sat Sep 23, 2023 5:43 am
Location - UK

Post by Cue4cheap » Wed Jan 31, 2024 11:39 pm

Simple answer:
OC 2.3.0.2 isn't compatible with PHP 8.
Next you'll need to either update the code, get someone to update the code, or upgrade.
Journal and your other extensions you need to contact them for a fix BUT that will not fix all the other issues with OC 2.3.0.2 running under PHP 8.x.

Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by symbolicmedia » Wed Jan 31, 2024 11:49 pm

Thanks a lot mike for the information, it is very much appreciated.
Were can you find out what version of OC run with PHP versions?

Thanks for taking the time to answer.
It is appreciated.

Newbie

Posts

Joined
Sat Sep 23, 2023 5:43 am
Location - UK

Post by ADD Creative » Thu Feb 01, 2024 12:09 am

That image issue doesn't look to be caused by OpenCart. It looks more like an issue with an extension or your theme.
Last edited by ADD Creative on Thu Feb 01, 2024 12:19 am, edited 1 time in total.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by symbolicmedia » Thu Feb 01, 2024 12:13 am

ADD Creative wrote:
Thu Feb 01, 2024 12:09 am
That image issue doesn't look to be caused by OpenCart. It looks more like an issue with an extension of your theme.
Thanks for the inpt ADD, so I would need to contct Journal Theme to get this resolved?

Thanks for the response, it is appreciated.

Newbie

Posts

Joined
Sat Sep 23, 2023 5:43 am
Location - UK

Post by symbolicmedia » Thu Feb 01, 2024 12:15 am

ADD Creative wrote:
Thu Feb 01, 2024 12:09 am
That image issue doesn't look to be caused by OpenCart. It looks more like an issue with an extension of your theme.
Could you tell me, what is the earliest OC version that PHP 8 is compatible with?

Thanks

Newbie

Posts

Joined
Sat Sep 23, 2023 5:43 am
Location - UK

Post by ADD Creative » Thu Feb 01, 2024 12:33 am

Sorry I meant to say "an extension or your theme". I don't see the add images button, so I am guessing it being added by an extension or the theme, which may be causing the problem you see.

OpenCart 3.0.3.9 would be the most compatible with PHP 8. Although to get 2.3.0.2 to run under PHP 8 would be less work than upgrading to later version. What complicates things is themes and extensions, which would also have to be updated or upgraded.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by IP_CAM » Thu Feb 01, 2024 12:41 am

Check here to find a PHP-8 capable OC Version.
https://github.com/condor2/Opencart_23xx

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by symbolicmedia » Thu Feb 01, 2024 12:55 am

ADD Creative wrote:
Thu Feb 01, 2024 12:33 am
Sorry I meant to say "an extension or your theme". I don't see the add images button, so I am guessing it being added by an extension or the theme, which may be causing the problem you see.

OpenCart 3.0.3.9 would be the most compatible with PHP 8. Although to get 2.3.0.2 to run under PHP 8 would be less work than upgrading to later version. What complicates things is themes and extensions, which would also have to be updated or upgraded.
Great to know. Really appreciate the info ADD. Many thanks.

Is it just a matter of trying each extension one by one to see whats working and whats not, or can I check a quicker way to see whats giving errors?
I checked the error logs on system-maintenance-error logs and system-settings-edit store - server tab - display errors.

Appreciate the info bro

Newbie

Posts

Joined
Sat Sep 23, 2023 5:43 am
Location - UK

Post by symbolicmedia » Thu Feb 01, 2024 12:57 am

IP_CAM wrote:
Thu Feb 01, 2024 12:41 am
Check here to find a PHP-8 capable OC Version.
https://github.com/condor2/Opencart_23xx
Many thanks for the information. It is greatly appreciated.

Newbie

Posts

Joined
Sat Sep 23, 2023 5:43 am
Location - UK

Post by ADD Creative » Thu Feb 01, 2024 1:19 am

There is no quicker way to check for errors. You may also need to check your PHP error log, for major errosr where nothing displays in a browser.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by symbolicmedia » Tue Feb 06, 2024 10:29 pm

ADD Creative wrote:
Thu Feb 01, 2024 1:19 am
There is no quicker way to check for errors. You may also need to check your PHP error log, for major errosr where nothing displays in a browser.
Appreciate it ADD. Thanks bro.
How long would it take overall to make the upgrade to PHP 8, in my case, would it have been a big job, in terms of time? 1 hour maybe?

Newbie

Posts

Joined
Sat Sep 23, 2023 5:43 am
Location - UK

Post by Cue4cheap » Tue Feb 06, 2024 11:31 pm

symbolicmedia wrote:
Tue Feb 06, 2024 10:29 pm
ADD Creative wrote:
Thu Feb 01, 2024 1:19 am
There is no quicker way to check for errors. You may also need to check your PHP error log, for major errosr where nothing displays in a browser.
Appreciate it ADD. Thanks bro.
How long would it take overall to make the upgrade to PHP 8, in my case, would it have been a big job, in terms of time? 1 hour maybe?
It varies.
Your Journal theme will throw in additional variables.
IF you are going from a 2.3.0.2 version to the version IPCAM linked above it could be pretty quick for the CORE opencart.
If you are in the root of your www or public_html directory it might be a bit tougher to test but here is what I did and it was pretty quick. (I'm in a subfolder BTW)
Make a COMPLETE back-up of all the files and database (new database name, username and password to access the database).
Put the copy of the files in a different folder.
Adjust the config.php files to point to the copy of the files, and the database plus update the username and password for the new database.
Test to make sure you have complete functionality. Check ALL logs for errors. If none proceed.
Copy over ALL of the files in the version IPCAM linked to above.
Test again. Check ALL logs again. If no errors you got lucky! If it doesn't work.... my advice would to be to try a fresh install and move all the data over. See my post about migrating here: viewtopic.php?t=233056
Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am
Who is online

Users browsing this forum: No registered users and 9 guests