PHP Notice: Undefined index: REMOTE_ADDR
-
I am calling wp-cron.php via crontab every five minutes. When using this plugin, my log is filling up with PHP notices like:
PHP Notice: Undefined index: REMOTE_ADDR in /var/www/html/wp-content/plugins/password-protected/password-protected.php on line 229
I think this might be an easy fix by checking that the REMOTE_ADDR server index is set before using it. It’s not set when a PHP script is called from the command line.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘PHP Notice: Undefined index: REMOTE_ADDR’ is closed to new replies.