Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Mar 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Php code error advice

    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.


  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,497
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    I've never seen that error, but I found this using Google:
    http://www.sixapart.com/movabletype/...asedir_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.

  • #3
    New to the CF scene
    Join Date
    Mar 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ah someone I know found the problem was something silly. Thanks

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,497
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    Let us know what they found ... so we all know what the problem was.

  • #5
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    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.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •