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.

General Questions

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

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

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


Reply

4 Posts   770 Views

Avatar
rokryan

31 May 2012 at 2:47pm Community Member, 13 Posts

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

31 May 2012 at 5:32pm Forum Moderator, 5511 Posts

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

31 May 2012 at 6:15pm Community Member, 13 Posts

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

Avatar
Willr

31 May 2012 at 9:46pm Forum Moderator, 5511 Posts

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.