Monday, November 19, 2007

Error in AJAX script - could not complete the operation due to error c00ce56e

CM reported today that over the weelend the system (CM dashboard) just stopped working, stopped returning results.

The Error was displayed like a JavaScript Error and the Eror Message was:
"could not complete the operation due to error c00ce56e"

Did a bit of hunting, and that's when I stumbled upon a few sites:
http://www.webmasterworld.com/javascript/3341129.htm
and
http://support.microsoft.com/kb/304625/en-us

which spoke about changing of character sets.
I added the following header on each of the .php files like so:

header("Content-type: text/html; charset=ISO-8859-1");

and the problem disappeared. Hooray for now.

3 comments:

Anonymous said...

PHP has a configuration directive where you can specify default headers.

In your php.ini file, change:

default_mimetype = "text/html"

to

default_mimetype = "text/html; Charset=utf-8"

With this, you can avoid altering every page that sends an AJAX response.

bobwal said...

Cheers! This resolved an IE prob for me.

Vignesh said...

Its not work for me... i followed your steps but i'm not got result