Jump to:

4873 Posts in 7127 Topics by 1471 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » First time trying to install and Error

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: 1653 Views
  • Howman
    Avatar
    Community Member
    2 Posts

    First time trying to install and Error Link to this post

    Front end seams fine

    Backend (admin)
    [User Error] Uncaught Zend_Cache_Exception: cache_dir is not writable
    GET /silverstripe/admin/
    Line 208 in C:\inetpub\wwwroot\silverstripe\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(C:\Windows\TEMP\,)
    Line 122 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(Core,File,Array,Array)
    Line 835 of Data.php
    •Zend_Locale_Data::getContent(en_US,date)
    Line 962 of Format.php
    •Zend_Locale_Format::getDateFormat(en_US)
    Line 81 of DateField.php
    •DateField->__construct(SiteTreeFilterDate)
    Line 224 of CMSMain.php
    •CMSMain->SiteTreeFilterDateField()
    Line 369 of ViewableData.php
    •ViewableData->obj(SiteTreeFilterDateField,,,1)
    Line 445 of ViewableData.php
    •ViewableData->XML_val(SiteTreeFilterDateField,,1)
    Line 102 of .cacheC..inetpub.wwwroot.silverstripe.cms.templates.Includes.CMSMain_left.ss
    •include(C:\Windows\Temp\silverstripe-cacheC--inetpub-wwwroot-silverstripe\.cacheC..inetpub.wwwroot.silverstripe.cms.templates.Includes.CMSMain_left.ss)
    Line 392 of SSViewer.php
    •SSViewer->process(CMSMain)
    Line 342 of ViewableData.php
    •ViewableData->renderWith(Array)
    Line 483 of LeftAndMain.php
    •LeftAndMain->Left()
    Line 369 of ViewableData.php
    •ViewableData->obj(Left,,,1)
    Line 445 of ViewableData.php
    •ViewableData->XML_val(Left,,1)
    Line 59 of .cacheC..inetpub.wwwroot.silverstripe.cms.templates.LeftAndMain.ss
    •include(C:\Windows\Temp\silverstripe-cacheC--inetpub-wwwroot-silverstripe\.cacheC..inetpub.wwwroot.silverstripe.cms.templates.LeftAndMain.ss)
    Line 392 of SSViewer.php
    •SSViewer->process(CMSMain)
    Line 202 of Controller.php
    •Controller->handleAction(SS_HTTPRequest)
    Line 134 of RequestHandler.php
    •RequestHandler->handleRequest(SS_HTTPRequest)
    Line 147 of Controller.php
    •Controller->handleRequest(SS_HTTPRequest)
    Line 283 of Director.php
    •Director::handleRequest(SS_HTTPRequest,Session)
    Line 127 of Director.php
    •Director::direct(admin/)
    Line 127 of main.php

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: First time trying to install and Error Link to this post

    Well from the error message its saying the cache directory is not wrtiable which looks like the C:\Windows\TEMP\ folder so you should ensure that folder is read and writable for the webserver. If you can't change the permissions of that folder then you should create a silverstripe-cache folder in your installation and make sure thats writable. Then reload the cms by visiting yoursite.com/admin?flush=1

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: First time trying to install and Error Link to this post

    The trouble is Zend stores temp files in C:\Windows\Temp on Windows, but SilverStripe doesn't set it's temp location, since it's a third-party library. Creating a silverstripe-cache directory in the project probably won't help either.

    Please make sure the Users group has write permissions on C:\Windows\Temp and you should be fine again. You can edit the permissions by going to the "Security" tab after right clicking the folder in Windows Explorer, and going to "Properties".

  • Howman
    Avatar
    Community Member
    2 Posts

    Re: First time trying to install and Error Link to this post

    Thank you
    adding permission to the temp folder worked

    1653 Views
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.