Post by designfuzon » Wed Nov 20, 2024 5:35 am

Hi, recently my hosting provider upgrade to PHP 8.X, and then returned back to PHP 7.4 because there were lot of errors showing on homepage. After downgrade my website is not loading properly and the menu, slider, newsletter everything is scattered. On home page i don't see any error so its really difficult for me to find out what could be the issue. I have tried to reset the cache, disabling/enabling multiple modules, but nothing worked. Please help!

OC version: Version 3.0.2.0
Web link here https://shop24live.com/

New member

Posts

Joined
Fri Aug 28, 2015 7:42 pm

Post by Cue4cheap » Wed Nov 20, 2024 6:43 am

Loads fine for me.
Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by by mona » Wed Nov 20, 2024 7:36 am

Thank you for including your OC version and website.

As you just found out OC Version 3.0.2.0 does not work with php8.
OC 3.0.4.0 does and you can download it here => https://www.opencart.com/index.php?rout ... ad/history
Be aware that not all extensions / modules will work with php8, but you will need to upgrade, so it is better to prepare for that before your host stops supporting it (the upgrade is also for security purposes)
OC4 version are not stable enough to be used on commercial sites.

As above, your site loads fine, it will just be caching. Clear out your browser caching.
Other alternatives are server caching which may be why it was not loading before but is now.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by paulfeakins » Wed Nov 20, 2024 6:24 pm

designfuzon wrote:
Wed Nov 20, 2024 5:35 am
I have tried to reset the cache
Have you cleared ALL the caches?
https://www.antropy.co.uk/blog/how-to-c ... t-3-0-2-0/

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by designfuzon » Wed Nov 20, 2024 6:45 pm

Cue4cheap wrote:
Wed Nov 20, 2024 6:43 am
Loads fine for me.
Mike
Thanks for feedback. but its not working fine. I have attached the screenshot to explain what i am talking about, please help to check again if you're seeing the same issue.

Attachments

web-issue.png

web-issue.png (192.12 KiB) Viewed 2044 times


New member

Posts

Joined
Fri Aug 28, 2015 7:42 pm

Post by designfuzon » Wed Nov 20, 2024 6:47 pm

paulfeakins wrote:
Wed Nov 20, 2024 6:24 pm
designfuzon wrote:
Wed Nov 20, 2024 5:35 am
I have tried to reset the cache
Have you cleared ALL the caches?
https://www.antropy.co.uk/blog/how-to-c ... t-3-0-2-0/
Thanks for feedback. Yes i have cleared all cache from the gear icon on the dashboard.

New member

Posts

Joined
Fri Aug 28, 2015 7:42 pm

Post by designfuzon » Wed Nov 20, 2024 6:49 pm

by mona wrote:
Wed Nov 20, 2024 7:36 am
Thank you for including your OC version and website.

As you just found out OC Version 3.0.2.0 does not work with php8.
OC 3.0.4.0 does and you can download it here => https://www.opencart.com/index.php?rout ... ad/history
Be aware that not all extensions / modules will work with php8, but you will need to upgrade, so it is better to prepare for that before your host stops supporting it (the upgrade is also for security purposes)
OC4 version are not stable enough to be used on commercial sites.

As above, your site loads fine, it will just be caching. Clear out your browser caching.
Other alternatives are server caching which may be why it was not loading before but is now.
Thanks for feedback.
Yes i will consider to upgrade, but for now i need to find out the root cause of this issue so that i dont face this issue again after the upgrade.

New member

Posts

Joined
Fri Aug 28, 2015 7:42 pm

Post by khnaz35 » Thu Nov 21, 2024 12:28 am

After reviewing your website and comparing it with the provided screenshot, it is evident that the current version of the site differs due to design changes. This suggests that your hosting provider may have rolled back the site to a previous backup. Unfortunately, it is unclear which backup was restored. Additionally, it is uncertain whether this rollback included the database or if it only affected the front-end files. Notably, there are no console errors detected on the current version of the site.

To resolve this issue, you should reach out to your hosting provider for clarification or consider hiring a developer to investigate and restore the site to its desired state. Prompt action is crucial to prevent the current backup from being overwritten, which could increase the cost and complexity of restoring the site.

If you would like, I can assist with this issue, but please note that this would be a paid service. Alternatively, you can post a request for help in the commercial jobs section of the forum. Let me know how you'd like to proceed.

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member
Online

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by by mona » Thu Nov 21, 2024 12:58 am

You need to be more clear about the process you did.

If you just changed the php version in CPanel then the issue is either caching or not refreshing modifications. Extensions => modifications => refresh
If you had to install from a back up then it is settings or changes (settings/css/theme editor/files/modifications) you made since the back up and it is lost, you will have to do them again.

As for future reference to prevent it happening again.
Never make any major changes to your site without creating a full backup of database YOURSELF
It is also advised to take a back up of your files if you intend to upgrade / make a test version first.

If you use a reasonably descent host they will auto create backups for you. If not, get a better host.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by designfuzon » Thu Nov 21, 2024 4:05 am

khnaz35 wrote:
Thu Nov 21, 2024 12:28 am
After reviewing your website and comparing it with the provided screenshot, it is evident that the current version of the site differs due to design changes. This suggests that your hosting provider may have rolled back the site to a previous backup. Unfortunately, it is unclear which backup was restored. Additionally, it is uncertain whether this rollback included the database or if it only affected the front-end files. Notably, there are no console errors detected on the current version of the site.

