RSS Feed/News XF CLI fails if you have an IP-based debug option configured in config.php

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
26,299
Points
823

Reputation:

As per the documentation, I have a line in my config.php:
Code:

if ($_SERVER['REMOTE_ADDR'] == '<myhomeip>') {$config['debug'] = true;}

When I run something like 'php cmd.php help', PHP barfs:
Code:

Code:
# php cmd.php list
PHP Fatal error:  Uncaught Error: Attempted to recursively load configuration file in /pathtoboards/src/XF/App.php:261
Stack trace:
#0 /pathtoboards/src/XF/Container.php(33): XF\App->XF\{closure}(Object(XF\Container))
#1 /pathtoboards/src/XF/App.php(760)...

Read more

Continue reading...
 
Status
Not open for further replies.
Top