Menu Close

tmp issue while Magento installation..

tmp issue while Magento installation..

tmp issue while Magento installation..

Getting /tmp directory issue in Magento, ahh its really annoying but the solution behind it very simple. .. you will see error like this.. 

-#0 /home/daan/domains/../library/Zend/Cache/Backend/File.php(154): Zend_Cache::throwException('cache_dir must ...') -#1 /home/daan/domains/../library/Zend/Cache/Backend/File.php(121): Zend_Cache_Backend_File->
                                    setCacheDir('/domains/daan.h...') -#2 /home/daan/domains/../library/Zend/Cache.php(153): Zend_Cache_Backend_File->
                                    __construct(Array) -#3 /home/daan/domains/../library/Zend/Cache.php(94): Zend_Cache::_makeBackend('File', Array, false, false) -#4 /home/daan/domains/../library/Zend/Locale/Data.php(307): Zend_Cache::factory('Core', 'File', Array, Array) -#5 /home/daan/domains/../library/Zend/Locale/Format.php(796): Zend_Locale_Data::getList('nl_NL', 'day') -#6 /home/daan/domains/../library/Zend/Locale/Format.php(1106): Zend_Locale_Format::_parseDate('16-02-2013', Array) -#7 /home/daan/domains/../library/Zend/Date.php(4763): Zend_Locale_Format::getDate('16-02-2013', Array)

So the solution is first if you are using linux then give right permission to /var/cache folder, if you are using Window machine then first check in root folder , do you have tmp folder?

If not then please create tmp folder into the root. 

Still pertaining with the issue then please check this..

 

Go to this location lib/Zend/Cache/Backend/ and open file.php file you’ll see the code something like this

protected $_options = array(
‘cache_dir’ => null,
‘file_locking’ => true,
‘read_control’ => true,
‘read_control_type’ => ‘crc32’,
‘hashed_directory_level’ => 0,
‘hashed_directory_umask’=> 0700,
‘file_name_prefix’ => ‘zend_cache’,
‘cache_file_umask’ => 0600,
‘metadatas_array_max_size’ => 100
);


change this code as below

protected $_options = array(
‘cache_dir’ => ‘/var/www/html/raindrops/magento/tmp’,
‘file_locking’ => true,
‘read_control’ => true,
‘read_control_type’ => ‘crc32’,
‘hashed_directory_level’=> 0,
‘hashed_directory_umask’ => 0700,
‘file_name_prefix’ => ‘zend_cache’,
‘cache_file_umask’ => 0600,
‘metadatas_array_max_size’ => 100
);

Write in to us!

We are just a click away. Let’s hear from you!

    Author Details

    Bharat Koriya

    CEO and Founder of the firm

    Mr. Bharat Koriya is the founder and CEO of Raindrops Infotech. He is a very disciplined, soft spoken and enthusiastic person. Being the founder of the company, he takes care of business development activities and maintains relations with clients.

    His charismatic and result driven approach has benefited the company to grow and achieve this height where the company stands right now. His vision, long term planning and sharp knowledge on latest technologies made this organization so successful and profitable in such a short period of time. Bharat ensures that the company gets up-to-date & latest knowledge on different technologies and trends in this competitive market. His problem solving skills and co- ordination abilities makes him favorable among clients and team members.

    View all posts Bharat Koriya

    Related Posts

    Why Do We Go For Progressive Web Apps (PWAs)?

    Avatar
    Bharat Koriya
    Recenly, I came across many of the applications advertising and was wondering how much they...
    Read More »

    Zoho CRM API integration with Rest of the Platform

    Avatar
    Bharat Koriya
    Zoho CRM has exposed its APIs for developers to allow them to build custom solutions...
    Read More »

    Write in to us!

    We are just a click away. Let’s hear from you!