Dec 31, 2013
91 Views

[Magento] Sửa lỗi Could not determine temp directory, please specify a cache_dir manually

Written by

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:

  1. Navigate to the “errors” folder.
  2. Change local.xml.sample to local.xml
  3. You should now see a new list of crazy errors all over the Magento page – this is okay.
  4. Open magento/lib/Zend/Cache/Backend/File.php and look for:
    protected $_options = array(

    ‘cache_dir’ => ‘null’,

  5. Change it to:
    protected $_options = array(

    ‘cache_dir’ => ‘tmp/’,

  6. Save it.
  7. Now the final step is to go create a tmp folder in the root Magento folder.
  8. That’s it.
Article Tags:
·
Article Categories:
Code/Web
    http://linholiver.com

    https://linholiver.com/diary/about/