Title: [Plugin: P3 (Plugin Performance Profiler)] Multisite problems
Last modified: August 20, 2016

---

# [Plugin: P3 (Plugin Performance Profiler)] Multisite problems

 *  [Yakti-R](https://wordpress.org/support/users/yakti-ruud/)
 * (@yakti-ruud)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/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/](http://wordpress.org/extend/plugins/p3-profiler/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Contributor [Kurt Payne](https://wordpress.org/support/users/kurtpayne/)
 * (@kurtpayne)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-multisite-problems/#post-2836819)
 * Under settings -> media, what is the value of “Store uploads in this folder” ?
 *  Thread Starter [Yakti-R](https://wordpress.org/support/users/yakti-ruud/)
 * (@yakti-ruud)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-multisite-problems/#post-2836856)
 * There seems to be no “Store uploads in this folder” setting under settings ->
   media.
 *  Plugin Contributor [Kurt Payne](https://wordpress.org/support/users/kurtpayne/)
 * (@kurtpayne)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-multisite-problems/#post-2836862)
 * You don’t have this setting in your admin panel?
 * [http://snag.gy/uFwTG.jpg](http://snag.gy/uFwTG.jpg)
 *  Thread Starter [Yakti-R](https://wordpress.org/support/users/yakti-ruud/)
 * (@yakti-ruud)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-multisite-problems/#post-2836874)
 * 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](https://wordpress.org/support/users/kurtpayne/)
 * (@kurtpayne)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-multisite-problems/#post-2836886)
 * 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](https://wordpress.org/support/users/kurtpayne/)
 * (@kurtpayne)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-multisite-problems/#post-2836933)
 * Were you able to look into this any further?
 *  Thread Starter [Yakti-R](https://wordpress.org/support/users/yakti-ruud/)
 * (@yakti-ruud)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-multisite-problems/#post-2836934)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/p3-profiler_80a82a.svg)
 * [P3 (Plugin Performance Profiler)](https://wordpress.org/plugins/p3-profiler/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/p3-profiler/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/p3-profiler/)
 * [Active Topics](https://wordpress.org/support/plugin/p3-profiler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/p3-profiler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/p3-profiler/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Yakti-R](https://wordpress.org/support/users/yakti-ruud/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-multisite-problems/#post-2836934)
 * Status: not resolved