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

Affected version
beta 4


Well-known member
#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.


XenForo developer
Staff member
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).