Welcome Guest, Not a member yet? Register   Sign In
SoapClient issue on CLI cron
#4

(08-18-2015, 01:10 AM)arisdario Wrote: For this issue: PHP Notice:  Constant ENVIRONMENT already defined in /path/to/ci/index.php on line 57

I just deleted the line, and the error has gone !

Yeah, that's not a good idea. If it has already been defined, some other code must have defined it before you got to this point (which implies you're doing something strange). If you absolutely need that to be possible (and you know ENVIRONMENT will be set to a valid value), you should change it to:

PHP Code:
defined('ENVIRONMENT') OR define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development'); 
Reply


Messages In This Thread
SoapClient issue on CLI cron - by arisdario - 08-14-2015, 07:10 AM
RE: SoapClient issue on CLI cron - by arisdario - 08-18-2015, 01:09 AM
RE: SoapClient issue on CLI cron - by arisdario - 08-18-2015, 01:10 AM
RE: SoapClient issue on CLI cron - by mwhitney - 08-18-2015, 12:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB