Hardy Heron swoops away with my firebug - Drupal to the rescue!

Edit: Solved! Thanks to the comments of several people, I was able to find the magic sequence of steps necessary to fix my specific situation:

  1. Within firebug, go to Tools/Add-ons, and uninstall firebug. (without this it looks like you are updating, but you are still stuck with the old previously installed plug-in).
  2. Install firebug from apt-get, aptitud, synaptic or what have you, since it is true it is right there in the universe repository.
  3. Forget Firefox 2, Firefox 3 rocks!

[Skip directly to the solution on how to magically regain your old Firefox 2 with all its plugin info intact after upgrading to Ubuntu 8.04 "Hoary Heron".]

Well, this has nothing to do with Drupal, yet everything to do with Drupal. And it's not Drupal that comes to the rescue (it's just soooo cool to say that), but the sanity, calm, and above all intelligence that is contagious in the community that saves the day. That is, one gets so accustomed to having to get to the bottom of things to get them to work just right, that a little thing like losing all your plugins from your workhorse simply puts a quizzical smile on your face, instead of the hair tearing hysterics that would be the case for (ugh) Ruby on Rails developers, poor souls.

Anyway, until most of our sites are upgraded to Drupal 6.x, we still spend most of our time in the Drupal 5.x environment (and probably will for some time to come). Which means we cannot avail ourselves of Moshe Weitzman's amazing "Firebug for Drupal theming" Theme developer, even though the rest of the great devel project (same link) is probably even more a part of the Drupal web app developer's stock in trade.

Which means that we spend quite a few hours per week (sometimes per day) in Firebug.

So... I know a lot of us in the Drupal Community use Ubuntu desktop boxes for development. I swear by it.

So... When the exciting notice appeared "Upgrade available 8.04", I hit that button with (well deserved) confidence.

Since most of the rest of the Ubuntu using world was doing the same, it took about a day for the files to download, but it was a flawless upgrade.

Until I finished the upgrade early this Saturday morning and rubbing my hands together sat down to work on a custom module to compare nodes side by side, fired up firefox and... whaaaa?

I was informed that none of my add-ons (Firebug, Web Developer, Selenium, Wizz, even del.icio.us) would work in Firefox 3 beta, which the upgrader had installed without consulting me (it did ask about keeping php.ini and the existing apache 2 server configuration, for which I am eternally grateful), but that it would check and see if upgrades were available. Cool. But no upgrades available, I am afraid. And I was presented with a very vanilla looking browser screen indeed.

Thousands of thoughts raced through my mind. I did find a link to Firebug 1.1 that would work on Firefox 3: http://fireclipse.xucia.com/ But to download it you had to go to www.getfirebug.com, ... which was down!

So, I thought, I will look at synaptic, to see if I can install Firefox 2 alongside the new 3 beta version, or replace it, or maybe put in one of the other Mozilla browsers that supports Firebug... So I fired up Synaptic, and lo and behold, I saw that Firefox 2 was installed alongside Firefox 3. Oh happy day!

So I went into the Applications menu (Applications / Internet / Firefox 2 Web Browser). And fired Firefox 2 up. Oh happy day, callou, callay!

But wait... the browser came up OK, but without any of the plugins... Oh why, ohy why hadn't the Ubuntu engineers left the plugins to roost in Firefox 2, and left the Firefox 3 all blankity blank...???

Well, you fool, you, you doubting Thomas, it's because they both share the same configuration directory, and the problem, it turns out, has nothing to do with Ubuntu... but rather because of the fact that the spanking new Firefox 3 doesn't use the old extensions.rdf file anymore for keeping track of plugins and so forth, but rather sqlite. Anyway, how do I know this? Because I resigned myself to either figuring out some way to transfer the plugin info from Firefox 3, to whom it was useless, or, to simply installing the plugins again. It was when I was installing Firebug the old and trusty onto the blank looking Firefox 2 browser, I get this error:

"installLocation has no properties" error in nsExtensionManager.js during install/update of extensions

This turned the quizzical smile into something of a jaw dropped gape. Never mind, a quick Microhoo on this error, and I found saviours: mine and yours: this link to the mozilla bug queue: Bug #65609 in Mozilla Firefox, at https://bugs.launchpad.net/firefox/+bug/65609 .

Very interesting discussion, but the short of it is:

Solution

Go right into the promiscuous ~/.mozilla/firefox/{weird profile name}/ directory, and rename the file extensions.rdf to extensions.rdf.old, or whatever. As the above bug report page explains, if you then close all mozilla browsers running, then bring up Firefox 2, ... it will create a new, healthy extensions.rdf and... lo and behold, oh frabjous day! Firefox 2 comes up with all your plugins flashing and smiling. Good old Alt-Q to waste some nice time on my RSS feeds, good old Firebug, esteemed Selenium, the old ugly blue de.licio.us buttons, both of them, there intact.

What a relief.

Until I accidentally ran Firefox 3 beta again, instead of Firefox 2, and everything went back to the way it was before.


"Beware the Jabberwock, my son!
The jaws that bite, the claws that catch!
Beware the Jubjub bird, and shun
The frumious Bandersnatch!"

