MozillaZine

Unable to install themes or extensions

From MozillaZine Knowledge Base

This article was written for Firefox but also largely applies to SeaMonkey 2, and in some measure to Thunderbird and Sunbird.

You may not be able to install or update Firefox themes or extensions for a number of reasons, including:

Contents

Not compatible

Image:Incompatibleextension.png

Extensions and themes are designed to work with certain Firefox versions. Attempts to install incompatible extensions will result in an error alert saying, "<Extension Name> could not be installed because it is not compatible with Firefox <x.x.x.x>. (<Extension name> will only work with Firefox <x.x.x.x>)".

Advanced users can disable extension compatibility checking in Firefox 2 and above by adding the boolean preference extensions.checkCompatibility and setting it to false. Use with caution. [1]

Image:Ff_ext_forced_marking.png

Extensions that have been installed by turning off compatibility testing with extensions.checkCompatibility set to false are clearly marked in the Add-On listing with a white exclamation point on a red background overlaying the lower left corner of the icon associated with the add-on.

Incorrect user agent

Your browser user agent may be incorrect, causing the add-ons site to report that the extension is for an older version of Firefox or that you must upgrade Firefox to use the add-on. [2]. If you are using an add-on such as User Agent Switcher, restore the default user agent (or restart Firefox). Otherwise, open about:config and enter general.useragent in the filter box. If any of the general.useragent preferences are shown as user set (they will be in bold type), open the context (right-click) menu and select "Reset" to restore the default setting. Note that some extensions, including MegaUpload Toolbar and Microsoft .NET Framework Assistant, add an extra user agent string. [3] [4]

Software installation disabled

Websites are only allowed to prompt you to install an extension or theme if you have the functionality enabled and if you have allowed that specific site to do it.

Enabling software installs

Some users may have disabled the software installation option based on security issues which have since been resolved [5]. To re-enable:

Image:Firefoxxpinstalldisabled.png
Firefox 2: The yellow message bar says, "Software installation is currently disabled. Click Enable and try again". Just click the Enable button on the right side of the message bar.

Allowing the site to install

When a site that's not allowed to prompt you to install software attempts to do so, you'll receive a yellow bar that says:
"Firefox prevented this site (www.example.com) from asking you to install software on your computer."
Image:Firefoxpreventsinstallation.png

To allow the site to prompt:

  • Firefox 2:
  1. Click the Edit Options button on the yellow bar, as shown above.
  2. Click Allow
  3. Click Close
  4. Click on the install link of the extension or theme again.
  • Firefox 3: Click the Allow button on the yellow bar.

Unsecured updating

Firefox 3 and above: Starting in Firefox 3, if an add-on does not provide a secure method of auto-updating then, by default, Firefox will refuse to install the add-on. If you have add-ons already installed that are insecure in this way, they will be automatically disabled. [6] Add-ons from AMO and other secured sites are not a problem; for add-ons that do provide a secure updating method, advanced users can add the preference extensions.checkUpdateSecurity and set it to false (not recommended). See this article and bug 378216 for more information.

Downloaded theme or extension will not install

Some web sites offer the option to download a theme or extension instead of installing it. The downloaded file will have a ".jar" or ".xpi" extension. Do not try to open these files directly. After the download is complete, drag the downloaded .jar or .xpi file icon from the desktop (or other location) and drop it onto an open Firefox "Add-ons" window ("Extensions" or "Themes" window in Firefox 1.5 and earlier).

Note that the installation may fail with no user feedback if software installation is disabled (see above).

Download Error -228

This error message may be caused by having the Firefox cache disabled. To re-enable:

  • Firefox 2 and above: Tools -> Options -> Advanced -> Network
  • Firefox 1.5: Tools -> Options -> Privacy -> Cache

Make sure the cache is at least 1 MB (50 MB is the default setting).

On Linux, this error can be caused by IPv6. To disable IPv6, go to about:config and find the preference network.dns.disableIPv6, then right-click on it and toggle it to true. This change will require a restart of Firefox.

On Mac OS, this error can occur if the ~/Library/Caches/TemporaryItems folder is not writable. To change the permissions, control click (right-click) on the "TemporaryItems" folder, choose Get Info and, under Sharing and Permissions, change your user permissions to Read & Write. This problem can be caused by a bug in the WASP extension, which is now fixed in the current version. [7]