To resolve this issue, you should reach out to your hosting provider for clarification or consider hiring a developer to investigate and restore the site to its desired state. Prompt action is crucial to prevent the current backup from being overwritten, which could increase the cost and complexity of restoring the site.

If you would like, I can assist with this issue, but please note that this would be a paid service. Alternatively, you can post a request for help in the commercial jobs section of the forum. Let me know how you'd like to proceed.
The screenshot provided may be misleading, sorry for that. The image on the right side is from the standard template, just to show how my website used to look like. There is no rollback performed on the website itself, only the PHP version is downgraded using the .htaccess file. Moreover, no changes on the web files are made by me or the hosting provider.

New member

Posts

Joined
Fri Aug 28, 2015 7:42 pm

Post by designfuzon » Thu Nov 21, 2024 4:10 am

by mona wrote:
Thu Nov 21, 2024 12:58 am
You need to be more clear about the process you did.

If you just changed the php version in CPanel then the issue is either caching or not refreshing modifications. Extensions => modifications => refresh
If you had to install from a back up then it is settings or changes (settings/css/theme editor/files/modifications) you made since the back up and it is lost, you will have to do them again.

As for future reference to prevent it happening again.
Never make any major changes to your site without creating a full backup of database YOURSELF
It is also advised to take a back up of your files if you intend to upgrade / make a test version first.

If you use a reasonably descent host they will auto create backups for you. If not, get a better host.
Only the PHP version is changed back to 7.4 using .htaccess file. No files are modified on the server itself and no backup is performed. I have noticed one error while refreshing the Theme cache from the dashboard, it gives the following error, could be the issue because of this?

SyntaxError: Unexpected token '<, "<b>Warning"... is not valid
JSON
OK
<b> Warning</b>: rmdir (/home/shop24li/storage1/cache/so):
Directory not empty in <b>/home/shop24li/public_html/admin/ controller/common/developer.php</b> on line <b>70</ b> "success":"Succes, You have cleared the theme cache!"]

New member

Posts

Joined
Fri Aug 28, 2015 7:42 pm

Post by designfuzon » Thu Nov 21, 2024 4:56 am

Found another error on my admin panel:
However i have already enabled allow_url_fopen which was previously disabled, but still the error is the same:

Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/shop24li/public_html/admin/controller/extension/module/ptcontrolpanel.php on line 111Warning: file_get_contents(https://www.googleapis.com/webfonts/v1/ ... bR8ZvV_cps): failed to open stream: no suitable wrapper could be found in /home/shop24li/public_html/admin/controller/extension/module/ptcontrolpanel.php on line 111Notice: Trying to access array offset on value of type null in /home/shop24li/public_html/admin/controller/extension/module/ptcontrolpanel.php on line 115Warning: Invalid argument supplied for foreach() in /home/shop24li/public_html/admin/controller/extension/module/ptcontrolpanel.php on line 117

New member

Posts

Joined
Fri Aug 28, 2015 7:42 pm

Post by by mona » Thu Nov 21, 2024 8:20 am

a. You should change your php version in CPanel and not htaccess - do you not have access to your CPanel?

b. <b> Warning</b>: rmdir (/home/shop24li/storage1/cache/so): - This is your theme
c. Directory not empty in <b>/home/shop24li/public_html/admin/ controller/common/developer.php</b> on line <b>70</ b> "success":"Succes, You have cleared the theme cache!"] This is likely to be caused by CHMOD permissions or your host not allowing to repetitive deletion.
d. admin/controller/extension/module/ptcontrolpanel.php - Is not Opencart
e. allow_url_fopen - contact your host

Back to the issue - the website not loading properly.
IF YOU ONLY CHANGED PHP IN HTACCESS AND BACK AGAIN
This can only be a caching issue and it has nothing to do with the dashboard theme caching.
It can be due to you changing your htaccess directly.

1. Back up your site - files and database

2. Comment out the htaccess php directives using # at the beginning.
ie from
AddHandler application/x-httpd-php4 .php
to
# AddHandler application/x-httpd-php4 .php

3. Go into your CPanel and change your php there - it should be under php versions. If not contact your host and ask them to change it and to flush out all caching.

4. Check if your host is using caching and use the "flush caching" to clear it out.

5. Go into EXTENSION => MODIFICATIONS => LOG TAB
Click the bottom red button CLEAR

6. Go back into CPanel and flush it out again

7. Clear out your CDN caching

8. Clear your browser caching.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by paulfeakins » Thu Nov 21, 2024 7:38 pm

designfuzon wrote:
Wed Nov 20, 2024 6:47 pm
from the gear icon on the dashboard.
And the others?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by khnaz35 » Thu Nov 21, 2024 7:52 pm

designfuzon wrote:
Thu Nov 21, 2024 4:05 am
The screenshot provided may be misleading, sorry for that. The image on the right side is from the standard template, just to show how my website used to look like. There is no rollback performed on the website itself, only the PHP version is downgraded using the .htaccess file. Moreover, no changes on the web files are made by me or the hosting provider.
No worries

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member
Online

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia
Who is online

Users browsing this forum: khnaz35 and 29 guests