I’ve come across some weird errors in a WordPress blog that’s running on Nginx with php5-fpm. The error log is filled with lines similar to the one below, generating roughly 1 per second. I figure at that rate it’s putting an increased load on the server.
“2012/09/03 05:11:21 [error] 32020#0: *14967 FastCGI sent in stderr: “PHP Warning: addslashes() expects parameter 1 to be string, array given in /path/to/wordpress/wp-content/plugins/jetpack/modules/stats.php on line 223″ while reading response header from upstream”
Obviously this ties into the Jetpack plugin’s stats module, but I can’t figure out WHY it’s throwing an error and since it’s third-party code, I don’t really want to go hacking it in case it gets overwritten the next time Automattic release a version of Jetpack!
I had another issue with Jetpack’s shortcodes module, which I had to disable, but it would be a major pain to disable the Stats module. The big remaining question is – how do I fix this? Is there something that can be configured in PHP-FPM to resolve the error or does the code need to be amended?
- The topic ‘WordPress Nginx Jetpack: PHP Warnings in error log’ is closed to new replies.