WordPress.org

Ready to get started?Download WordPress

Forums

WP Supersized
PHP error "open_basedir restriction" (10 posts)

  1. Tim Beam
    Member
    Posted 2 years ago #

    In the admin menu under "Slides sources" I get multiple of the following errors for different files and folders:
    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/www/htdocs/abc/.../wp-content/galerien/index.php/) is not within the allowed path(s): (/www/htdocs/abc/:/tmp:/usr/bin:/www/htdocs/abc:/bin:/usr/local/bin:/usr/share/php) in /www/htdocs/abc/.../wp-content/plugins/wp-supersized/includes/WPSupersized.php on line 1515

    All errors ends with line 1515:
    if(is_dir($directory_base_path . $filename . "/")) {

    The error is also in the post/page edit screens under "Select your custom directory. Click on folder name to show contained folders."

    Any idea? I cannot choose the custom directory and use /wp-content/supersized-slides/
    (Nevertheless, the plugin works)

    http://wordpress.org/extend/plugins/wp-supersized/

  2. chieldeno
    Member
    Posted 2 years ago #

    I have the same error. At the WP Supersized options page, selected the tab 'Slides source', there is this gigantic list of errors.
    Looked everywhere on the internet, but I can't find a solution.

    It's a pretty annoying error list, since it's that long!

    Anybody with a solution?

    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/usr/home/********/domains/********.nl/public_html/wp-content/index.php/) is not within the allowed path(s): (/home/********/:/usr/home/********/:/tmp:/var/tmp:/usr/local/lib/php/) in /usr/home/********/domains/********/public_html/wp-content/plugins/wp-supersized/includes/WPSupersized.php on line 1515

    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/usr/home/********/domains/********.nl/public_html/wp-content/uploads/fotografie/********-fotografie-01-large.jpg/) is not within the allowed path(s): (/home/*******/:/usr/home/*******/:/tmp:/var/tmp:/usr/local/lib/php/) in /usr/home/********/domains/******.nl/public_html/wp-content/plugins/wp-supersized/includes/WPSupersized.php on line 1515

    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/usr/home/*******/domains/******.nl/public_html/wp-content/uploads/fotografie/********-fotografie-01.jpg/) is not within the allowed path(s): (/home/******/:/usr/home/deb10901/:/tmp:/var/tmp:/usr/local/lib/php/) in /usr/home/********/domains/******.nl/public_html/wp-content/plugins/wp-supersized/includes/WPSupersized.php on line 1515

  3. chieldeno
    Member
    Posted 2 years ago #

    Nobody has anything to say about this?

  4. Tim Beam
    Member
    Posted 2 years ago #

    I think it could be a thing of server configuration because dir functions are mentioned. Hence the developer of the plugin have maybe no idea! Or?

  5. unine
    Member
    Posted 2 years ago #

    i have the same problem it not serious but it annoying. after i run around i found my opend_basedir is on and have correct path in it. then i fix it by modify the core plugin
    by remove "/" in includes/WPSupersized.php line 1515 it will look like this
    if(is_dir($directory_base_path.$filename."/"))

    and the annoying is gone i dont know it have effect to plugin or not but now it work fine for me

  6. chieldeno
    Member
    Posted 2 years ago #

    Thanks unine... that solved the annoying list of errors!

    I have tested your solution in IE, Firefox and Safari, looks like no problems.

  7. Tim Beam
    Member
    Posted 2 years ago #

    I only delete the / in line 1515 and it works for me, too.
    Looks that: if(is_dir($directory_base_path . $filename . "")) {

  8. Benoit De Boeck
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks unine for finding this out.
    I will include your fix in my next update.

  9. aundc
    Member
    Posted 1 year ago #

    jippie! :-)
    thank you all so much to fix this!
    Happy Xmas*!
    cheers

    *if there is not the end of the world today ... ;-)

  10. Himanshu Goel
    Member
    Posted 1 year ago #

    hello guys !
    i am new to wordpress.
    i m surprised to know
    where this line can be found which can solve the issues... i am new on a windows server facing this problem, where as on a linux server there is no issues....

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic