Welcome Guest, Not a member yet? Register   Sign In
intermittent error "Your config file does not appear to be formatted correctly."
#3

[eluser]ManOfTheHour[/eluser]
@CI_Avatar:
Thanks for responding. This IS the message. See
codeigniter/Common.php, ~line 187:
Code:
require(APPPATH.'config/config'.EXT);

        if ( ! isset($config) OR ! is_array($config))
        {                    
            exit('Your config file does not appear to be formatted correctly.');
        }

CI does not find it amusing to have no $config array to play with and stubbornly exits......

I did another test and checked if the $config array was actually present BEFORE the "require" call. Funny enough it was....... question is how that can be?

For fun and giggles I did this:
Code:
if(!isset($config))                         // <=========== only load if $config is not there
require(APPPATH.'config/config'.EXT);

        if ( ! isset($config) OR ! is_array($config))
        {                    
            exit('Your config file does not appear to be formatted correctly.');
        }

Everything still works. Haven't had time to test yet. Will report when I have.

Edit:
No change after above. Problem still there.
Now trying
Code:
if(!isset($config))   unset($config);                      // <===========
require(APPPATH.'config/config'.EXT);

        if ( ! isset($config) OR ! is_array($config))
        {                    
            exit('Your config file does not appear to be formatted correctly.');
        }


Messages In This Thread
intermittent error "Your config file does not appear to be formatted correctly." - by El Forum - 08-31-2010, 10:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB