WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: P3 (Plugin Performance Profiler)] open_basedir problems?

[Resolved] [Plugin: P3 (Plugin Performance Profiler)] open_basedir problems?

  • 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/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Kurt Payne
    Member

    @kurtpayne

    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.

    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

    Plugin Contributor Kurt Payne
    Member

    @kurtpayne

    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?

    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

    Plugin Contributor Kurt Payne
    Member

    @kurtpayne

    Andy,

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

    What value does your site have there?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [Plugin: P3 (Plugin Performance Profiler)] open_basedir problems?’ is closed to new replies.