Jump to:

4945 Posts in 17872 Topics by 1494 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Uncaught Zend_Cache_Exception

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

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

Page: 1
Go to End
Author Topic: 1430 Views
  • oldwrinkly
    Community Member
    34 Posts

    Uncaught Zend_Cache_Exception Link to this post

    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

    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 }
    211 /**
    212 * Normalize frontend and backend names to allow multiple words TitleCased
    213 *
    214 * @param string $name Name to normalize


    * 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


  • Willr
    Forum Moderator
    5511 Posts

    Re: Uncaught Zend_Cache_Exception Link to this post

    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.

  • oldwrinkly
    Community Member
    34 Posts

    Re: Uncaught Zend_Cache_Exception Link to this post


    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.


Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.