OC version: Version 3.0.2.0
Web link here https://shop24live.com/
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
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Thanks for feedback. Yes i have cleared all cache from the gear icon on the dashboard.paulfeakins wrote: ↑Wed Nov 20, 2024 6:24 pmHave you cleared ALL the caches?
https://www.antropy.co.uk/blog/how-to-c ... t-3-0-2-0/
Thanks for feedback.by mona wrote: ↑Wed Nov 20, 2024 7:36 amThank 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.
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.
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
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
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.khnaz35 wrote: ↑Thu Nov 21, 2024 12:28 amAfter 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.
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?by mona wrote: ↑Thu Nov 21, 2024 12:58 amYou 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.
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!"]
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
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
And the others?
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
No worriesdesignfuzon wrote: ↑Thu Nov 21, 2024 4:05 amThe 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.
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
Users browsing this forum: khnaz35 and 29 guests