I believe that I've set up image.module correctly, but I keep getting the same error:

------------------------------------------
warning: is_dir(): Stat failed for files/images (errno=13 - Permission denied) in /home/jonacom/public_html/sld/includes/file.inc on line 85.

warning: mkdir(files/images): Permission denied in /home/jonacom/public_html/sld/includes/file.inc on line 86.

warning: is_dir(): Stat failed for files/images/temp (errno=13 - Permission denied) in /home/jonacom/public_html/sld/includes/file.inc on line 85.

warning: mkdir(files/images/temp): Permission denied in /home/jonacom/public_html/sld/includes/file.inc on line 86.

* The directory files/images does not exist.
* The directory files/images/temp does not exist.
------------------------------------------

I've set up the folders "files/images" on both the root (www/) folder, and in the folder that hosts the domain I'm using Drupal for (www/sld/), yet neither works.

All folders and subfolders for the files and images are chmod 777, but I still get the same error.

I'm using Drupal 4.6.3 on a server with Apache 1.3.33 (I believe), PHP 4+, MySQL 4+.

Any and all help is appreciated.

Comments

gdip’s picture

Do these folders exist relative your Drupal root?

jdeutsch’s picture

Relative how?

I've got the folders in the same subfolder hosting the domain I'm using Drupal on (domain folder= sld), images folder= sld/files/images/ & sld/files/images/temp.

The base URL I've set in Drupal is just the base domain name which should be the sld folder in my www folder.

Domain: www.sldtraining.com = www/sld/
Image Folder: www.sldtraining.com/files/images = www/sld/files/images

etc.

gdip’s picture

A few suggestions...
(just to make sure)
Go to Administer -> Setting.
Scroll down to "File system path:" and make sure files is typed in that field.
Check if you have any warnings on the same page that Drupal cannot write your files folder.
If everything is fine here I'd suggest checking the permissions for the image module in Administer ->Access control.

doughnut’s picture

Do the directories have the correct permissions?

whistler’s picture

I have got the same problem. File system path is set up correctly on the drupal settings page. It was working fine sometime before, but when i saw my log a few days back it was filled with these errors. On the images module setting page I have 4 errors the first one:

warning: is_dir(): Stat failed for files/images (errno=13 - Permission denied) in /home/ibrahim/public_html/includes/file.inc on line 85.

I chmoded files and images dirs to 777, still got the same prob.

ñull’s picture

I recently changed the permission of the home directory I am using, to disallow other users to view files. Some symlinked module directories were in that home directory and therefore I saw these warning messages come up. Check through the permissions of your modules' directories and you probably find the problem.