Jump to:

4952 Posts in 14480 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » [SOLVED] SS3 installation error: [Warning] is_readable(): open_basedir restriction in effect

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3
Go to End
Author Topic: 7872 Views
  • _dave
    Avatar
    Community Member
    4 Posts

    Re: [SOLVED] SS3 installation error: [Warning] is_readable(): open_basedir restriction in effect Link to this post

    Same here, with the difference that my SS install worked fine on bluehost, but produced warnings on another shared hosting server. phpinfo() outputs attached.

    SS v3.0.2, UserForms v1.0

    Cheers
    Dave

    Attached Files
  • walid
    Avatar
    Community Member
    3 Posts

    Re: [SOLVED] SS3 installation error: [Warning] is_readable(): open_basedir restriction in effect Link to this post

    Thank you Optic Blaze for this helpful info

  • Liam
    Avatar
    Community Member
    470 Posts

    Re: [SOLVED] SS3 installation error: [Warning] is_readable(): open_basedir restriction in effect Link to this post

    I'm stuck on some pretty terrible hosting with a certain client project I'm working on and believe I have the same issue.

    I can't run 3.1 as the server is using an old version of pcre which throws errors and the link rewriting in tinymce/htmleditorfield won't work.

    So I installed 3.0.8 but am getting the same errors as mentioned in this thread, even though it appears to be fixed in an earlier point release.

    Obviously if I put the site environment in live mode the errors are suppressed, and after some testing everything appears to work fine including file uploads.

    Do I just stomach it and move along as normal or will it break somewhere along the lines and I'm just not seeing it at the moment in my tests? Basically, what exactly will the error effect?

    2 errors:

    [Warning] is_readable(): open_basedir restriction in effect. File(/usr/bin/pear/Zend/Translate/Adapter/I18nRailsYamlAdapter.php) is not within the allowed path(s): (/var/www/vhosts/clientname/:/tmp/)

    [Warning] is_readable(): open_basedir restriction in effect. File(/usr/share/pear/Zend/Translate/Adapter/I18nRailsYamlAdapter.php) is not within the allowed path(s): (/var/www/vhosts/clientname/:/tmp/)

    Searches both /usr/bin/.... and /usr/share/....

  • Optic Blaze
    Avatar
    Community Member
    161 Posts

    Re: [SOLVED] SS3 installation error: [Warning] is_readable(): open_basedir restriction in effect Link to this post

    Hi there,

    The only thing i have found that has worked is the following. I am successfully running 3.1.1 on a server that gives me the same error as you mentioned:

    Go to: framework/thirdparty/Zend/Loader.php
    at about line 190 you will find this foreach statement:

    foreach (self::explodeIncludePath() as $path) {
    if ($path == '.') {
    if (is_readable($filename)) {
    return true;
    }
    continue;
    }
    /*   COMMENT THIS OUT      
    $file = $path . '/' . $filename;
    if (is_readable($file)) {
    return true;
    }
    */
    }

    Hope it helps

  • Liam
    Avatar
    Community Member
    470 Posts

    Re: [SOLVED] SS3 installation error: [Warning] is_readable(): open_basedir restriction in effect Link to this post

    That seems to fix it on 3.0.8 as well. I guess I'll just move ahead and hope for the best. The site is just a small 5 page brochure site, with no translations, so I hope I'll be alright.

    Thanks for the help.

  • s_a_m_y
    Avatar
    Community Member
    25 Posts

    Re: [SOLVED] SS3 installation error: [Warning] is_readable(): open_basedir restriction in effect Link to this post

    Had the same issue installing 3.1.2 on a shared host with not php.ini-access. Commenting out the mentioned lines also did it for me. Thanks!

    7872 Views
Page: 1 2 3
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.