Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Fatal error: Class 'SS_Cache' not found in /sapphire/core/SSViewer.php on line 368


Go to End


4 Posts   2211 Views

Avatar
rokryan

Community Member, 13 Posts

31 May 2012 at 2:47pm

Hi,

My (Dreamhost) server recently updated there Virtual Private Server (VPS) services, the majority of my sites came back online as expected however when several returned they displayed the following error:

Fatal error: Class 'SS_Cache' not found in /home/*server-user-account*/*website-url*/sapphire/core/SSViewer.php on line 341

*server-user-account* and *website-url* are site specific variables

This is the case for at least six client sites.

I have tried:
- clearing 'silverstripe-cache'
- restarting the server & MySQL server

Not sure from memory which SS version but I wpuld expect to be 2.3.4 or 2.4

Any ideas appreciated.

Thanks

Avatar
Willr

Forum Moderator, 5523 Posts

31 May 2012 at 5:32pm

Have you got a sapphire/cache folder? Quite a common issue is people exclude 'cache' from their deployment scripts so it doesn't copy it across.

Avatar
rokryan

Community Member, 13 Posts

31 May 2012 at 6:15pm

@willr: Thanks Will. As in in the root dir having: 'silverstripe-cache' or does sapphire have a: 'cache' one too?

Avatar
Willr

Forum Moderator, 5523 Posts

31 May 2012 at 9:46pm

Sapphire does have a cache folder but it's not used for a cache, it's just the name of the folder for the classes (https://github.com/silverstripe/sapphire/tree/2.4/cache) make sure that folder exists on your server and it has the files in it.