WordPress.org

Ready to get started?Download WordPress

Forums

P3 (Plugin Performance Profiler)
[resolved] open_basedir problems? (6 posts)

  1. ablank
    Member
    Posted 2 years ago #

    Hi,

    When I activate, the plugin p3-profiler, then I get the following warnings:

    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/domain.com/subdomains/reblog/httpdocs:/tmp:/usr/bin:/usr/sbin:/usr/share:/usr/local/bin) in /var/www/vhosts/domain.com/subdomains/reblog/httpdocs/wp-includes/functions.php on line 2104
    
    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/domain.com/subdomains/reblog/httpdocs:/tmp:/usr/bin:/usr/sbin:/usr/share:/usr/local/bin) in /var/www/vhosts/domain.com/subdomains/reblog/httpdocs/wp-includes/functions.php on line 2095
    
    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/domain.com/subdomains/reblog/httpdocs:/tmp:/usr/bin:/usr/sbin:/usr/share:/usr/local/bin) in /var/www/vhosts/domain.com/subdomains/reblog/httpdocs/wp-includes/functions.php on line 2104
    
    Warning: file_put_contents(/profiles/.htaccess) [function.file-put-contents]: failed to open stream: No such file or directory in /var/www/vhosts/domain.com/subdomains/reblog/httpdocs/wp-content/plugins/p3-profiler/p3-profiler.php on line 760
    
    Warning: file_put_contents(/profiles/index.php) [function.file-put-contents]: failed to open stream: No such file or directory in /var/www/vhosts/domain.com/subdomains/reblog/httpdocs/wp-content/plugins/p3-profiler/p3-profiler.php on line 763

    How can I fix this? I can't allow open_basedir "/".

    Best regards,
    Andy

    http://wordpress.org/extend/plugins/p3-profiler/

  2. Kurt Payne
    Member
    Plugin Contributor

    Posted 2 years ago #

    Hi Andy,

    Have you changed the location of WP_CONTENT_DIR or modified WordPress to move uploads to a different location?

    What you're seeing is P3 setting up a profiles folder to store your scan results so you can read them later. This should happen in a subfolder of your uploads folder.

    P3 is using the wp_upload_dir() function to get the location of where to store these scans.

  3. ablank
    Member
    Posted 2 years ago #

    Hi Kurt,

    I didn't have moved WP_CONTENT_DIR or modiefied an upload location (I don't know where at all). What you say makes sense, but I don't think it's the problem at my site. Is it possbile that the problem occurs because it's in the http-root of the domain directly?

    Best regards,
    Andy

  4. Kurt Payne
    Member
    Plugin Contributor

    Posted 2 years ago #

    Andy,

    Version 1.2.0 was released yesterday and there were many compatibility fixes. As a result of your ticket, an extra fix was added to one of the file operations for open_basedir. Do you still see the same problem with the new version?

  5. ablank
    Member
    Posted 2 years ago #

    Hi Kurt,

    Thanks for the notification about the latest version. I've upgraded to it and now it doesn't display the error message after activating.

    But when I access the plugin itself at tools, then I got the follow error messages:

    ---------------->
    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/domain.com/subdomains/reblog/httpdocs:/tmp:/usr/bin:/usr/sbin:/usr/share:/usr/local/bin) in /var/www/vhosts/domain.com/subdomains/reblog/httpdocs/wp-includes/functions.php on line 2104

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/domain.com/subdomains/reblog/httpdocs:/tmp:/usr/bin:/usr/sbin:/usr/share:/usr/local/bin) in /var/www/vhosts/domain.com/subdomains/reblog/httpdocs/wp-includes/functions.php on line 2095

    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/domain.com/subdomains/reblog/httpdocs:/tmp:/usr/bin:/usr/sbin:/usr/share:/usr/local/bin) in /var/www/vhosts/domain.com/subdomains/reblog/httpdocs/wp-includes/functions.php on line 2104

    Warning: file_put_contents(/profiles/.htaccess) [function.file-put-contents]: failed to open stream: No such file or directory in /var/www/vhosts/domain.com/subdomains/reblog/httpdocs/wp-content/plugins/p3-profiler/p3-profiler.php on line 736

    Warning: file_put_contents(/profiles/index.php) [function.file-put-contents]: failed to open stream: No such file or directory in /var/www/vhosts/domain.com/subdomains/reblog/httpdocs/wp-content/plugins/p3-profiler/p3-profiler.php on line 739

    Warning: opendir(/profiles) [function.opendir]: failed to open dir: No such file or directory in /var/www/vhosts/domain.com/subdomains/reblog/httpdocs/wp-content/plugins/p3-profiler/p3-profiler.php on line 633
    ---------------->

    Can I provide additional information?

    Best regards,
    Andy

  6. Kurt Payne
    Member
    Plugin Contributor

    Posted 2 years ago #

    Andy,

    Under Settings -> Media -> Uploading Files -> Store uploads in this folder

    What value does your site have there?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic