Support » Plugin: P3 (Plugin Performance Profiler) » [Plugin: P3 (Plugin Performance Profiler)] Multisite problems

  • I have installed the plugin on my multisite installation and noticed a small problem. It works on all sites, except the main site (with site ID 1). I’ve tried both network activated and single site activated, but in both occasions when trying to go the the P3 admin page, I get the following error:

    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/username/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/username/domains/mydomain.com/public_html/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): (/home/username/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/username/domains/mydomain.com/public_html/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): (/home/username/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/username/domains/mydomain.com/public_html/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 /home/username/domains/mydomain.com/public_html/wp-content/plugins/p3-profiler/classes/class.p3-profiler-plugin-admin.php on line 550

    Warning: file_put_contents(/profiles/index.php) [function.file-put-contents]: failed to open stream: No such file or directory in /home/username/domains/mydomain.com/public_html/wp-content/plugins/p3-profiler/classes/class.p3-profiler-plugin-admin.php on line 553

    Warning: opendir(/profiles) [function.opendir]: failed to open dir: No such file or directory in /home/username/domains/mydomain.com/public_html/wp-content/plugins/p3-profiler/classes/class.p3-profiler-plugin-admin.php on line 475
    Cannot read profiles directory

    I’ve tried to create the wp-content/uploads/profiles directory manually, as was suggested elsewhere in a similar issue, but that didn’t solve the problem.

    Any ideas?

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

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

    (@kurtpayne)

    Under settings -> media, what is the value of “Store uploads in this folder” ?

    There seems to be no “Store uploads in this folder” setting under settings -> media.

    Plugin Contributor Kurt Payne

    (@kurtpayne)

    You don’t have this setting in your admin panel?

    http://snag.gy/uFwTG.jpg

    No, not in my multisite installation. I guess this setting is being omitted when creating a network. However, I didn’t change anything there, so it should be the default values.

    For the main blog, the upload directory will be the default wp-content/uploads

    For the other blogs (where the plugin is working fine), the upload directory will be wp-content/blogs.dir/”blog-id”/files

    Plugin Contributor Kurt Payne

    (@kurtpayne)

    I’m sorry for the confusion … can you please check this setting on the blog where you’re experiencing the P3 error?

    As you’ve said:

    For the other blogs (where the plugin is working fine), the upload directory will be wp-content/blogs.dir/”blog-id”/files

    And this is where P3 tries to create the profiles folder and save the scans.

    But this error:

    File(/) is not within the allowed path(s):

    Indicates that the return value from wp_upload_dir() is /. This is tied to the media upload location setting and, as you’ve said, this is set per blog.

    Plugin Contributor Kurt Payne

    (@kurtpayne)

    Were you able to look into this any further?

    Thanks a lot for your time trying to help me. Unfortunately I haven’t been able to narrow it down.

    The setting you mention doesn’t show up anywhere in WordPress after activating the multisite network functionality. Not on the network admin area, nor in the admin area of the main site or the sub sites. I have checked this in other multisite installations and it is the same everywhere. However, since I can see where files going after being uploaded, I know that for the main site, where the error occurs, is the WordPress default: wp-content/uploads.

    Luckily, it is not that big a problem since it doesn’t hamper with the rest of the site and it is working fine on the sub sites.

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