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-image

    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
    Support Stories

    Related Posts Insight

    Free Open-Source Software Examples To Transform Your Business
    Businesses

    Free Open-Source Software Examples To Transform Your Business

    If you’re running a business, whether it’s a startup, a small company, or even a growing enterprise—chances are you’re spending way too much on software. Think about it: ₹10,000/month on…

    Read More arrow
    Top 7 Live Streaming Mobile Apps
    MAGENTO DEVELOPMENT

    Top 7 Live Streaming Mobile Apps

    Are you on social media? Can I connect with you on Facebook? Do you have any Insta ID? All these questions are now obvious as we all have become much…

    Read More arrow
    A comprehensive Guide to ECommerce App Development
    MAGENTO DEVELOPMENT

    A comprehensive Guide to ECommerce App Development

    Ecommerce stores have given a great advantage to people, especially in the pandemic times. People are able to purchase their desired assets online. The innovations in ecommerce development services have…

    Read More arrow
    Flutter Basics: why use Flutter for mobile app development
    MAGENTO DEVELOPMENT

    Flutter Basics: why use Flutter for mobile app development

    Flutter is great for mobile app development and various reasons are here to stand with this statement. Flutter programming saves time and money both. A Flutter mobile app includes the…

    Read More arrow
    How to Choose and Hire React JS Development Company?
    MAGENTO DEVELOPMENT

    How to Choose and Hire React JS Development Company?

    Modern technology has made things easier and faster; the ‘internet’ should be mentioned here, especially. Mobile apps, websites, and many other technical endeavors have transformed the way of living. Among…

    Read More arrow
    Work With Us

    Built for GrowingBrands

    Have a question? Let's chat. Our team is ready to help you find the right solution for your business.

    How can we help you?

    Get in touch with us. We'd love to hear from you.

    x