Ralpharama Archive. The archive is almost 20 years old, this website is no longer maintained.

Home | New Writing | Old Writing | Cooking | Technical | Wine Making | Cocktails
   
 
Article

Firefox won't open PHP pages suddenly

Hits 33501 | Created 2008-02-06 | Modified 2008-06-05

Trying to access facebook I was suddenly told I was trying to download a PHP file, and what should I do with it. I said, open it with Firefox and then a hundred new, blank tabs opened... Solution follows.



There's quite a lot of stuff on the web about this issue, there seems to be some complaint about firefox's mime-type handling, corrupt mimeTypes.rdf files, etc.

Whatever the cause, here's what fixed it for me.

Follow the steps on this page: http://kb.mozillazine.org

Namely:

1. Type about:config into the address bar.
2. Find the preference browser.download.pluginOverrideTypes and, if it is present, right-click on it and select reset.
3. Find the preference plugin.disable_full_page_plugin_for_types and, if it is present, right-click on it and select reset.
4. Exit the browser, then open the profile folder (Windows 2000/XP/Vista users, read this for help finding it).
5. Delete (or rename) the file mimeTypes.rdf. Caution: There is also a mimeTypes.rdf file in the program folder. Do not delete it by mistake.

There are links on the page itself to help you do this, find the correct folders etc. Note that on the about:config page, search doesn't work, so you should scroll to find the entries.

Re-start firefox.

Now go into Tools -> Options -> File Types -> Manage

You should have a list of file types and how firefox will deal with them. Scroll through and find PHP. If there is an entry, delete it.

Re-start firefox and try the web page again.

Good luck!

Also see /support.mozilla.com

For 'How to open a PHP file with KompoZer under Windows' see http://www.afinerweb.com/blog/?p=1000016








Comment Firefox won't open PHP pages suddenly comment by Bodhi Hits | Last Modified 2008-06-04
Thanks Ralph, for posting this article. I've been struggling to get KompoZer to open PHP files without mangling them and this hint set me in the right direction.
~ Bodhi ~
Comment Firefox won't open PHP pages suddenly comment by Bodhi Hits | Last Modified 2008-06-05
For those interested, I've posted the KompoZer solution here: afinerweb.com/blog/?p=1000016
~ Bodhi ~
Comment Firefox won't open PHP pages suddenly comment by damn it Hits | Last Modified 2009-01-23
newer firefox removed the delete option most stupidest thing they could have done.. Fucking gnome desktop user bastards firefox not for tards! damn it.
Comment Firefox won't open PHP pages suddenly comment by Jack Yan Hits | Last Modified 2009-07-27
Ralph, I get this error all the time but I do not have the two fields you mention in my about:config. The weird thing is if I wait a few hours, I can access the page, and I know the page itself has not been changed. Thanks for posting this, though, as itís way more helpful than the pages I have so far seen on the ínet about this very common issue.
Comment Firefox won't open PHP pages suddenly comment by Jack Yan Hits | Last Modified 2009-12-20
Hi there: your clues really helped. As Firefox has removed those fields in about:config and no longer allows file type deletions, it might seem that the above advice doesnít apply. Not so: the mimeTypes.rdf advice still does. Hereís what I did, taking your lead, and using Firefox 3.0.16:

http://jackyan.com/blog/2009/12/when-firefox-cannot-open-php-pages.html

Make a Comment

Name
Comment


Antispam Code (always a number)

Enter Code Above
Submit

Note: All HTML will be removed except for bold and italics. Links will not display. Line breaks are added automatically. Use <pre>...</pre> for code.

Tags

This item has the following tags:
php firefox tech bug mime error download

Useful? Donate for hosting costs

All content copyright (c) Ralpharama