4/30/2012

Magento Error: Unable to list current working directory.

Sometimes magento refuses to upload tablerates.csv file for shipping methods.


This problem can occur due to following reasons:
1.  Folder permissions to media and var folders. (Solution can be to assign 777 folder permissions to both of them).
2.  There is "no value" assigned for "upload_tmp_dir". (To check this, upload phpinfo.php file to your magento root folder and see it on browser by: [your website's url]/phpinfo.php)



Solution:
a.  Open php.ini file which is located on server's root folder.
b.  Add the following line of code to it:
     upload_tmp_dir = /home2/huntingf/public_html/magento/var/tmp


Note: Here "/home2/huntingf/public_html/magento/var/tmp" will be replaced by your server's folder path, where you want to upload files temporarily.

1 comment: