Post by Havouzatrack » Wed Aug 21, 2024 3:55 pm

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

Image is the stylesheet

Image is from inspector
Last edited by Havouzatrack on Thu Aug 22, 2024 1:07 am, edited 2 times in total.

New member

Posts

Joined
Mon May 25, 2020 7:17 pm

User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by paulfeakins » Wed Aug 21, 2024 7:38 pm

Havouzatrack wrote:
Wed Aug 21, 2024 3:55 pm
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
Where's your theme folder?

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


User avatar
Guru Member

Posts

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

Post by Havouzatrack » Wed Aug 21, 2024 9:45 pm

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

New member

Posts

Joined
Mon May 25, 2020 7:17 pm

Post by by mona » Wed Aug 21, 2024 10:48 pm

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

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 Havouzatrack » Thu Aug 22, 2024 1:04 am

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

New member

Posts

Joined
Mon May 25, 2020 7:17 pm
Who is online

Users browsing this forum: No registered users and 10 guests