Not a bug CLI puts error in error log if REMOTE_ADDR is used in config.php

Marcus

Well-known member
Affected version
beta 4
#php cmd.php ... puts an " ErrorException: Undefined index: REMOTE_ADDR in src/config.php" on my live server.

Some admins restrict debug mode to a specific ip [range] for live testing some stuff.
 
That's from custom code you're adding though and it's a legitimate message. You should be checking for whether REMOTE_ADDR exists (or taking CLI-specific action).
 
Back
Top Bottom