Could not determine temp directory, please specify a cache_dir manually5 users found helpful
I'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
'cache_dir' => null,
'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/',
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.
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.
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?
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.
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 !!!
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 ;-)
Can we get a fix for this issue???
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.)