So I finally found out what was causing the error.
My site uses a custom content directory, so upon further inspection of the error, you may see the issue:
PHP Fatal error: Class 'IXR_Client' not found in .../app/plugins/jetpack/class.jetpack-ixr-client.php on line 10" while reading response header from upstream, client: ..., server: ..., request: "GET /wp-content/plugins/jetpack/class.jetpack-ixr-client.php HTTP/1.1"
Normally, this wouldn’t not produce an error as it should just 404 due to the changed content directory. However, in my case, I had created a rewrite in nginx to reroute requests with /wp-content
to use the proper path.
So in this case, the request was trying to load that file directly – probably a bot looking for a vulnerability in an older version of Jetpack? – and the request was being routed to the file, but of course that will fail because the file does not protect against loading directly.
At the time of this writing, none of the Jetpack plugin files are guarded with the standard
if ( ! defined('ABSPATH') ) {
exit;
}
I don’t really see a reason not to do that, but maybe there’s a reason?
Anyways, just wanted to post my findings, and will mark this resolved now ??