Search
Categories
[Magento] Sửa lỗi Could not determine temp directory, please specify a cache_dir manually
If you are still having issues with this try creating a new dir called tmp.
Navigate to app/code/core/Zend/Cache/Backend/
Edit File.php
Change:
protected $_options = array(
'cache_dir' => 'null',to
protected $_options = array(
'cache_dir' => 'tmp/',For Magento Version 1.4.1.0
Navigate to lib/Zend/Cache/Backend/
Edit File.php
Change:
protected $_options = array(
'cache_dir' => null,to
protected $_options = array(
'cache_dir' => 'tmp/',This worked for me.
Create a folder “tmp” on ROOT FOLDER
_____________________________________
1 lỗi tương tự : Exception printing is disabled by default for security reasons.
Here is a known error which can occur when installing Magento:
There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: XXXXXXXXXXXXXXX
Here is the solution:
- Navigate to the “errors” folder.
- Change local.xml.sample to local.xml
- You should now see a new list of crazy errors all over the Magento page – this is okay.
- Open magento/lib/Zend/Cache/Backend/File.php and look for:
protected $_options = array(
‘cache_dir’ => ‘null’,
- Change it to:
protected $_options = array(
‘cache_dir’ => ‘tmp/’,
- Save it.
- Now the final step is to go create a tmp folder in the root Magento folder.
- That’s it.
01.
