Title: Help Needed to diagnose Error Code
Last modified: May 1, 2023

---

# Help Needed to diagnose Error Code

 *  Resolved [dnorenberg](https://wordpress.org/support/users/dnorenberg/)
 * (@dnorenberg)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/help-needed-to-diagnose-error-code/)
 * I need help diagnosing the following error code, our host claims it is caused
   by Jetpack;
 * 2023/05/01 01:17:56 [error] 31#31: *337629 FastCGI sent in stderr: “PHP message:
   PHP Fatal error: Uncaught Error: Undefined constant “JETPACK__PLUGIN_DIR” in /
   www/wp-content/plugins/jetpack/json-endpoints/class.wpcom-json-api-list-media-
   v1-2-endpoint.php:3

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

 *  [JS (a11n)](https://wordpress.org/support/users/julesomattic/)
 * (@julesomattic)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/help-needed-to-diagnose-error-code/#post-16710880)
 * Could you please post your site URL here so that we can have a look?
 * If you want it to remain private, you can also contact us [via this contact form](https://jetpack.com/contact-support/?rel=support&hpi=1).
   If you choose to reach out directly, please include a link to this thread.
 * Thanks!
 *  Thread Starter [dnorenberg](https://wordpress.org/support/users/dnorenberg/)
 * (@dnorenberg)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/help-needed-to-diagnose-error-code/#post-16711014)
 * Our site URL is [https://dodgecountyfairgrounds.com/](https://dodgecountyfairgrounds.com/)
 * We disabled the Jetpack Plugin temporarily until a solution is found
 *  [Emily A. (a11n)](https://wordpress.org/support/users/happyaxident/)
 * (@happyaxident)
 * [3 years ago](https://wordpress.org/support/topic/help-needed-to-diagnose-error-code/#post-16726431)
 * Thanks for that. It can be hard to diagnose these kinds of problems if Jetpack
   isn’t active on your site. But if it was causing a fatal error I can understand
   why that isn’t possible.
 * Could you please let us know which version of Jetpack you were using before you
   disabled it?
 *  Thread Starter [dnorenberg](https://wordpress.org/support/users/dnorenberg/)
 * (@dnorenberg)
 * [3 years ago](https://wordpress.org/support/topic/help-needed-to-diagnose-error-code/#post-16726466)
 * Jetpack version 12.0, with WP 6.2, and PHP version 8.1.18
 *  Plugin Support [lastsplash (a11n)](https://wordpress.org/support/users/lastsplash/)
 * (@lastsplash)
 * [3 years ago](https://wordpress.org/support/topic/help-needed-to-diagnose-error-code/#post-16739517)
 * Hi [@dnorenberg](https://wordpress.org/support/users/dnorenberg/) –
 * Could you try reinstalling Jetpack again? There is a newer version (12.1) out
   now, and I’m curious to see if that fixes the issue.
 * If you still get an error, In order to test this, the next step is to look for
   a theme or plugin conflict. The Health Check plugin’s “Troubleshooting Mode” 
   is a good way to do this. It allows you to make changes to your site without 
   them reflecting on the frontend. You can download that plugin here:
 * [https://wordpress.org/plugins/health-check/](https://wordpress.org/plugins/health-check/)
 * Once you’ve installed and activated the plugin, you can go to Tools → Site Health:
    - Select the Troubleshooting tab and then click Enable Troubleshooting to automatically
      disable all plugins and add a new Troubleshooting Menu item in the toolbar
      at the top of the wp-admin dashboard.
    - From here, you can enable and disable plugins and change the theme for your
      site, but without affecting normal visitors to your site.
 * I recommend starting by testing with a different theme. Please try with a default
   theme such as “Twenty Twenty” and see if you experience the same issue. If you
   do not, the issue is with your theme. You will need to reach out to your theme
   developers for a fix.
 * If it isn’t a theme issue, you will need to test for a plugin conflict. Within
   Health Check, please disable all plugins other than Jetpack and test again. If
   it works as expected, you know that the issue is with one of your plugins. Please
   enable your plugins one at a time, testing after each one, until you encounter
   the issue again. Once you do, you will know which plugin is causing the issue.
   At that point, you can either leave it disabled or reach out to the developers
   for a fix.
 * In your case, I am assuming that you will want to look at the logs as you are
   testing.
 *  Thread Starter [dnorenberg](https://wordpress.org/support/users/dnorenberg/)
 * (@dnorenberg)
 * [3 years ago](https://wordpress.org/support/topic/help-needed-to-diagnose-error-code/#post-16739552)
 * I really appreciate your response – forwarding this to our tech support to implement
   and will report back as soon as I have an update.
 * Thank you!
 *  Thread Starter [dnorenberg](https://wordpress.org/support/users/dnorenberg/)
 * (@dnorenberg)
 * [3 years ago](https://wordpress.org/support/topic/help-needed-to-diagnose-error-code/#post-16748250)
 * Two days with 12.1 on board and no issues = resolved! Thank you!
 *  Plugin Support [Kellie (a11n)](https://wordpress.org/support/users/lavenderhaze/)
 * (@lavenderhaze)
 * [3 years ago](https://wordpress.org/support/topic/help-needed-to-diagnose-error-code/#post-16762072)
 * Great! Thanks so much for letting us know.

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

The topic ‘Help Needed to diagnose Error Code’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

 * 8 replies
 * 5 participants
 * Last reply from: [Kellie (a11n)](https://wordpress.org/support/users/lavenderhaze/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/help-needed-to-diagnose-error-code/#post-16762072)
 * Status: resolved