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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

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

Uncaught Zend_Cache_Exception


Go to End


3 Posts   2041 Views

Avatar
oldwrinkly

Community Member, 34 Posts

4 January 2011 at 1:06am

Further to my post below`error on install`
I wiped everything again and tried to install 2.44 again
installed ok tried to go to admin and got a similar error ........

[User Error] Uncaught Zend_Cache_Exception: cache_dir is not writable
GET /Security/login?BackURL=%2Fadmin

Line 208 in /var/www/vhosts/kentishweald.co.uk/httpdocs/sapphire/thirdparty/Zend/Cache.php
Source

199 *
200 * Note : for perf reasons, the "load" of Zend/Cache/Exception is dynamic
201 * @param string $msg Message for the exception
202 * @throws Zend_Cache_Exception
203 */
204 public static function throwException($msg)
205 {
206 // For perfs reasons, we use this dynamic inclusion
207 require_once 'Zend/Cache/Exception.php';
208 throw new Zend_Cache_Exception($msg);
209 }
210
211 /**
212 * Normalize frontend and backend names to allow multiple words TitleCased
213 *
214 * @param string $name Name to normalize

Trace

* Zend_Cache::throwException(cache_dir is not writable)
Line 156 of File.php
* Zend_Cache_Backend_File->setCacheDir(/var/www/vhosts/kentishweald.co.uk/httpdocs/silverstripe-cache/cache)
Line 120 of File.php
* Zend_Cache_Backend_File->__construct(Array)
Line 152 of Cache.php
* Zend_Cache::_makeBackend(File,Array,,)
Line 93 of Cache.php
* Zend_Cache::factory(Output,File,Array,Array)
Line 196 of Cache.php
* SS_Cache::factory(cacheblock)
Line 368 of SSViewer.php
* SSViewer->process(MemberLoginForm)
Line 342 of ViewableData.php
* ViewableData->renderWith(Array)
Line 1108 of Form.php
* Form->forTemplate()
Line 377 of Security.php
* Security->login(SS_HTTPRequest)
Line 193 of Controller.php
* Controller->handleAction(SS_HTTPRequest)
Line 143 of RequestHandler.php
* RequestHandler->handleRequest(SS_HTTPRequest)
Line 147 of Controller.php
* Controller->handleRequest(SS_HTTPRequest)
Line 282 of Director.php
* Director::handleRequest(SS_HTTPRequest,Session)
Line 125 of Director.php
* Director::direct(/Security/login)
Line 127 of main.php

This is all getting infuriating

can anyone help please

Regards
Mike

Avatar
Willr

Forum Moderator, 5523 Posts

6 January 2011 at 9:10pm

As the error message says "[User Error] Uncaught Zend_Cache_Exception: cache_dir is not writable".

You will need to ensure your cache directory is writable. If you're on a shared host you may be prevented from writing to the default tmp location so SS will swap to a 'silverstripe-cache' folder if one exists in the root of your site. Try creating that 'silverstripe-cache' folder and ensure it has read/write perms.

Avatar
oldwrinkly

Community Member, 34 Posts

9 January 2011 at 12:44pm

Willr

Thanks for replying

I already had a `siverstripe-cache` folder and it was being written to,

The server engineer found the problem, a constant redirect loop caused by a conflict between .htaccess and fastcgi
He altered the .htaccess and I reinstalled fastcgi and everything works.

Regards
Mike