Warning in cmsAdmin init.php showing up on pages

5 posts by 2 authors in: Forums > CMS Builder
Last Post: February 17, 2011   (RSS)

In every case where the cmsAdmin library is being referenced I'm getting the following Warning:


Warning: is_dir(): open_basedir restriction in effect. File(/var/www/vhosts/acsovisiting.com/httpdocs) is not within the allowed path(s): (/var/www/vhosts/acsovisiting.com/httpdocs/:/tmp/) in /var/www/vhosts/acsovisiting.com/httpdocs/cmsAdmin/lib/init.php on line 169

Help please?

TIA,

Eric

Re: [eduran582] Warning in cmsAdmin init.php showing up on pages

By Jason - February 17, 2011

Hi Eric,

It looks like the hosting provider is restricting the use of certain PHP functions. If everything else seems to be working, you can suppress this error by going into cmsAdmin/lib/init.php and going to line 169. Where you see is_dir, you can add a @ in front (@is_dir)

This should suppress the error. If this doesn't work, or you find other issues cropping up, you can contact your service provider about allowing these functions.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Warning in cmsAdmin init.php showing up on pages

Hi Jason,
Thanks for responding! The @ in front of the is_dir (on line 178 in the latest init.php file) did the trick!

However, when I log into the admin page of cms, it gives me the following instruction at the top:

Please set 'Website Root Directory' under: Admin > General Settings

The website root directory has not changed and is correct. One of the things I noticed that has changed in my php.ini server file is now under the php core settings where "open_basedir" is located, in the "local" column it now has the string "/var/www/vhosts/acsovisiting.com/httpdocs/:/tmp/" where before it had: "/var/www/vhosts/acsovisiting.com/httpdocs:/tmp/". Note the trailing slash after httpdocs now. My other installations of cmsAdmin have "no value" in the local column and in both cases the "master" column has "no value". I SSH'd into the server and modified the php.ini file (/etc/php.ini) but it still shows up. Do you think this is what's causing the admin page instruction to appear (add root directory)? If so, I'll contact the hosting company and see if they can remove it (set to "no value").

Thanks again.

Eric

Re: [eduran582] Warning in cmsAdmin init.php showing up on pages

By Jason - February 17, 2011

Hi Eric,

If the Website Root Directory being stored in CMS Builder is correct, then I would contact your hosting provider to see what they can do. Again, the best solution would be for them to allow open_basedir().

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/