Well, as you probably guessed it, repeating the renaming exercise of extensions.rdf worked a charm, and all was well.

I punished the Firefox 3 beta browser by putting a Debian icon on it, to avoid future mishaps.

Now, let's get to work...

 


In universe

I am on kubuntu 8.04.

Firebug is in the universe repository. It is the SVN version.

# aptitude show firebug
Package: firebug
New: yes
State: not installed
Version: 1.2~b21+svn573-0ubuntu1
Priority: optional
Section: universe/web
Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>
Uncompressed Size: 639k
Depends: firefox | firefox-3.0 | firefox-2
Description: Powerful web devlopment extension
 Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and
 monitor CSS, HTML, and JavaScript live in any web page.
 
 Visit the Firebug website for documentation, screen shots, and discussion forums:
 
 http://www.getfirebug.com


Right you are

Yes it is. I had installed it (when I did the above query, it said "State: installed").

The problem was, it gets "installed" but does not overwrite the old one inside Firefox itself.

So as soon as I went to Tools/Add-ons and uninstalled firebug manually as an add-on, and then reinstalled firebug from the universe repository, it worked!

So even though I had seen that, your comment actually prodded me on to solve the situation!

Thanks a million!


FF3 + Firebug on Hardy

This frustrated me for a long time. I need Firebug for my work. The way I resolved it was to remove FF3 using apt-get and then reinstall it using the bz2 from the firefox website. Then FB1.1 installed fine.


In my case

In my case, it was sufficient to uninstall just the firebug plugin completely, from within Firefox, then reinstall it with apt-get from the universe repository.

Thanks very much for your comment.


Thank you, thank you, thank

Thank you, thank you, thank you! All i wanted to do was get rid of 'awesomebar', and FF2 was the only way and i ended up with this problem - this is the only page i have seen in over an hour! I was about to start hunting names and addresses of Firefox developers to scream at!


How "I" resolved the issue on Kubuntu

I ran into the same problem with FF3 b5 and Firebug on Kubuntu Hardy Heron. The solution was to install Firebug from the k/ubuntu repositories using apt-get. I was surprised that Firebug was in the repo, but, hey, it was. And it works.

I posted about it here: http://www.dottedidesign.com/firebug-firefox-3-kubuntu


Here's what I am running into

Look at this (maybe I should uninstall first, or reinstall?):

victorkane@mentor:~$ sudo apt-get install firebug
[sudo] password for victorkane: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
firebug is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.


Find them in the ubuntu extensions

I'm not on my ubuntu box so I'm doing this from memory. If you go to the addons there is a link that says look in Ubuntu extensions or something like that. If you click on that it'll take you to a synaptic window and you can find the firebug and web developer extension there.


Almost but not quite (at least for me)

That really looked like it was going to work. Maybe I did something wrong. But after I went to Tools/Add-ons, and after clicking on Ubuntu extensions, no Firebug option appears.

Maybe it is broken, as another commenter says.

In any case, it will surely be fixed soon. Thanks for your comment.


Thanks

"I punished the Firefox 3 beta browser by putting a Debian icon on it, to avoid future mishaps."

That was worth it to read to the end. :-)

I've been looking at FF3 for awhile, I wish they would get the plugins kicking with it, but I suppose I wish that D6 would have the modules up and running also. :-) I'm just an impatient geek. People need time to accomplish greatness, right?


Whatever happened to "we'll release it when it's ready"?

Yeah, absolutely right.


Or... you could just turn

Or... you could just turn off plugin version checking in FF3. 95% of my plugins worked fine, and this kept me working without fuss, until the plugin authors update. http://kb.mozillazine.org/Updating_extensions


Well, actually...

Sounds like it could be a good workaround.

However, my main point in this post is to help those just going through a normal upgrade experience.

Does not really work and is unsafe, really.

Also, instructions do not accord with 3.0 interface.

So I do not think this is very recommendable, although, if it flies for you...


Actually the problem is (or

Actually the problem is (or wat) really firebug - not Ubuntu. The firebug beta available from getfirebug was broken in the Firefox 3 B5 that shipped with Ubuntu. However, the problem has been fixed in the firebug SVN tree. The easiest way to fix the problem is actually to install the firebug package in the ubuntu repository (e.g. with Synaptic). This package is the newer SVN version and works perfectly with the new Firefox :)


Synaptic only shows 3 B5 package

(But thanks for your comments)

So it is not possible to install the newer SVN version via Synaptic (I have universe, multiverse, main, restricted and source repositories enabled).

But I am sure the problem will be solved with a relatively quick update - which will be made all the easier due to the decision of including Firefox 3 in the 8.04 upgrade, a much better situation than if we were to be stuck with 2.x .


I had misunderstood Grugnog

Grugnog was correctly speaking about the correct firebug version being in Synaptic (universe repository), not about the firefox entry.

Grugnog is right, that this version will work. But, I found that I had to manually delete the old firebug from within Firefox itself (Tools/Add-ons), and then install firebug with Synaptic (apt-get, aptitude, etc), and then I got the shiny new little bug in the lower right hand corner!