• 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. Profile: 2025-09-20_401269 – https://mysite.com
    20-Sep-25 20:48:01 INFO Collecting data to analyze
    20-Sep-25 20:48:05 INFO Preparing the report
    20-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

    (@bruandet)

    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)

You must be logged in to reply to this topic.