Firewalls or spyware screeners may also cause this issue. If you use the CA firewall, Windows Defender, or the resident option of Spybot S&D ("Teatimer" feature), temporarily disable it to see if your system will now allow the extensions or themes to install [8].

Failing that, a workaround is to right-click the download link, select "Save Link As..." and download the .xpi or .jar file to your computer. You can then manually install it by dragging the file icon onto an open Firefox window [9].

Note: The Download Error -228 message may also be seen if the required .xpi or .jar file is not actually present on the server site. You can simply try again at a later time or check other download links on both the same site and a different site, before assuming that your own setup is at fault. [10]

Another solution is disabling Network Monitor Driver. On Windows XP go to Control Panel, Network Connections, Right click your connection, Properties, uncheck network monitor driver, hit ok.

Invalid file hash

If you receive the error, Firefox could not install the file at <URL> because: Invalid file hash (possible download corruption) when clicking an "Install" link, try the following:

  • Reload the page or clear the Firefox cache: "Tools -> Options -> Advanced -> Network / Cache -> Clear Now" (Firefox 2) or "Tools -> Options -> Privacy -> Cache -> Clear" (Firefox 1.5), then try again. [11]
  • If installing from addons.mozilla.org (AMO), the problem could be with the addons.mozilla.org database (bug 345505) or a broken mirror site (bug 420278). Try restarting Firefox to see if the extension or theme was installed despite the error [12]. You could also try installing at a later time or from an alternate location such as the author's homepage [13].
  • Manually install the extension (right-click the install link -> "Save Link As"-> save the .jar or .xpi file, then drag the file icon onto an open Firefox window). Note: If a manual install also fails, an antivirus (or other software that monitors downloads) may be corrupting the file. You could try saving the file on another computer, then copy it over and manually install it on the problem computer. [14]

Note: This error can also occur when installing an "experimental" extension from AMO. See this bug report for details.

Corrupt extension files

Files that store information about the extensions you have installed can sometimes be corrupted. Deleting them can fix a number of extension issues; they will be regenerated, as needed, the next time you start Firefox. [15] [16] [17]

Exit Firefox completely, then open your Firefox profile folder (read the linked article for its location) and delete or rename these files:

extensions.ini
extensions.cache
extensions.rdf

Starting in Firefox 4, also delete or rename:

extensions.sqlite
extensions.sqlite-journal (if found)

You may also need to delete or rename the compatibility.ini file, to rebuild some other files in the profile folder.

Note: Although the above files can be deleted, renaming them (e.g., "extensionsOLD.ini", "extensionsOLD.cache", etc.) is generally considered a safer option. This achieves the same result, but allows the user to retrieve any possibly required information from them later on.

Unexpected installation error -203

Installing themes or extensions may fail with the message, Unexpected installation error -203. (If this occurs after a Software Update you may find that add-ons that were previously installed also do not work.) Follow the above directions to remove corrupt extension files. [18] If the problem is not resolved and you use ZoneAlarm or CA Firewall, disable it temporarily (enable Windows Firewall in the interim) to allow the installation. [19] If the problem persists, your profile may be corrupt (bug 361358). Use the Profile Manager to create a new profile [20] or create a new default profile [21] and then transfer your data to the newly-created profile.

JavaScript disabled

If you click a web page "Install" link and nothing happens, make sure that JavaScript is enabled in your Firefox options and that another installed extension isn't blocking JavaScript.

Conflicts with other extensions

Another installed extension may interfere with the installation of new extensions. Install the new extension in Firefox Safe Mode as a workaround.

All-In-One Sidebar extension

You may not be able to install new extensions if the All-In-One Sidebar extension is installed. Uninstall and reinstall the latest version of this extension and disable the opening of the extensions window in the sidebar [22].

Conflict with Windows High Contrast - Accessibility options

It seems if you are using Windows Accessibility options to adjust your Display to a High Contrast resolution, you may not be able to activate your themes [23]. To work around this, you should be able to deactivate the High Contrast, install the theme, select the theme, restart Firefox and then reactivate the High Contrast.

See also