jinjie / Nagios-WordPress-Update

Nagios plugin to check for WordPress update on a remote server without NRPE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP warning from wp-config.php

hbokh opened this issue · comments

commented

I see these errors appear in my nginx-errorlog after every check:

"PHP message: PHP Warning: Invalid argument supplied for foreach() in /var/www/www.example.com/wp-version.php on line 53" while reading response header from upstream [...]

It's line 53 but line 52 in the code, since I added one line with the allowed_ips.
PHP is version 5.5.9
Any idea?