• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
intermittent error "Your config file does not appear to be formatted correctly."

[eluser]Wayne Smallman[/eluser]
[quote author="InsiteFX" date="1286469736"]Check the application/config/user_agents.php file

Your version of chrome may not be in there.[/quote]Hi!

There's no mention of any browser versions in the file you mention, only browser names.

Also, I'm now having the same problem with Safari.

Clearing the cache seems to stop it at that moment, but then it comes back.

You could try this:
redirect('/controller/method/', 'refresh');

If it will not work try this:
$this->output->set_header("HTTP/1.0 200 OK");
$this->output->set_header("HTTP/1.1 200 OK");
$this->output->set_header('Last-Modified: '.gmdate('D, d M Y H:i:s', $last_update).' GMT');
$this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate");
$this->output->set_header("Cache-Control: post-check=0, pre-check=0");
$this->output->set_header("Pragma: no-cache");

See output library.


I just started seeing this problem today as well. Where it errors out it's saying that the $config array is empty (line 187 of the codeigniter/Common.php file) and the path to the $config file is correct (or else I would always see the error). Problem exists for both Firefox and Safari for me. I can hit refresh a number of times, before it errors. I'm on a mac and have both PHP 5.3 and 5.2 (via MAMP). The 5.2 version on MAMP doesn't seem to be a problem and it seems to maybe something with PHP 5.3 or perhaps the Apache instance. I restarted my Apache instance (on the Mac I went to system prefs, and toggled on the Web sharing) and so far I haven't seen that issue again... strange.

still seeing this intermittently.
Environment: Mac, Firefox , php 5.3

Is there anybody with deep deep knowledge about php etc. that could shed some light on this?

I have also just started to see this today using Firefox on a Mac. I've been working on this project for some time, never had the problem until today. It seems very random. I can't figure out what triggers it at all.

For the record, I just tried restarting Apache and it seems to have cleared the issue for now.

I havent been able to pinpoint it yet either but a server restart usually fixes the problem (for a while at least).

[eluser]Wayne Smallman[/eluser]
After not having this problem since the last time I posted here on the 10th October last year, it's started again!

This is so deeply annoying because I really can't do any meaningful work until whatever the hell is causing this dies down again.

From my experience on this issue, config.php or any files within /application/config has nothing to do with this error.

Instead this error could have been the result of accidental manipulation of $config variable in its scope. I was able to fix this error by reverting the file of /system/core/Common.php to its original version 2.0 state.

You might also need to check if you have created your own $config variable on runtime. =)

Best of luck!

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.