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

---

# [Plugin: P3 (Plugin Performance Profiler)] PHP ERROR

 *  [valentino321](https://wordpress.org/support/users/valentino321/)
 * (@valentino321)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-php-error/)
 * When i try to launch a Scan i can’t and i have a php error :
 *     ```
       Warning: file_put_contents(/var/www/"mysite"/wp-content/uploads/profiles/.htaccess) [function.file-put-contents]: failed to open stream: No such file or directory in /var/www/"mysite"/wp-content/plugins/p3-profiler/classes/class.p3-profiler-plugin-admin.php on line 550
   
       Warning: file_put_contents(/var/www/"mysite"/wp-content/uploads/profiles/index.php) [function.file-put-contents]: failed to open stream: No such file or directory in /var/www/"mysite"/wp-content/plugins/p3-profiler/classes/class.p3-profiler-plugin-admin.php on line 553
   
       Warning: opendir(/var/www/"mysite"/wp-content/uploads/profiles) [function.opendir]: failed to open dir: No such file or directory in /var/www/"mysite"/wp-content/plugins/p3-profiler/classes/class.p3-profiler-plugin-admin.php on line 475
   
       Cannot read profiles directory
       ```
   
 * An issue?
 * Thanks
 * [http://wordpress.org/extend/plugins/p3-profiler/](http://wordpress.org/extend/plugins/p3-profiler/)

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

 *  Plugin Contributor [Kurt Payne](https://wordpress.org/support/users/kurtpayne/)
 * (@kurtpayne)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-php-error/#post-2840484)
 * Under settings -> media, what is the value of “Store uploads in this folder” ?
 *  Plugin Contributor [Kurt Payne](https://wordpress.org/support/users/kurtpayne/)
 * (@kurtpayne)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-php-error/#post-2840664)
 * Hi valentino321, did you resolve this?
 *  [garnser](https://wordpress.org/support/users/garnser/)
 * (@garnser)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-php-error/#post-2840668)
 * Hi,
 * I actually have the same issue although I worked around it, for some reason the
   P3_PROFILES_PATH isn’t called correctly, in my case I hardcoded it, I’ve no clue
   as to why this would be needed though
 *  Plugin Contributor [Kurt Payne](https://wordpress.org/support/users/kurtpayne/)
 * (@kurtpayne)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-php-error/#post-2840669)
 * Hi garnser,
 * P3_PROFILES_PATH is set from information returned by wp_upload_dir(). In 1.3.0
   and later, this is set in the ‘admin_init’ hook. Previously it was set when the
   plugin was loaded (before the ‘plugins_loaded’ hook).
 * Are you still changing this manually in v1.3.1?
 * Do you have a custom upload path set in Settings -> Media -> Store uploads in
   this folder?
 *  [garnser](https://wordpress.org/support/users/garnser/)
 * (@garnser)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-php-error/#post-2840677)
 * Hi Kurt,
 * Yes we’re using 1.3.1 although as asked we are using a custom upload path, the
   profiles directory has been created and the permissions is all alright.
 *  Plugin Contributor [Kurt Payne](https://wordpress.org/support/users/kurtpayne/)
 * (@kurtpayne)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-php-error/#post-2840678)
 * Hi garnser,
 * Is `wp_upload_dir()` returning your custom upload path?
 *  Plugin Contributor [Kurt Payne](https://wordpress.org/support/users/kurtpayne/)
 * (@kurtpayne)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-php-error/#post-2840687)
 * Hi garnser, were you able to look into this further?
 *  Thread Starter [valentino321](https://wordpress.org/support/users/valentino321/)
 * (@valentino321)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-php-error/#post-2840695)
 * There are no values under settings–>media but just settings about size images.
 * Thank you to help me
 *  Plugin Contributor [Kurt Payne](https://wordpress.org/support/users/kurtpayne/)
 * (@kurtpayne)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-php-error/#post-2840696)
 * valentino321
 * Are you running multisite?
 * In your original message, you gave this path: `/var/www/"mysite"/wp-content/uploads/
   profiles/index.php`. Did you add the double quotes around mysite?
 *  Thread Starter [valentino321](https://wordpress.org/support/users/valentino321/)
 * (@valentino321)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-php-error/#post-2840711)
 * No i have only 1 site.
 * When i upload media, they go to upload folder (FTP), and the permission is 755.
 *  Thread Starter [valentino321](https://wordpress.org/support/users/valentino321/)
 * (@valentino321)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-php-error/#post-2840712)
 * And these errors appear when i try to launch a scan on my site.
 * regards
 *  Plugin Contributor [Kurt Payne](https://wordpress.org/support/users/kurtpayne/)
 * (@kurtpayne)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-php-error/#post-2840713)
 * Do you have any plugins that enhance/affect media uploads or media management
   on your site? I’m curious if anything is hooking `upload_dir`.

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

The topic ‘[Plugin: P3 (Plugin Performance Profiler)] PHP ERROR’ 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/)

## Tags

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 12 replies
 * 3 participants
 * Last reply from: [Kurt Payne](https://wordpress.org/support/users/kurtpayne/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-php-error/#post-2840713)
 * Status: not resolved