Preferences not saved: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
(→‎Other solutions: added DownThemAll issue.)
(added "Extension changes certain preferences" section linking to Problematic extensions in place of my last edit)
Line 4: Line 4:
The inability to save any preference changes can be caused by having a read-only or locked [[prefs.js file]] or "prefs.js.moztmp" file in the [[profile folder]].  You may receive an error similar to "Failed to save the preferences file.  Any preference changes will be lost at the end of the session"  [http://forums.mozillazine.org/viewtopic.php?t=455989].  You may also find multiple files named "prefs-<n>.js" (where <n> is a number) in the profile folder.  Check the file properties of the prefs.js file (and  "prefs.js.moztmp" file, if found) and make sure that the "read-only" attribute is not set.  You can also delete any "prefs-<n>.js" file copies.   
The inability to save any preference changes can be caused by having a read-only or locked [[prefs.js file]] or "prefs.js.moztmp" file in the [[profile folder]].  You may receive an error similar to "Failed to save the preferences file.  Any preference changes will be lost at the end of the session"  [http://forums.mozillazine.org/viewtopic.php?t=455989].  You may also find multiple files named "prefs-<n>.js" (where <n> is a number) in the profile folder.  Check the file properties of the prefs.js file (and  "prefs.js.moztmp" file, if found) and make sure that the "read-only" attribute is not set.  You can also delete any "prefs-<n>.js" file copies.   


Note that other software such as Dell Network Assistant may be causing the problem by locking or "protecting" the preference file.  If you have this program, try disabling or uninstalling it [http://forums.mozillazine.org/viewtopic.php?t=461093].  See [[Multiple profile files created]] for more information about locked or multiple files in the profile.   
Other software such as Dell Network Assistant may be causing the problem by locking or "protecting" the preferences file.  If you have this program, try disabling or uninstalling it [http://forums.mozillazine.org/viewtopic.php?t=461093].  See [[Multiple profile files created]] for more information about locked or multiple files in the profile.   


== User.js file locks certain preferences ==
== User.js file locks certain preferences ==
If you are able to change some preference settings but not others,  look for a [[user.js file]] in your [[profile folder]] (Windows users, read [[Finding the profile folder on Windows |this]] for help finding it).  The user.js file does not exist by default; it is created by users and, in a few  cases, by [[Resetting_preferences#Software_that_changes_preference_settings |some software programs]], so that certain settings get written back to the [[prefs.js file]] each time you restart your Mozilla application  If you find a user.js file, either remove it from the profile folder or edit the file to remove any unwanted settings.  See   [[Resetting preferences]]  for more information.
If you are able to change some preference settings but not others,  look for a [[user.js file]] in your [[profile folder]] (Windows users, read [[Finding the profile folder on Windows |this]] for help finding it).  The user.js file does not exist by default; it is created by users and, in a few  cases, by [[Resetting_preferences#Software_that_changes_preference_settings |some software programs]], so that certain settings get written back to the [[prefs.js file]] each time you restart your Mozilla application  If you find a user.js file, either remove it from the profile folder or edit the file to remove any unwanted settings.  See [[Resetting preferences]]  for more information.
 
==Extension changes certain preferences==
Installed extensions can make changes to certain preferences settings, causing your changes not to be saved [http://forums.mozillazine.org/viewtopic.php?t=642871].  To see if an extension is causing the problem, try disabling your extensions and then make your preference changes.  See [[Problematic extensions]] for more information.


==Other solutions==
==Other solutions==
* If you have a current [[profile backup]] you can replace the [[prefs.js file]] with the backup copy, in case the current file is corrupt.
* If you have a current [[profile backup]] you can replace the [[prefs.js file]] with the backup copy, in case the current file is corrupt.
* Some  extensions change preference settings; for example,  [https://addons.mozilla.org/en-US/firefox/addon/201 DownThemAll v1.0]  changes '''network.http''' settings after using it to download a file [http://forums.mozillazine.org/viewtopic.php?t=642871] (see  [[Problematic extensions]]  for details).  Try disabling your installed extensions before making changes to your options or preference settings, to see if one of them may be causing the problem. 
* The [[Standard diagnostic]] provides a basic troubleshooting guide if the preceding suggestions do not fix the problem.
* The [[Standard diagnostic]] provides a basic troubleshooting guide if the preceding suggestions do not fix the problem.



Revision as of 00:37, 28 March 2008

This article deals with changes to options or preference settings not being saved after you restart your Mozilla application. If Firefox toolbar customizations are not being saved, see this article.

Read-only or locked preference file

The inability to save any preference changes can be caused by having a read-only or locked prefs.js file or "prefs.js.moztmp" file in the profile folder. You may receive an error similar to "Failed to save the preferences file. Any preference changes will be lost at the end of the session" [1]. You may also find multiple files named "prefs-<n>.js" (where <n> is a number) in the profile folder. Check the file properties of the prefs.js file (and "prefs.js.moztmp" file, if found) and make sure that the "read-only" attribute is not set. You can also delete any "prefs-<n>.js" file copies.

Other software such as Dell Network Assistant may be causing the problem by locking or "protecting" the preferences file. If you have this program, try disabling or uninstalling it [2]. See Multiple profile files created for more information about locked or multiple files in the profile.

User.js file locks certain preferences

If you are able to change some preference settings but not others, look for a user.js file in your profile folder (Windows users, read this for help finding it). The user.js file does not exist by default; it is created by users and, in a few cases, by some software programs, so that certain settings get written back to the prefs.js file each time you restart your Mozilla application If you find a user.js file, either remove it from the profile folder or edit the file to remove any unwanted settings. See Resetting preferences for more information.

Extension changes certain preferences

Installed extensions can make changes to certain preferences settings, causing your changes not to be saved [3]. To see if an extension is causing the problem, try disabling your extensions and then make your preference changes. See Problematic extensions for more information.

Other solutions

  • If you have a current profile backup you can replace the prefs.js file with the backup copy, in case the current file is corrupt.
  • The Standard diagnostic provides a basic troubleshooting guide if the preceding suggestions do not fix the problem.

See also

Locking preferences