Title: Cannot decode JSON-encode file
Last modified: September 20, 2025

---

# Cannot decode JSON-encode file

 *  [kflavin21](https://wordpress.org/support/users/kflavin21/)
 * (@kflavin21)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/cannot-decode-json-encode-file/)
 * I’m getting the following error when I run the profiler:
 * Cannot decode JSON-encode file (CODE_PROFILER_TMP_IOSTATS_LOG)
 * The logs don’t show much additional information:
 * 20-Sep-25 20:47:55 INFO Initializing Code Profiler v1.7.7 on [https://mysite.com](https://mysite.com).
   Profile: 2025-09-20_401269 – [https://mysite.com](https://mysite.com)
   20-Sep-
   25 20:48:01 INFO Collecting data to analyze20-Sep-25 20:48:05 INFO Preparing 
   the report20-Sep-25 20:48:06 ERROR Cannot decode JSON-encode file (CODE_PROFILER_TMP_IOSTATS_LOG)
 * Any suggestions of what to check?
 * I’m running on PHP 8.4 and my site is behind Cloudfront.

Viewing 1 replies (of 1 total)

 *  Plugin Author [bruandet](https://wordpress.org/support/users/bruandet/)
 * (@bruandet)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/cannot-decode-json-encode-file/#post-18651185)
 * Can you enable debugging in WordPress and see if there’s anything written to 
   the PHP error log?
    1. Edit your wp-config.php file.
    2. Search for:
       `define('WP_DEBUG', false);`
    3. Replace with:
       `define('WP_DEBUG', true);`
    4. Add this line below:
       `define( 'WP_DEBUG_LOG', true );`
 * Run the profiler. The log (if any) will be saved to “/wp-content/debug.log”.

Viewing 1 replies (of 1 total)

The topic ‘Cannot decode JSON-encode file’ is closed to new replies.

 * ![](https://ps.w.org/code-profiler/assets/icon-256x256.png?rev=3143506)
 * [Code Profiler - WordPress Performance Profiling and Debugging Made Easy](https://wordpress.org/plugins/code-profiler/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-profiler/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-profiler/)
 * [Active Topics](https://wordpress.org/support/plugin/code-profiler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-profiler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-profiler/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [bruandet](https://wordpress.org/support/users/bruandet/)
 * Last activity: [8 months, 2 weeks ago](https://wordpress.org/support/topic/cannot-decode-json-encode-file/#post-18651185)
 * Status: not a support question