Image manager shows warning is_dir()

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
platine

Image manager shows warning is_dir()

Post 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.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Image manager shows warning is_dir()

Post by Ted »

I submitted a bug for this.  I'll try to figure it out soon.
platine

Re: Image manager shows warning is_dir()

Post 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?
piratos

Re: Image manager shows warning is_dir()

Post by piratos »

set rights from uploads AND images to chmod 777
platine

Re: Image manager shows warning is_dir()

Post by platine »

Thanks for the suggestion piratos, this was the first thing I've done. But still ...
fjoesne

Re: Image manager shows warning is_dir()

Post 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 :)
jah
Forum Members
Forum Members
Posts: 147
Joined: Thu Dec 30, 2004 9:09 am

Re: Image manager shows warning is_dir()

Post 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
Locked

Return to “CMSMS Core”