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.

Installing SilverStripe /

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

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

First time trying to install and Error


Go to End


4 Posts   2337 Views

Avatar
Howman

Community Member, 2 Posts

15 May 2010 at 5:44pm

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

Avatar
Willr

Forum Moderator, 5523 Posts

15 May 2010 at 10:28pm

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

Avatar
Sean

Forum Moderator, 922 Posts

15 May 2010 at 11:47pm

Edited: 15/05/2010 11:48pm

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".

Avatar
Howman

Community Member, 2 Posts

16 May 2010 at 2:30am

Thank you
adding permission to the temp folder worked