I am setting up a new shop 4.0.2.3
I want to change some colors but somehow the shop read the wrong stylesheet , that does not exist. See the attached images. How can this happen and what can I do about it
is the stylesheet
is from inspector
I want to change some colors but somehow the shop read the wrong stylesheet , that does not exist. See the attached images. How can this happen and what can I do about it
is the stylesheet
is from inspector
Last edited by Havouzatrack on Thu Aug 22, 2024 1:07 am, edited 2 times in total.
Clear the web browser caches.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Where's your theme folder?Havouzatrack wrote: ↑Wed Aug 21, 2024 3:55 pmI am setting up a new shop 4.0.2.3
I want to change some colors but somehow the shop read the wrong stylesheet , that does not exist. See the attached images. How can this happen and what can I do about it
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Guru Member
Well I solved it somehow. Where the installed stylesheet.css content was stored I have no clue. What I did was to copy the content of the file, delete that file and create a new one with the same name. Pasted the conten back and all started to work as it should. How this was possible I dont know.
I empties all cached so it could not be the problem. I also tested on 2 different computers and an Android hone both with chromium and Thunderbird and got the same result. But anyway, problem is solved
I empties all cached so it could not be the problem. I also tested on 2 different computers and an Android hone both with chromium and Thunderbird and got the same result. But anyway, problem is solved
Now the problem is solved, please add [SOLVED] to the title.
For future reference
The issue is resolved by clearing out cache. There is no miracle or fix you have done. Cache refreshes itself if you do not refresh it manually. By deleting the file you created a 404 file not found.
css is a static file that is cached, maybe by your host, maybe by external cache you have installed, maybe by opencart, maybe by your browser.
If you open your store in a browser that already has cached the file, it will still be using the cached file. You need to refresh the cache in your browser.
Each browser does it differently - https://www.keycdn.com/support/clearing-cache
Opencart has a cog in the top right of the dashboard where you can turn it off and refresh
Your host may have a tool in your CPanel (or similar depending on your host)
Any external sources for CDN or caching resources in an extension is likely to have a button or a setting.
and as Paul has suggested - if you are using the wrong theme folder then you are not changing the right file in the first place. (style.css in the title and the file you refer to is stylesheet.css)
and JNeuhoff suggested the most likely is your browser and it has been resolved by time.
It would be wise to turn off caching in the Opencart dashboard whilst in development and learn how to clear your browser cache and check what caching systems you have.
I can not replicate this on OC4.0.2.3, my css caching system works fine
For future reference
The issue is resolved by clearing out cache. There is no miracle or fix you have done. Cache refreshes itself if you do not refresh it manually. By deleting the file you created a 404 file not found.
css is a static file that is cached, maybe by your host, maybe by external cache you have installed, maybe by opencart, maybe by your browser.
If you open your store in a browser that already has cached the file, it will still be using the cached file. You need to refresh the cache in your browser.
Each browser does it differently - https://www.keycdn.com/support/clearing-cache
Opencart has a cog in the top right of the dashboard where you can turn it off and refresh
Your host may have a tool in your CPanel (or similar depending on your host)
Any external sources for CDN or caching resources in an extension is likely to have a button or a setting.
and as Paul has suggested - if you are using the wrong theme folder then you are not changing the right file in the first place. (style.css in the title and the file you refer to is stylesheet.css)
and JNeuhoff suggested the most likely is your browser and it has been resolved by time.
It would be wise to turn off caching in the Opencart dashboard whilst in development and learn how to clear your browser cache and check what caching systems you have.
I can not replicate this on OC4.0.2.3, my css caching system works fine
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
Well I found the problem, and in a way it was a cache problem, but not on any of my computers but on Cloudflare. We use them as dns and normally I disable the cache when working on a website but totally forgot it now. When I rememberd, disabled and purged the cache everything started work as it should. One result from this is that I will never forget it again
Who is online
Users browsing this forum: No registered users and 10 guests