|
Hello, I am new to ZF and have recently written an application which has worked fine until upgrading to ZF 1.8.1
the problem i am having is with Zend_Cache and Zend_Locale, whenever my application uses anything related to Zend_Locale (at the moment Zend_Date and int validator) my application keeps throwing a huge exception: object(Zend_Cache_Exception)#79 (6) { ["message:protected"] => string(25) "cache_dir is not writable" I have tried my best to read a lot online to find the answer to this problem but I can't and it is driving me nuts. I am pretty sure Zend_Locale is to blame, I have tried to change the cache directory of Zend_Locale in my bootstrap but this seems to have no effect. It says the current cache directory is "/var/folders/tk/tkPSF9ZHEzSMIK0+x4XnOU+++TI/-Tmp-//" but I have not specified this anywhere. I can provide more information if I seem to be too vague! Thanks in advance for any help on this issue! |
|
You should upgrade to 1.8.2.
There were 2 issues, one for Zend_Locale and one for Zend_Cache, which have been solved with 1.8.2. Actually Zend_Locale must have a cache due to the underlaying xml database. So when you set no cache, Zend_Locale tries to set a own one. Now we have 2 effects: Zend_Locale set a cache without a path specified and Zend_Cache tries to detect the temporary php directory where php has write priviledges. When Zend_Cache can not detect the path it throws an exception. There are 2 ways for you to prevent the exception when you have one: First, set a cache to Zend_Locale and give as option a directory which has write priviledges. Second, disable the cache within Zend_Locale ( disableCache(true) )explicitly. But then you have to live with a very big performance degration when using Zend_Locale due to reading the same data over and over again. This works only for 1.8.2 and higher. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com ----- Original Message ----- From: "martinatwebsite-lab" <[hidden email]> To: <[hidden email]> Sent: Tuesday, May 26, 2009 12:49 PM Subject: [fw-i18n] Zend_Locale/Cache exception on 1.8.1 > > Hello, I am new to ZF and have recently written an application which has > worked fine until upgrading to ZF 1.8.1 > > the problem i am having is with Zend_Cache and Zend_Locale, whenever my > application uses anything related to Zend_Locale (at the moment Zend_Date > and int validator) my application keeps throwing a huge exception: > > object(Zend_Cache_Exception)#79 (6) { > ["message:protected"] => string(25) "cache_dir is not writable" > > I have tried my best to read a lot online to find the answer to this > problem > but I can't and it is driving me nuts. I am pretty sure Zend_Locale is to > blame, I have tried to change the cache directory of Zend_Locale in my > bootstrap but this seems to have no effect. > > It says the current cache directory is > "/var/folders/tk/tkPSF9ZHEzSMIK0+x4XnOU+++TI/-Tmp-//" but I have not > specified this anywhere. > > I can provide more information if I seem to be too vague! > > Thanks in advance for any help on this issue! > > -- > View this message in context: > http://www.nabble.com/Zend_Locale-Cache-exception-on-1.8.1-tp23720748p23720748.html > Sent from the Zend I18N/Locale mailing list archive at Nabble.com. |
| Powered by Nabble | Edit this page |
