After transfering a project from windows (working fine) to linux, I get the following error on pages using forms (other pages are fine):
[User Error] Uncaught Zend_Cache_Exception: cache_dir must be a directory
GET /registrierung?flush=all
Line 208 in /var/www/contentaward_test/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 must be a directory)
Line 153 of File.php
* Zend_Cache_Backend_File->setCacheDir(/tmp/,)
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(de_DE,date)
Line 962 of Format.php
* Zend_Locale_Format::getDateFormat(de_DE)
Line 81 of DateField.php
* DateField->__construct(Geburtsdatum,Geburtsdatum* (TT MM JJJJ))
Line 55 of RegistrierungsFormular.php
* RegistrierungsFormular_Controller->Form()
Line 367 of ViewableData.php
* ViewableData->obj(Form,,,1)
Line 443 of ViewableData.php
* ViewableData->XML_val(Form,,1)
Line 21 of .cache.var.www.contentaward_test.mysite.templates.Layout.RegistrierungsFormular.ss
* include(/var/www/contentaward_test/silverstripe-cache/.cache.var.www.contentaward_test.mysite.templates.Layout.RegistrierungsFormular.ss)
Line 377 of SSViewer.php
* SSViewer->process(RegistrierungsFormular_Controller,Zend_Cache_Frontend_Output)
Line 368 of SSViewer.php
* SSViewer->process(RegistrierungsFormular_Controller)
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 172 of ContentController.php
* ContentController->handleRequest(SS_HTTPRequest)
Line 67 of ModelAsController.php
* ModelAsController->handleRequest(SS_HTTPRequest)
Line 283 of Director.php
* Director::handleRequest(SS_HTTPRequest,Session)
Line 127 of Director.php
* Director::direct(/registrierung)
Line 127 of main.php
/silverstripe-cache is writable (chmod 777) and being filled with manifest files.
Is
Zend_Cache_Backend_File->setCacheDir(/tmp/,)
to be expected or is there something wrong with that?
Not sure if it is related or a different matter: I use Requirements::combine_files("mainCSS.css", $cssArray); and the file is created on windows just fine, but not on linux. /assets is writable (chmod 777) as well.