progmax / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
GNU General Public License v3.0
0 stars 0 forks source link

Firefox error when loading css.php: invalid mime type #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use the class in a form and open it with firefox
2. Open the error console in firefox
3. You see following error:
Error: The stylesheet https://server/folder/css.php?id=form1 was not loaded
because its MIME type, "text/html", is not "text/css".

What is the expected output? What do you see instead?
It should load without error. I do have to say I do not always have the
problem but it's an easy fix.

What version of the product are you using? On what operating system?
latest

Please provide any additional information below.
just add the following line to the start of css.php
header("Content-type: text/css");

Original issue reported on code.google.com by uwictpar...@gmail.com on 3 Jun 2010 at 3:11

GoogleCodeExporter commented 9 years ago
The latest version (which you are currently using) already contains this mime 
type (text/css).  The css.php file is 
located in php-form-builder-class/includes/css.php.

Original comment by ajporterfield@gmail.com on 3 Jun 2010 at 6:43

GoogleCodeExporter commented 9 years ago

Original comment by ajporterfield@gmail.com on 3 Jun 2010 at 6:43