Welcome Guest, Not a member yet? Register   Sign In
Issue with routing when running from the CLI
#4

[eluser]bigmac[/eluser]
Correct - the _SERVER environment is simply missing and not replicated by PHP or CI.

The solution for me was to simply set the config var 'uri_protocol' to 'AUTO' - and the web access continues to function. The User Guide CLI example fails, reliably, if this isn't done this way..

Also found a spot in core/Input.php (line 351) where it attempts to determine the IP address the request is sourced from. Same problem.

Cheers


Messages In This Thread
Issue with routing when running from the CLI - by El Forum - 09-29-2011, 10:57 AM
Issue with routing when running from the CLI - by El Forum - 04-08-2013, 12:41 PM
Issue with routing when running from the CLI - by El Forum - 04-08-2013, 01:19 PM
Issue with routing when running from the CLI - by El Forum - 04-08-2013, 02:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB