[solved] Problem with Firefox 7/8/9

Topics: User Forum
Jan 4, 2012 at 2:26 PM

I*m using your phpexcel, and it would be great. But since Firefox 7 it still do not work with
with bigger data. Till approx 15-20 rows ist still works, above none.
There would be an error message:

Fehler: Beschädigte Inhalte
Die Seite, die Sie anzusehen versuchen, kann nicht angezeigt werden, da ein Fehler in der Datenübertragung festgestellt wurde.

(Error: Damaged Content)

Did you know this problem? Would there be a new release in short time? It still work with IE
Opera and old Firefox-Versions

Hoping you have an idea to solve this problem

Jan 5, 2012 at 11:44 AM

It's not possible for Firefox 7/8/9 to directly affect PHPExcel. One is a web browser, the other is simply a script running on a web server, so it shouldn't matter in any way whetehr you are using Firefox or Opera or Chrome or IE.

Try opening the generated file in a text editor, and see if there are any obvious error messages in the file itself

Jan 5, 2012 at 6:13 PM

The problem is solved now.

Firefox is using a security-feature and check the 'Content-Length in the Header and if its not match then you become the error-message "corrupted file"

We made now a workaround and did not send the Content-Length anymore.... It works!

//    header ('Content-Length: '.$fileSize);


(thanks to steini, who gives us the right way!)