...

View Full Version : Php code error advice



Emmajo
03-08-2010, 01:17 AM
Hello,
I know hardly anything about php but after coming across this website I am hoping someone can help me.
I have been using a program/interface called Phpgedview on my website. Has been set up fine for the past few days and I have been uploading and adjusting information. I'm not sure what I have done but when logged in I see the following error messages:
ERROR 2: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/ejtgenes:/usr/lib/php:/usr/local/lib/php:/tmp)
0 Error occurred on in function is_writable
1 called from line 187 of file class_menubar.php in function getMygedviewMenu
2 called from line 45 of file toplinks.php in function include
3 called from line 143 of file header.php in function include
4 called from line 587 of file functions_print.php in function print_header
5 called from line 309 of file index.php

Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/ejtgenes:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/ejtgenes/public_html/includes/classes/class_menubar.php on line 187

ERROR 2: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/ejtgenes:/usr/lib/php:/usr/local/lib/php:/tmp)
0 Error occurred on in function is_writable
1 called from line 198 of file class_menubar.php in function getMygedviewMenu
2 called from line 45 of file toplinks.php in function include
3 called from line 143 of file header.php in function include
4 called from line 587 of file functions_print.php in function print_header
5 called from line 309 of file index.php

Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/ejtgenes:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/ejtgenes/public_html/includes/classes/class_menubar.php on line 198


Could anyone please advise me on what the problem is and how I can deal with this. I would be really greatful.

:o

mlseim
03-08-2010, 01:41 AM
I've never seen that error, but I found this using Google:
http://www.sixapart.com/movabletype/kb/dynamic/open_basedir_re.html

I think you should contact your webhost about this issue.
I'm guessing they upgraded their PHP (or server) and this has caused a change in your settings.

Emmajo
03-08-2010, 06:15 PM
Ah someone I know found the problem was something silly. Thanks :)

mlseim
03-08-2010, 07:05 PM
Let us know what they found ... so we all know what the problem was.

Fou-Lu
03-08-2010, 07:29 PM
http://php.net/manual/en/ini.core.php#ini.open-basedir

This is one of the many reasons why I recommend the use of relative paths over absolute paths. Frankly, this directive is IMO absolutely useless, considering that proper permissions should be applied on the directories and files themselves, I'd be requesting that the directive be disabled by you're hosting company. Somewhere down the line they enabled this directive since its default is open.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum