Title: [Plugin: P3 (Plugin Performance Profiler)] Error reading scan
Last modified: August 20, 2016

---

# [Plugin: P3 (Plugin Performance Profiler)] Error reading scan

 *  [nemoprofeta](https://wordpress.org/support/users/nemoprofeta/)
 * (@nemoprofeta)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-error-reading-scan/)
 * I have two sites, on one P3 works correctly (and I find it very useful).
    On 
   the other one, the scan completes successfully, but when I click “View results”
   I get the error “Error reading scan”. On the site I use the Atahualpa theme and
   several plugins. I tried to use the .user.ini file, but to no avail.
 * What can I do?
 * [http://wordpress.org/extend/plugins/p3-profiler/](http://wordpress.org/extend/plugins/p3-profiler/)

Viewing 15 replies - 1 through 15 (of 15 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-error-reading-scan/#post-2814774)
 * Under settings -> media, what is the value of “Store uploads in this folder” ?
 * And what version of P3 are you using?
 *  Thread Starter [nemoprofeta](https://wordpress.org/support/users/nemoprofeta/)
 * (@nemoprofeta)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-error-reading-scan/#post-2814798)
 * Settings -> Media is empy. I’m using the default wp-content/uploads folder.
    
   I’m using version 1.3.1
 *  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-error-reading-scan/#post-2814810)
 * Please go into your FTP client and find your wp-content/uploads/profiles folder.
   Change the permissions on that folder so that it’s writable by the web server.
   Here’s a quick step-by-step:
 * 1.) Set the folder to 755, try P3. If it works, stop here. If it doesn’t work,
   try the next step.
    2.) Set the folder to 775, try P3. If it works, stop here.
   If it doesn’t work, try the next step. 3.) Set the folder to 777, try P3. If 
   it works, stop here. If it doesn’t work, then folder permissions aren’t the problem(
   and reset the permission to whatever they were originally).
 *  Thread Starter [nemoprofeta](https://wordpress.org/support/users/nemoprofeta/)
 * (@nemoprofeta)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-error-reading-scan/#post-2814815)
 * It was no the permissions. What else can I do?
 *  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-error-reading-scan/#post-2814816)
 * Have you tried using debug mode?
 * “Error reading scan” means that either the scan file is not present (permissions
   error or media settings error), there are no lines in the file (use debug mode
   to see why), or the scan cannot be parsed (each line is a json object).
 * You can view the scans in wp-content/uploads/profiles/[scan name].json to see
   if the scan files are being created. If you open the file, you can see if there’s
   content in it. And if you select any line in the file, you can paste it into 
   [json viewer](http://jsonviewer.stack.hu/) to see if it is valid json.
 *  Thread Starter [nemoprofeta](https://wordpress.org/support/users/nemoprofeta/)
 * (@nemoprofeta)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-error-reading-scan/#post-2814836)
 * The scan file is not created.
    I tried the debug mod, setting the folder to 777
   again. No file is created and the debug log is empty.
 * What can I do for the Media settings?
 *  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-error-reading-scan/#post-2814838)
 * Hi, can you e-mail me the debug CSV dump to kpayne -at- godaddy -dot- com? I’d
   like to see why if it is even picking up your visits.
 *  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-error-reading-scan/#post-2814894)
 * Hi nemoprofeta, thanks for contacting me. I haven’t heard back from you, though.
   If you have more information or want to look into this again, please contact 
   me here or just reply to our e-mail thread. Thanks!
 *  [holospirit](https://wordpress.org/support/users/holospirit/)
 * (@holospirit)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-error-reading-scan/#post-2814920)
 * having the same problem. even changed the default media folder.
    log is empty–
   so i can’t mail anything :/
 * `Warning: fopen(xxx/wp-content/uploads/profiles/scan_2012-09-12_437bad28.json)[
   function.fopen]: failed to open stream: No such file or directory in xxx/wp-content/
   plugins/p3-profiler/classes/class.p3-profiler-reader.php on line 153`
 * i think it is a path or plugin-failure, because it worked once. but the site 
   is live (now) and i can’t disable everything to check.
 * so finally no files are created in no folder :/
 *  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-error-reading-scan/#post-2814921)
 * Hi holospirit,
 * Do you have a wp-content/uploads/profiles folder? Is it writable by the webserver?
 *  [holospirit](https://wordpress.org/support/users/holospirit/)
 * (@holospirit)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-error-reading-scan/#post-2814922)
 * yes, checked all for 755 and even made a new im my media (new) folder.
    your .
   htaccess and index.php even – so this creation seem to work.
 * is the a “hard-code” way to find out the problem?
 *  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-error-reading-scan/#post-2814923)
 * The path is determined here:
    [http://plugins.trac.wordpress.org/browser/p3-profiler/tags/1.3.1/classes/class.p3-profiler-plugin-admin.php#L98](http://plugins.trac.wordpress.org/browser/p3-profiler/tags/1.3.1/classes/class.p3-profiler-plugin-admin.php#L98)
 * Are there any *.json files in the folder? If not, that means P3 can’t (or isn’t)
   creating the profiles during scanning.
 * To determine if P3 should be creating these files, but isn’t, use “Advanced settings-
   > Debug mode.”
 * To determine if P3 can’t create these files, try chmodding the profiles folder
   to 777 and running another scan.
 *  [holospirit](https://wordpress.org/support/users/holospirit/)
 * (@holospirit)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-error-reading-scan/#post-2814924)
 * > Are there any *.json files in the folder? If not, that means P3 can’t (or isn’t)
   > creating the profiles during scanning.
 * no json-files are created. folder is 777 and “working”
 * > To determine if P3 should be creating these files, but isn’t, use “Advanced
   > settings -> Debug mode.”
 * debug is empty/not created
    (“Profiling Enabled”,”Recording IP”,”Scan Name”,”
   Recording”,”Disable Optimizers”,”URL”,”Visitor IP”,”Time”,”PID”) – thats all
 * > To determine if P3 can’t create these files, try chmodding the profiles folder
   > to 777 and running another scan.
 * done, no success.
 * i played a little – creating files works. i think the problem is somewhere about
   ajax_start_scan(). i added a random file creation here and it isn’t executed.
   the auto walk through pages with the iframe seem to work.
 * :/
 *  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-error-reading-scan/#post-2814925)
 * Are you using the “Attempt to circumvent browser cache” and “Attempt to disable
   opcode optimizers” too?
 * If you have Varnish (etc.) on your site and aren’t using the latter option, then
   P3 may not be hitting PHP at all. It’s a stretch, but I would be remiss if I 
   didn’t ask.
 * >  i think the problem is somewhere about ajax_start_scan().
 * Have you checked for any errors in your javascript console?
 * Have you turned on WP_DEBUG and WP_DEBUG_LOG?
 *  [daxiawp](https://wordpress.org/support/users/daxiawp/)
 * (@daxiawp)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-error-reading-scan/#post-2814933)
 * Hello, I have encountered the same problem.Linux + apache environment under normal
   use, but the above error message appears in the windows host.

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

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

 * 15 replies
 * 4 participants
 * Last reply from: [daxiawp](https://wordpress.org/support/users/daxiawp/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-error-reading-scan/#post-2814933)
 * Status: not resolved