Troubleshooting (Users)

From GreaseSpot Wiki
Revision as of 15:34, 21 July 2010 by Arantius (talk | contribs) (Reverted edits by 114.76.83.109 (Talk) to last revision by 81.17.198.101)
Jump to navigationJump to search

Much like Firefox allows you to install extensions, Greasemonkey allows you to install user scripts. If you are having a problem with Greasemonkey, first it is important to check if the problem is actually with the user script, just like a problem with Firefox may actually be caused by an extension.

These troubleshooting steps may help you fix the problem yourself, and if not they will help you provide information that will be required before anyone else can help you. If you can't solve your own issues, then please read about getting help from the community.

Smaller Problems

Greasemonkey Enabled Status

Greasemonkey can be disabled, so that none of its scripts are run. Check the monkey menu icon. If it is displayed in light grey, Greasemonkey is disabled. Click it to re-enable Greasemonkey. Similarly, you can check the Tools, Greasemonkey, Enabled menu item. Is it checked? If not, check it off and try again.

Script Enabled Status

If you have installed a [user script] and it doesn't seem to work, or it used to work and does no longer, there are a few things to consider.

  1. Scripts do not run on every page. Check the monkey menu in the status bar. It should list every installed script that runs on the current page. If the script is not listed, it does not run on this page.
  2. Are you sure it is installed? Open Tools, Greasemonkey, Manage User Scripts. Is the script in the list on the left?
  3. The script must be enabled in order to function. Is the script's name greyed out? When you select it in the list, is the enabled check box below the list checked? If not, check it, and try again.

Script Errors

All scripts running in Firefox (even Firefox itself!) will log errors to the Error Console. Reading the Error Console can thus be tricky, as it can contain a lot of unrelated information. Nevertheless, it can be an invaluable diagnostic tool.

If your problem is of the "when I do this, I expect that, but that doesn't happen" variety, the Error Console may contain some information indicating why.

  1. Click Tools, Error Console
  2. Click Clear so that old errors do not get in the way.
  3. Click Errors so that only errors (and not just warnings) are displayed.

Now load the page, and click the button or link or whatever other action you attempt that doesn't work. Do new lines show up in the error console? They may contain the clue needed to figure out what is wrong, and why. Right click on each and choose Copy, so that you can paste the information into an email.

Bigger Problems

Fresh Profile

Creating

Firefox stores all of a user's preferences and settings in a profile. This includes browsing history, cookies, saved passwords, installed extensions, all settings, and other personalized data. You can read more about profiles at Mozilla's support site.

Unfortunately, sometimes the Firefox profile can become corrupted, causing all kinds of problems. Also, it's possible for two Firefox extensions to break each other, which is difficult to recognize.

Thankfully, there is a straightforward way to find out if either of these have happened. You can create a second fresh profile, run a test in it, and then remove it and switch back to your existing profile with nothing lost.

You can follow Mozilla's "Managing Profiles" instructions, with screenshots and videos. For clarity, the steps are also explained here

First: Start the profile manager.

  • For Windows, click Start, Run... and type: firefox -profilemanager, then click OK.
  • For Linux and Mac, just type firefox -profilemanager at the console.

Then: Select Create Profile..., click Next, and in the box that comes up type a name, like "test". Click Finish. Select the profile you just created, and select Start Firefox.

After testing is complete, repeat step two, but select the original (probably "default") profile to switch back.

Caveats

The point of creating a fresh profile is for it to be fresh and clean. Unfortunately, plenty of software injects itself into Firefox globally, and can continue to cause problems even in a fresh profile. Once you've created and started your fresh profile, open Tools, Add-Ons, and check if any extensions are listed. If so, disable all of them and restart Firefox before continuing.

Running

With this fresh profile running, you should see Firefox at its completely default settings, like after the first time you ran it.

First: Install Greasemonkey and restart Firefox. Open Tools, Error Console. Is anything displayed there? It should be empty. If not, right-click and copy the text of each, these details can be important.

Second: Install user scripts, preferably one at a time, and check after each that everything is working. If adding one causes a problem, please note which script it was.

Third: If you've installed all your scripts, and everything works OK, another extension may be conflicting. Install all the other extensions you have in your normal profile, one by one, and note which if any causes the problem to return.

Details of exactly what you noticed, and when, when running through the steps above are invaluable for anyone else to help you. Take them with you as you try getting help.