Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Magento "Unable to list current working directory"

http://www.keciadesign.dk

I am trying to set up table rates in Magento 1.6.2.0. The problem occurs when I try to upload the file with table rates (CSV-file). Then the error "Unable to list current working directory" appears and I can't go any further.

TMP, Media and Var folders have perm.777.

I have read everything there was to find on the Internet on this problem - many seem to have had this problem but I have yet to see a solution.

Note: Probably not very relevant, but I am on Unoeuro hosting on a shared serverspot.

like image 272
Christian Avatar asked Mar 02 '12 12:03

Christian


3 Answers

With some extensions (Wyomind Simple Google Shopping) the error shows up when var/tmp is missing in Magento directory structure.

like image 185
Jan Tomka Avatar answered Oct 03 '22 15:10

Jan Tomka


The most popular reason of this problem - wrong permissions for media directory. It should be writeable by web server. More information can be checked here.

like image 31
Roman Snitko Avatar answered Oct 03 '22 14:10

Roman Snitko


Look to your php.ini and find upload_tmp_dir option (or use echo ini_get('upload_tmp_dir') in your code. Seems like PHP can't list files in this directory where apache uploads files. I'm afraid you can't change permissions of this folder on shared hosting.

like image 29
Dmytro Zavalkin Avatar answered Oct 03 '22 15:10

Dmytro Zavalkin