Post by kevindixon » Thu Feb 09, 2023 2:36 am

I get the following error on the Upgrade page while trying to upgrade to OC v3.0.3.8 from version 2.x.x.x. My site is completely broken. I really have no idea where to go from here as I'm not a coder or administrator. ??? Any help would be appreciated.

SyntaxError: Unexpected token '<', "Warning"... is not valid JSON parsererror Warning: unlink(/home2/bbesuppl/public_html/system/upload): Is a directory in /home2/bbesuppl/public_html/install/model/upgrade/1006.php on line 200Warning: unlink(/home2/bbesuppl/public_html/system/download): Is a directory in /home2/bbesuppl/public_html/install/model/upgrade/1006.php on line 200{"success":"Patch 1006 has been applied (7 of 10)","next":"index.php?route=upgrade\/upgrade\/next&step=8"}

Thank you

Newbie

Posts

Joined
Thu Feb 09, 2023 2:04 am

Post by ADD Creative » Thu Feb 09, 2023 6:17 pm

What version of PHP are you using?

www.add-creative.co.uk


Expert Member

Posts

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

Post by kevindixon » Thu Feb 09, 2023 9:19 pm

I contacted my host provider to see if it met the system requirements for OpenCart v3.0.3.8 but it lacked ZipArchive.

Are the system requirements on this page for the latest version of OpenCart?
http://docs.opencart.com/en-gb/requirements/

The install doc shows v3.0.2.0

I would like to get the latest working version so I don't have to go through this anytime soon.

Thanks.

Newbie

Posts

Joined
Thu Feb 09, 2023 2:04 am

Post by IP_CAM » Thu Feb 09, 2023 9:56 pm

Well, the latest real working Opencart Version can be found here:
https://github.com/opencart/opencart/tr ... aintenance

My Github OC Site: https://github.com/IP-CAM
5'200 + 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 ADD Creative » Thu Feb 09, 2023 10:20 pm

The system requirements at that link are for version 4. Opencart version 3.0.3.8 is not fully compatible with PHP 8. Which is why I asked what version of PHP you are using.

The error message is probably the result of two issues.

First is a bug on this line, wrongly using unlink to remove a directory.
https://github.com/opencart/opencart/bl ... 6.php#L200

Should be.

Code: Select all

@rmdir($src);
However this would not cause a problem on its own. But if you are using PHP 8 the error suppression would not be handled correctly, causing the error.
https://github.com/opencart/opencart/pull/10835

If you are using PHP 8 you would be best using the 3.0.x.x_Maintenance version IP_CAM linked to.

www.add-creative.co.uk


Expert Member

Posts

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

Post by kevindixon » Thu Feb 09, 2023 10:58 pm

Thanks for the info. Yes, I upgraded to PHP 8 but I can downgrade to version 7 and try upgrading to OpenCart 3.0.3.8 again.

I have never used github. Usually I just download from opencart.com.

Shouldn't that work?

I'm not a coder, so much of this technical language I don't understand.

Newbie

Posts

Joined
Thu Feb 09, 2023 2:04 am

Post by kevindixon » Thu Feb 09, 2023 11:41 pm

I was able to complete the upgrade to V3.0.3.8 without errors but now I get the following error on the admin page:

Warning: fopen(DIR_SYSTEMstorage/logs/error.log): failed to open stream: No such file or directory in /home2/bbesuppl/public_html/system/library/log.php on line 22

Also, I get this error when going to the homepage at bbesupplements.com:

Error: A theme has not been assigned to this store!

Newbie

Posts

Joined
Thu Feb 09, 2023 2:04 am

Post by ADD Creative » Fri Feb 10, 2023 12:29 am

Check DIR_SYSTEM in defined correctly in your config.php and admin/config.php files and comes before DIR_STORAGE.

For the theme. Goto Extensions > Extensions, select Themes from drop-down and set up the theme.

www.add-creative.co.uk


Expert Member

Posts

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

Post by seekevin » Sat Mar 04, 2023 8:55 am

Hi,
Does anyone know that OC 3.0.3.8 compatible with PHP 8.1 ?

New member

Posts

Joined
Sun Mar 03, 2019 6:37 am

Post by xxvirusxx » Sat Mar 04, 2023 5:33 pm

seekevin wrote:
Sat Mar 04, 2023 8:55 am
Hi,
Does anyone know that OC 3.0.3.8 compatible with PHP 8.1 ?
Yes, this oc 3.0.3.8
https://github.com/opencart/opencart/tr ... nce/upload

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România
Who is online

Users browsing this forum: No registered users and 104 guests