Could not determine temp directory, please specify a cache_dir manually
Permalink 5 users found helpfulI'm encountering a problem that has already been described and solved for some users, but not me...
I got this error :
Could not determine temp directory, please specify a cache_dir manually
while navigating in dashboard in 2 locations :
- If I try to "Add user", I got this page:http://awesomescreenshot.com/0b6k6w691... (oddly not themed)
- After installing Internationalization, when clicking "Multilingual", I got this:http://awesomescreenshot.com/047k6x1c4...
I updated the file
/concrete/libraries/3rdparty/Zend/Cache/Backend/File.php
by modifying
'cache_dir' => null,
to
'cache_dir' => 'tmp/',
A few thing that might help:
- I tried to edit the error message which is located in
/concrete/libraries/3rdparty/Zend/Cache/Backend.php (line ~197)
Zend_Cache::throwException('BLABLABLA Could not determine temp directory, please specify a cache_dir manually');
The message displayed is still the same. (no "BLABLABLA")
- The URL of my site is automatically changed from "www.mysite.com" to "mysite.com" when navigating in C5 pages. (dashboard or site)
- Is also tried to put the absolute path for cache_dir
'cache_dir' => '/homez.000/mydomain/www/tmp/',
Any ideas...?
As you noticed, new copies of the core are automatically stored in the updates/ directory and there's a constant added in config/site.php that points the site to the new files.
/concrete/libraries/3rdparty/Zend/Cache/Backend/File.php
protected $_options = array(
'cache_dir' => 'files/tmp',
...
I have the same problem, I transferred from my testserver to my live server. I can access my backend, but don't get any content on my pages, instead I get the message: Could not determine temp directory, please specify a cache_dir manually.
I searched for the cache_dir in my config directory of the original concrete installation as well as in the directory of the updates, but can't find it.
Any hints where I should change the cache_dir?
Thanks, poetze
/concrete/libraries/3rdparty/Zend/Cache/Backend/File.php
Or
updates/concretexxx/libraries/3rdparty/Zend/Cache/Backend/File.php
But now I get an error that "cache_dir must be a directory"
I tried it with a relativ and an absolute path, but that doesn't help.
Any suggestions, maybe it's obvious but I don't get it.
thanks
If you do this:
'cache_dir' => 'tmp/',
you have to create manually a "tmp" folder in concrete root, and chmod it to 777.
i just create "tmp" directory inside concrete (core) directory but have to be in root of your site where concrete is installed !!!
thanks.
Much helpful solved me a great problem.
Thanks all for the strong contribution.
After PHP Safe Mode was turned off I followed the steps below & site was fixed in two minutes. Thanks very much ;-)
*sigh*
Can we get a fix for this issue???
\concrete\libraries\3rdparty\Zend\Cache\Backend
to
\libraries\3rdparty\Zend\Cache\Backend
and made the edits there. I was able to use
'cache_dir' => "files/tmp",
(Caution to Windows users: you can see that I am using backslashes, because I am on a Windows server, so I automatically used a backslash when I first made the edit, which does not work.)
I had to modify the file.php not in /concrete/... dir, but in /updates/concrete5.4.2/... dir !
It seems that core files used are the ones in /updates/ folder.
Weird, though...