Skip to content Skip to sidebar Skip to footer

Firefox Error 'no Element Found'

First off, this isn't exactly the ideal way of setting up a page, however there's a need to distribute a script as 1 file. I have a php script at the top of an otherwise xhtml doc

Solution 1:

Firefox is expecting to get something it can parse as XML back, and throwing an XML parsing error when it gets an empty response.

Before your PHP calls "exit()", use

header('Content-Type: text/plain');

and Firefox will not try to parse the response as XML, and there should be no error.

Solution 2:

You should have your php return a valid HTTP response, because Firefox will try to read it even if you don't do anything with it. So return at least a valid header

header("HTTP/1.0200");
exit();

Post a Comment for "Firefox Error 'no Element Found'"