• After upgrading to version 3.0.3 I get the following message:

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/shadowbox-js/4c6c583c6cf2c90b83872e6b6fb9c084.js) is not within the allowed path(s): (/home/deb4664/:/tmp:/usr/local/lib/php/) in /usr/home/deb4664/domains/halfje-bruin.nl/public_html/wordpress/wp-content/plugins/shadowbox-js/inc/frontend.php on line 94

    I downgraded to 3.0.0.3 to prevent this.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Do media uploads work on your site? Or automatic upgrades/installs?

    It looks like there is a misconfiguration for open_basedir.

    Your document root appears to actually be at /usr/home/deb4664/ and open_basedir has specified /home/deb4664/. Note the lack of /usr in what is specified in open_basedir.

    Thread Starter Kees de Bruin

    (@keesdebruin)

    I’ve contacted my hosting provider and will see what they come up with.

    Let me know, hopefully we can get it worked out.

    Thread Starter Kees de Bruin

    (@keesdebruin)

    It seems that /usr/home/… and /home/… are aliases but the real problem is that the function checks for an absolute file in /shadowbox-js/… and that is blocked.

    Hm, that indicates that the wp_upload_dir function, which is a built in WP function, isn’t working.

    A couple of questions:

    1) What version of PHP are you running?
    2) Do media uploads work correctly? (Media->Add New or When writing a post)

    Thread Starter Kees de Bruin

    (@keesdebruin)

    PHP version is 5.2.13 and media uploads pose no problems. You can see the server setup using this link: https://phpinfo.antagonist.nl/. Note that this is for the “administrator” so some settings are a bit different for me as a mere customer.

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/shadowbox-js/f673da587d70eb8d9f92b19c526abd4c.js) is not within the allowed path(s): (/f5/daede/:/nfsn/apps/php5/lib/php/:/nfsn/apps/php/lib/php/:/nfsn/content/content/nfsn/) in /f5/daede/public/wp-content/plugins/shadowbox-js/inc/frontend.php on line 94

    Exact same problem. Media uploads work fine. I updated the plugin with the automated script with no issues, now my page craps this out.

    It is searching for an absolute file path in the relative location /shadowbox-js, and this is contrary to the proper operation of open_basedir.

    I’ve been watching this thread for about a month now and there hasn’t been an update to it. Is the shadowbox-js project abandoned?

    I’ve downgraded to 3.0.0.3 in the meantime. Hope to see an explanation/fix soon ??

    I am not sure why this is happening, and it is not that the plugin is attempting to put /shadowbox-js in the root of the file system. For some reason wp_upload_dir() is returning ”, which when the plugin append ‘/shadowbox-js/blah.js’ it is only ending up with the appended string.

    You can try the development version of this plugin which may help:

    https://downloads.www.ads-software.com/plugin/shadowbox-js.zip

    Your linked development version works fine for me – thanks a lot!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: Shadowbox JS] open_basedir() restrictions’ is closed to new replies.