Bookmarks not saved: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
m (Related bug report added)
m (→‎places.sqlite file: linked to other article for details)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
''This article deals with an issue in which changes to [[bookmarks]] are not saved after closing Firefox or Mozilla Suite/SeaMonkey.''
*If bookmarks that were saved previously are now missing, see [[Lost bookmarks]].  
*If bookmarks that were saved previously are now missing, see [[Lost bookmarks]].  
*'''In Firefox 3,''' If you export bookmarks to an HTML file but the file is not saved, see [[Unable to export bookmarks to HTML file - Firefox]]  
*'''In Firefox 3,''' If you export bookmarks to an HTML file but the file is not saved, see [[Unable to export bookmarks to HTML file - Firefox]]  
Line 4: Line 6:


If you can add,  delete, or make other changes to bookmarks but those changes are not saved when you restart your Mozilla browser,  try the solutions below.
If you can add,  delete, or make other changes to bookmarks but those changes are not saved when you restart your Mozilla browser,  try the solutions below.
==Read-only bookmarks file==
'''Mozilla Suite/SeaMonkey and Firefox 2:''' If changes to your bookmarks are not saved when you restart the browser, the [[bookmarks.html]]  or [[bookmarks.html.moztmp]] file in the [[profile folder]]  may be "read-only" (Windows) or "locked" (Mac).  Deleting or modifying bookmarks will also have no effect and the profile folder will fill up with multiple "bookmarks-<n>.html files, where <n> is a number.  See  [[Multiple profile files created]] for additional information.
Removing the  "read-only" attribute or unlocking the file will again allow the bookmarks to be updated ([https://bugzilla.mozilla.org/show_bug.cgi?id=157152 bug 157152]). To do so on Windows systems:
# Navigate to the [[profile folder]]
# Find bookmarks.html and (if it exists) bookmarks.html.moztmp
# Right-click on the file, choose Properties
# On the General tab, make sure "Read only" is not checked.
# Press OK.
'''Starting in Firefox 3,''' both bookmarks and browsing history data are stored in the [[Profile folder - Firefox|Firefox profile folder]] in the  [[places.sqlite]] file.  Check the attributes of "places.sqlite" (and, if it exists,  "places.sqlite-journal") to make sure that the file is not read-only or locked.


==Places preferences - Firefox 3==
==Places preferences - Firefox 3==
If changes to bookmarks are not being saved after restarting Firefox 3, reset the '''browser.places''' preferences to the default settings: [http://forums.mozillazine.org/viewtopic.php?t=664079] [http://support.mozilla.com/tiki-view_forum_thread.php?&forumId=1&comments_parentId=183867] [https://bugzilla.mozilla.org/show_bug.cgi?id=453054#c2]
If changes to bookmarks are not being saved after restarting Firefox 3, reset the '''browser.places''' preferences.  [http://forums.mozillazine.org/viewtopic.php?f=38&t=1235645] [http://forums.mozillazine.org/viewtopic.php?t=664079] [http://support.mozilla.com/tiki-view_forum_thread.php?&forumId=1&comments_parentId=183867] [https://bugzilla.mozilla.org/show_bug.cgi?id=453054#c2]  
#Enter  [[about:config]] in the Location Bar  
#Enter  [[about:config]] in the Location Bar  
#In the Filter box, type  '''browser.places'''
#In the Filter box, type  '''browser.places'''
#Context-click (right-click) any preference with a '''user-set''' status and select "Reset".
#Context-click (right-click) any preference with a '''user-set''' status (e.g., '''[[browser.places.importBookmarksHTML]]''')
#Click "Reset".


==Corrupt bookmarks file==
==Corrupt bookmarks file==
Line 28: Line 19:
===places.sqlite file===
===places.sqlite file===
:''These instructions may also resolve other issues with bookmarks in Firefox 3''
:''These instructions may also resolve other issues with bookmarks in Firefox 3''
'''Starting in Firefox 3,''' bookmarks and browsing history are stored in the "places.sqlite" file in the [[Profile folder - Firefox|Firefox profile folder]].  If there is a problem with this file,  bookmark changes  can be lost when you next restart Firefox.  If [[Lost_bookmarks#Restoring_bookmarks_in_Firefox_3| restoring a bookmark backup from within Firefox 3]] does not work or doesn't resolve the issue,  you can rebuild the Places database as follows, but you will lose your browsing history (follow both optional steps to rebuild your bookmarks without using any JSON bookmark backups): [http://support.mozilla.com/tiki-view_forum_thread.php?forumId=1&comments_parentId=63721] [http://support.mozilla.com/tiki-view_forum_thread.php?forumId=1&comments_parentId=196011]  
'''Starting in Firefox 3,''' bookmarks and browsing history are stored in the [[places.sqlite]] file, in the [[Profile folder - Firefox|Firefox profile folder]].  If this file is damagedvarious problems with bookmarks or other Firefox functions can occur (see [[Locked or damaged places.sqlite]] for details).  You can rebuild the Places database as follows, to see if it resolves the issue (however, this will remove your browsing history): [http://support.mozilla.com/tiki-view_forum_thread.php?forumId=1&comments_parentId=63721] [http://support.mozilla.com/tiki-view_forum_thread.php?forumId=1&comments_parentId=196011]  
# ''(Optional)''  [[Export bookmarks|Export your bookmarks]] to a file named "bookmarks.html" (or use a previously saved bookmarks.html file) and place it in the [[Profile folder - Firefox|Firefox profile folder]].  If a "bookmarks.html" file already exists, allow the exported (or previously saved) file to replace it.
# ''(Optional)''  [[Export bookmarks|Export your bookmarks]] to a file named "bookmarks.html" (or use a previously saved bookmarks.html file) and place it in the [[Profile folder - Firefox|Firefox profile folder]].  If a "bookmarks.html" file already exists, allow the exported (or previously saved) file to replace it.
#*To export your Firefox 3 bookmarks, go to "Bookmarks -> Organize Bookmarks -> Import and Backup -> Export HTML".
#*To export your Firefox 3 bookmarks, go to "Bookmarks -> Organize Bookmarks -> Import and Backup -> Export HTML".
# [[Kill application|Close Firefox completely]] (or restart the computer).
# [[Kill application|Close Firefox completely]] (or restart the computer).
#Open the  [[Profile folder - Firefox|Firefox profile folder]] and delete (or rename) the "places.sqlite" file and, if it exists, "places.sqlite-journal".
#Open the  [[Profile folder - Firefox|Firefox profile folder]] and delete (or rename) the "places.sqlite" file and, if it exists, "places.sqlite-journal".
#''(Optional)'' To  force Firefox to automatically restore your bookmarks from the profile folder "bookmarks.html" file, instead of from a JSON  backup, open the [[bookmarkbackups folder]]  and remove all [[bookmarks-(date).json]] files to another location.
#''(Optional)'' To  force Firefox to automatically restore your bookmarks from the profile folder "bookmarks.html" file, instead of from a JSON  backup, open the [[bookmarkbackups folder]]  and remove all [[bookmarks-(date).json]] files to another location. (This may be necessary,  in some cases,  if there is also a problem with the JSON bookmark backup files.) 
# It is probably also a good idea to delete the [[localstore.rdf]] file, to remove the references to the old Places file (you will need to add back any [[Toolbar customization - Firefox| toolbar customizations]]).     
# It is probably also a good idea to delete the [[localstore.rdf]] file, to remove the references to the old Places file (you will need to add back any [[Toolbar customization - Firefox| toolbar customizations]]).     
#Restart Firefox.  
#Restart Firefox.  
Firefox will create a new "places.sqlite" file and automatically import the most recent  JSON bookmark backup file.  If no JSON backup is found, Firefox will automatically import your bookmarks from the profile folder "bookmarks.html" file, if it exists.  
Firefox will create a new "places.sqlite" file and automatically import the most recent  JSON bookmark backup file.  If no JSON backup is found, Firefox will automatically import your bookmarks from the profile folder "bookmarks.html" file, if it exists.
 
'''Note:''' You may also need to use  [[about:config]] to reset all of the '''browser.places''' preferences to the default settings ([[#Places preferences - Firefox 3|see above]]).
 
==Read-only bookmarks file==
'''Mozilla Suite/SeaMonkey and Firefox 2:''' If changes to your bookmarks are not saved when you restart the browser, the [[bookmarks.html]]  or [[bookmarks.html.moztmp]] file in the [[profile folder]]  may be "read-only" (Windows) or "locked" (Mac).  Deleting or modifying bookmarks will also have no effect and the profile folder will fill up with multiple "bookmarks-<n>.html files, where <n> is a number.  See  [[Multiple profile files created]] for additional information.  


Note: You may also need to use  [[about:config]] to reset all of the '''browser.places''' preferences to the default settings ([[#Places preferences - Firefox 3|see above]]).
Removing the  "read-only" attribute or unlocking the file will again allow the bookmarks to be updated ([https://bugzilla.mozilla.org/show_bug.cgi?id=157152 bug 157152]). To do so on Windows systems:
# Navigate to the [[profile folder]]
# Find bookmarks.html and (if it exists) bookmarks.html.moztmp
# Right-click on the file, choose Properties
# On the General tab, make sure "Read only" is not checked.
# Press OK.


==Add Bookmark dialog not working - Firefox==
'''Starting in Firefox 3,''' both bookmarks and browsing history data are stored in the [[Profile folder - Firefox|Firefox profile folder]] in the [[places.sqlite]] file. Check the attributes of "places.sqlite" (and, if it exists,  "places.sqlite-journal") to make sure that the file is not read-only or locked.
''This issue was reported in Firefox 1.5 and may no longer apply to Firefox 2 or above.''  
* A  corrupt [[localstore.rdf]]  file in your [[Profile folder - Firefox|Firefox profile folder]] can cause this problem. To fix it, see [[Corrupt localstore.rdf | this article]].
* The [https://addons.mozilla.org/en-US/firefox/addon/1553 Bookmark Duplicate Detector] extension may cause the Add Bookmark dialog to fail [http://forums.mozillazine.org/viewtopic.php?t=394410].  If updating the extension doesn't help you should uninstall it.


==Other solutions==
==Other solutions==
Line 49: Line 47:


==Related bug reports==
==Related bug reports==
*[https://bugzilla.mozilla.org/show_bug.cgi?id=462366  Bug 462366 -  correct bogus importBookmarksHTML behaviour] (Fixed in Firefox 3.1)
*[https://bugzilla.mozilla.org/show_bug.cgi?id=462366  Bug 462366 -  correct bogus importBookmarksHTML behaviour] (Fixed in Firefox 3.5)


[[Category:Issues (Firefox)]]
[[Category:Issues (Firefox)]]
[[Category:Issues (Mozilla Suite)]]
[[Category:Issues (Mozilla Suite)]]
[[Category:Bookmarks]]
[[Category:Bookmarks]]

Latest revision as of 15:48, 14 June 2009

This article deals with an issue in which changes to bookmarks are not saved after closing Firefox or Mozilla Suite/SeaMonkey.

  • If bookmarks that were saved previously are now missing, see Lost bookmarks.
  • In Firefox 3, If you export bookmarks to an HTML file but the file is not saved, see Unable to export bookmarks to HTML file - Firefox
  • In Firefox 3, If you are having other problems such as toolbar buttons not working, home page not loading, missing bookmarks and history, inability to edit or delete certain bookmarks or if adding a new bookmark has no effect, see Locked or damaged places.sqlite

If you can add, delete, or make other changes to bookmarks but those changes are not saved when you restart your Mozilla browser, try the solutions below.

Places preferences - Firefox 3

If changes to bookmarks are not being saved after restarting Firefox 3, reset the browser.places preferences. [1] [2] [3] [4]

  1. Enter about:config in the Location Bar
  2. In the Filter box, type browser.places
  3. Context-click (right-click) any preference with a user-set status (e.g., browser.places.importBookmarksHTML)
  4. Click "Reset".

Corrupt bookmarks file

In Mozilla Suite/SeaMonkey and Firefox 2, bookmarks are stored in the bookmarks.html file. If this file is damaged, you may not be able to update your bookmarks. To replace a possibly corrupt bookmarks.html file with a backup, see Lost bookmarks - Replacing bookmarks with a backup file. (To create a current bookmarks backup file, simply export your bookmarks.)

places.sqlite file

These instructions may also resolve other issues with bookmarks in Firefox 3

Starting in Firefox 3, bookmarks and browsing history are stored in the places.sqlite file, in the Firefox profile folder. If this file is damaged, various problems with bookmarks or other Firefox functions can occur (see Locked or damaged places.sqlite for details). You can rebuild the Places database as follows, to see if it resolves the issue (however, this will remove your browsing history): [5] [6]

  1. (Optional) Export your bookmarks to a file named "bookmarks.html" (or use a previously saved bookmarks.html file) and place it in the Firefox profile folder. If a "bookmarks.html" file already exists, allow the exported (or previously saved) file to replace it.
    • To export your Firefox 3 bookmarks, go to "Bookmarks -> Organize Bookmarks -> Import and Backup -> Export HTML".
  2. Close Firefox completely (or restart the computer).
  3. Open the Firefox profile folder and delete (or rename) the "places.sqlite" file and, if it exists, "places.sqlite-journal".
  4. (Optional) To force Firefox to automatically restore your bookmarks from the profile folder "bookmarks.html" file, instead of from a JSON backup, open the bookmarkbackups folder and remove all bookmarks-(date).json files to another location. (This may be necessary, in some cases, if there is also a problem with the JSON bookmark backup files.)
  5. It is probably also a good idea to delete the localstore.rdf file, to remove the references to the old Places file (you will need to add back any toolbar customizations).
  6. Restart Firefox.

Firefox will create a new "places.sqlite" file and automatically import the most recent JSON bookmark backup file. If no JSON backup is found, Firefox will automatically import your bookmarks from the profile folder "bookmarks.html" file, if it exists.

Note: You may also need to use about:config to reset all of the browser.places preferences to the default settings (see above).

Read-only bookmarks file

Mozilla Suite/SeaMonkey and Firefox 2: If changes to your bookmarks are not saved when you restart the browser, the bookmarks.html or bookmarks.html.moztmp file in the profile folder may be "read-only" (Windows) or "locked" (Mac). Deleting or modifying bookmarks will also have no effect and the profile folder will fill up with multiple "bookmarks-<n>.html files, where <n> is a number. See Multiple profile files created for additional information.

Removing the "read-only" attribute or unlocking the file will again allow the bookmarks to be updated (bug 157152). To do so on Windows systems:

  1. Navigate to the profile folder
  2. Find bookmarks.html and (if it exists) bookmarks.html.moztmp
  3. Right-click on the file, choose Properties
  4. On the General tab, make sure "Read only" is not checked.
  5. Press OK.

Starting in Firefox 3, both bookmarks and browsing history data are stored in the Firefox profile folder in the places.sqlite file. Check the attributes of "places.sqlite" (and, if it exists, "places.sqlite-journal") to make sure that the file is not read-only or locked.

Other solutions

Try the standard diagnostic steps. Problematic extensions may be causing the issue. Try running Firefox in Safe Mode and disable all extensions, or create a new profile for testing purposes. [7]

Related bug reports