Page 1 of 1

Image manager shows warning is_dir()

Posted: Mon Jul 11, 2005 9:17 am
by platine
Hi, installed 0.10 and got this message within the image manager:

Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/httpd/vhosts/site1/httpdocs:/tmp) in /home/httpd/vhosts/site1/httpdocs/lib/filemanager/ImageManager/Classes/ImageManager.php on line 213

This ist the 1st time I've seen this since I use CMS. The file manager also has a safe_mode and owner problem, when I create a folder in cms but not, when the folder is created with a ftp program.
The directories under tmp have 777 rights.

This warning does not seem to disturb the functionality of the cms but does definately irritate my cm-ladys in the office. :-)

Can I do something to change that behaviour?

Thanks.

Re: Image manager shows warning is_dir()

Posted: Mon Jul 11, 2005 10:03 am
by Ted
I submitted a bug for this.  I'll try to figure it out soon.

Re: Image manager shows warning is_dir()

Posted: Mon Jul 11, 2005 10:08 am
by platine
Need to correct myself: upload does not work.

Warning: move_uploaded_file(/home/httpd/vhosts/site1/httpdocs/uploads/images/content//lexus-button.gif): failed to open stream: Permission denied in /home/httpd/vhosts/site1/httpdocs/admin/imagefiles.php on line 85

Warning: move_uploaded_file(): Unable to move '/tmp/phpd1POyX' to '/home/httpd/vhosts/site1/httpdocs/uploads/images/content//button.gif' in /home/httpd/vhosts/site1/httpdocs/admin/imagefiles.php on line 85

Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/site1/httpdocs/admin/imagefiles.php:85) in /home/httpd/vhosts/site1/httpdocs/lib/classes/class.admintheme.inc.php on line 158

Is the double slash possibly the problem?

Re: Image manager shows warning is_dir()

Posted: Mon Jul 11, 2005 1:27 pm
by piratos
set rights from uploads AND images to chmod 777

Re: Image manager shows warning is_dir()

Posted: Thu Jul 14, 2005 7:31 pm
by platine
Thanks for the suggestion piratos, this was the first thing I've done. But still ...

Re: Image manager shows warning is_dir()

Posted: Tue Aug 16, 2005 1:13 am
by fjoesne
I just encountered the same problem.. The thing is that the base url for the ftp server is different to what the system detects..
"/home/httpd/vhosts/blah/httpdocs" is what the system detects, however when I'm accessing the server via ftp the root is -at- /home/httpd/vhosts/blah ...
I dont know if this has something to do with it, i hope someone has a solution :)

Re: Image manager shows warning is_dir()

Posted: Tue Aug 16, 2005 7:59 am
by jah
If this is related to safe_mode, I have experienced that folders must be created with an FTP program. The solution I'm using in this case is this:
  • Create the folder structure with your FTP program. (Users will have to stick to this structure and cannot create their own folders).
  • Set cmod=777 for all the folders


If you already have created a folder with File/ImageManager you have to delete it and recreate it with the FTP program to make it work (chmod does not help).

I don't know if this is a bug, or maybe Folder creation should be turned off for when safe_mode is enabled?

Jon