Solvedjetpack Jetpack JSON API access crashes PHP-FPM running PHP 7.1
✔️Accepted Answer
The Jetpack people noticed me about the freshly baked 5.3 update today:
https://jetpack.com/2017/09/05/jetpack-5-3-php-7-1-compatibility/
Now works well with php 7.1. Hooray!
Other Answers:
After some testing I'm hitting the same issue:
Ubuntu 16.04
PHP v7.1.4-1+deb.sury.org~xenial+1
WordPress 4.7.4
Jetpack 4.8.2
The following in wp-config lets me perform a sync with Jetpack for the time being but I'm hoping this doesn't have to be permanent:
if ( defined( 'XMLRPC_REQUEST' ) && true === XMLRPC_REQUEST ) { ini_set( 'opcache.enable', 0 ); }
Thank you all for the input! Just for the record, here's a bug report that I have submitted to PHP about this exact problem. It's not XMLRPC that causes the segfault, but apparently it's some code that gets called as part of the JSON API request that gets sent via XMLRPC.
If you happen to know why that code can cause a segfault with opcache, or maybe how I can narrow down the exact cause, I'll be very grateful:
https://bugs.php.net/bug.php?id=74543
Steps to reproduce the issue
What I expected
Blog posts are displayed.
What happened instead
App didn't display any content, only outlines of soon to be displayed blog posts.
Observation
PHP task crashes on every API access.
This behaviour also happens for other related API access.
Environment
Error logs
These are the nginx error logs intertwined with
php7.1-fpm.log
lines for better readability. Hostname was replaced by example.com.