Google+

Pages

Tuesday, May 1, 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.

3 comments:

Unknown said...

Hi Mohit,

You have given perfect solution here...

But after applying all steps...still error has been continue in my site.

By the its working proper on local-host(offline). But on our live server error is showing....

pls if any further solution...help me...

thanks & regards
Praful

Unknown said...

please help me..

Mohit Kumar Arora said...

Hi Praful,

In my case, it worked..

Try this one also, if you have still problems:

Open php.ini, which is located in root folder, and paste this code here:

magic_quotes_gpc = off
flag session.auto_start = off
zlib.output_compression = on
suhosin.session.cryptua = off
zend.ze1_compatibility_mode = off

extension=mcrypt.so
extension=pdo.so
extension=pdo_mysql.so