• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

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

Affected version
beta 4

Marcus

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

Mike

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