Had a functioning Drupal 7 website before the cache was cleared.

After the cache was cleared it affected the styles that have been in place forever.

Any thoughts on what may have caused this?

Comments

pixelsweatshop’s picture

Did you place style changes into the aggregated css and not the theme css?

slipit’s picture

nicoz, can you please clarify what you mean by "pace style changes"? No styles were changed. Just did a random "clear cache" and pages that have been fine forever are now altered.

pixelsweatshop’s picture

Sorry typo:

Did you place style changes into the aggregated css and not the theme css?

slipit’s picture

No Style changes were made in either.

pixelsweatshop’s picture

Make sure you flush your browser cache. If that doesn't work, make sure all of your css files are included in the theme.info file. If that doesn;t fix it, check your file permissions.

Edit: Can you share a link to the site?

slipit’s picture

Flushed the browser cache and pages are still altered. I will check the theme.info file. What do permissions have to do with the cache being cleared and as a result the styles being altered? I tried placing an old version of the css file and had the same results.

pixelsweatshop’s picture

What do permissions have to do with the cache being cleared and as a result the styles being altered?

if the permissions/file ownership isn't correct, it may not aggregate the files, or it may not be properly rebuilding the aggregated files.

slipit’s picture

Have you ever heard of the aggregator going corrupt? Both these are turned on "Aggregate and compress CSS files" and "Aggregate JavaScript files" on the clear cache page. By the way the css files are in the theme.info file. None of that was changed.

Logged into site, uploaded a new pdf, cleared cache and get altered site.

Also, the style sheet isn't taking any changes. I tried altering some basic body styles to see if it would affect the site and they do not display even after clearing cache.

pixelsweatshop’s picture

Have you ever heard of the aggregator going corrupt?

I have seen it when using caching mechanism in front. Years ago, I vaguely recall something with the boost module. I have also seen it when using a module that was interfering with aggregation (I think it was extended paths or adv agg module)

Do you the styles work when aggregation is turned off?

Can you send a link to the site?

slipit’s picture

I tried turning both off and got the same results even after clearing cache.

The site is in maintenance mode because of how it's been altered.

The odd thing is it's maintaining some of the styles but not others.

slipit’s picture

The permissions are the same and have been unchanged. Entered the site with the same permissions.

pixelsweatshop’s picture

There might be a simple error in your style sheet. Even a missing ; would make the rest of the declarations fail. Did you also try another browser.

slipit’s picture

A missing semi-colon can cause strange things. I didn't go there because the style sheet has not been altered for months. Before I posted I tried another browser and the results were the same.

pixelsweatshop’s picture

It is still possible as some browsers can skip erorrs and load the rest. I would still check to see if everything is valid.

slipit’s picture

Has anyone had a problem clearing cache and the styles getting screwy with the Zen theme?