X
Tap here to go to the mobile version of the site.

Support Forum

How to restore form data ?

Posted

Firefox 60.0.1 / Kubuntu / 64 bit

I was logged into a website. I then prepared a new thread. That took about 40 minutes. When I went to post the new thread, the website didn't allow me to post as it had logged me out.

The form data was gone. I attempted to view the post I had prepared, however as the connection was SSL, when I pressed 'back', nothing displayed.

I immediately took a backup of the ~/home/******/.mozilla folder

How do I recover / restore the form data please ?

Firefox 60.0.1 / Kubuntu / 64 bit I was logged into a website. I then prepared a new thread. That took about 40 minutes. When I went to post the new thread, the website didn't allow me to post as it had logged me out. The form data was gone. I attempted to view the post I had prepared, however as the connection was SSL, when I pressed 'back', nothing displayed. I immediately took a backup of the ~/home/******/.mozilla folder How do I recover / restore the form data please ?

Modified by oygle

Quote

Additional System Details

Installed Plug-ins

  • Shockwave Flash 29.0 r0

Application

  • User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

More Information

Pkshadow
  • Top 10 Contributor
917 solutions 11939 answers

Hi, I would say since it was never posted it was never saved and so does not exist.

  • bookmarks and history: places.sqlite
  • bookmark backups: compressed .jsonlz4 JSON backups in the bookmarkbackups folder
  • cookies.sqlite for the Cookies
  • formhistory.sqlite for saved autocomplete Form Data
  • logins.json (passwords) and key4.db (58+) or key3.db (57 and older) (decryption key) for Passwords saved in the Password Manager
  • if you only have key3.db then make sure to remove an existing key4.db
  • cert9.db (58+) or cert8.db (57 and older) for (intermediate) certificates stored in the Certificate Manager
  • if you only have cert8.db then make sure to remove an existing cert9.db
  • persdict.dat for words you added to the spelling checker dictionary
  • permissions.sqlite for Permissions and possibly content-prefs.sqlite for other website specific data (Site Preferences)
  • sessionstore.jsonlz4 for open tabs and pinned tabs (see also the sessionstore-backups folder)
Hi, I would say since it was never posted it was never saved and so does not exist. *https://support.mozilla.org/en-US/kb/recovering-important-data-from-an-old-profile *bookmarks and history: places.sqlite *bookmark backups: compressed .jsonlz4 JSON backups in the bookmarkbackups folder *cookies.sqlite for the Cookies *formhistory.sqlite for saved autocomplete Form Data *logins.json (passwords) and key4.db (58+) or key3.db (57 and older) (decryption key) for Passwords saved in the Password Manager *if you only have key3.db then make sure to remove an existing key4.db *cert9.db (58+) or cert8.db (57 and older) for (intermediate) certificates stored in the Certificate Manager *if you only have cert8.db then make sure to remove an existing cert9.db *persdict.dat for words you added to the spelling checker dictionary *permissions.sqlite for Permissions and possibly content-prefs.sqlite for other website specific data (Site Preferences) *sessionstore.jsonlz4 for open tabs and pinned tabs (see also the sessionstore-backups folder)
Was this helpful to you? 1
Quote
cor-el
  • Top 10 Contributor
  • Moderator
16391 solutions 147875 answers

Helpful Reply

Once you leave the page then data you typed in a form is lost. If there is a problem with sending form data then a refresh/reload via F5 might work to recover this data via the Network Monitor (check the request headers). If the refresh or back button isn't triggering the resend then you are out-of-luck.

Once you leave the page then data you typed in a form is lost. If there is a problem with sending form data then a refresh/reload via F5 might work to recover this data via the Network Monitor (check the request headers). If the refresh or back button isn't triggering the resend then you are out-of-luck.
Was this helpful to you? 1
Quote
jscher2000
  • Top 10 Contributor
7438 solutions 60716 answers

Helpful Reply

For the future, an extension like the following might help reduce data loss from forms that time out:

https://addons.mozilla.org/firefox/addon/form-history-control/

For the future, an extension like the following might help reduce data loss from forms that time out: https://addons.mozilla.org/firefox/addon/form-history-control/
Was this helpful to you? 1
Quote

Question owner

Pkshadow said

Hi, I would say since it was never posted it was never saved and so does not exist.

Thanks, I'll have a good read through that link later. I'm assuming that when I took a backup (just a folder copy) it is 'the same as' a copy of an old profile.

''Pkshadow [[#answer-1116708|said]]'' <blockquote> Hi, I would say since it was never posted it was never saved and so does not exist. </blockquote> Thanks, I'll have a good read through that link later. I'm assuming that when I took a backup (just a folder copy) it is 'the same as' a copy of an old profile.
Was this helpful to you?
Quote

Question owner

cor-el said

Once you leave the page then data you typed in a form is lost. If there is a problem with sending form data then a refresh/reload via F5 might work to recover this data via the Network Monitor (check the request headers). If the refresh or back button isn't triggering the resend then you are out-of-luck.

I guess it all depends on what is in the backup I took. Thanks

''cor-el [[#answer-1116723|said]]'' <blockquote> Once you leave the page then data you typed in a form is lost. If there is a problem with sending form data then a refresh/reload via F5 might work to recover this data via the Network Monitor (check the request headers). If the refresh or back button isn't triggering the resend then you are out-of-luck. </blockquote> I guess it all depends on what is in the backup I took. Thanks
Was this helpful to you?
Quote

Question owner

jscher2000 said

For the future, an extension like the following might help reduce data loss from forms that time out: https://addons.mozilla.org/firefox/addon/form-history-control/

Thanks, I'll look at that.

''jscher2000 [[#answer-1116731|said]]'' <blockquote> For the future, an extension like the following might help reduce data loss from forms that time out: https://addons.mozilla.org/firefox/addon/form-history-control/ </blockquote> Thanks, I'll look at that.
Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
7438 solutions 60716 answers

Hi oygle, if you have a copy of recovery.jsonlz4 and recovery.baklz4 from the sessionstore-backups directory, try decompressing each of them using my page here:

https://www.jeffersonscher.com/res/scrounger.html

Use the Save Uncompressed JSON button and give the file a .json file extension so when you open it in Firefox you can use the structured viewer. Does the JSON data have your form input?

(The Scrounge URLs button doesn't fish out any form data, just URLs, so ignore that button.)

Hi oygle, if you have a copy of recovery.jsonlz4 and recovery.baklz4 from the '''sessionstore-backups''' directory, try decompressing each of them using my page here: https://www.jeffersonscher.com/res/scrounger.html Use the Save Uncompressed JSON button and give the file a .json file extension so when you open it in Firefox you can use the structured viewer. Does the JSON data have your form input? (The Scrounge URLs button doesn't fish out any form data, just URLs, so ignore that button.)
Was this helpful to you? 1
Quote

Question owner

Hi jscher2000,

jscher2000 said

Hi oygle, if you have a copy of recovery.jsonlz4 and recovery.baklz4 from the sessionstore-backups directory, try decompressing each of them using my page here: https://www.jeffersonscher.com/res/scrounger.html Use the Save Uncompressed JSON button and give the file a .json file extension so when you open it in Firefox you can use the structured viewer. Does the JSON data have your form input? (The Scrounge URLs button doesn't fish out any form data, just URLs, so ignore that button.)

I just checked, and yes, I have both of those files in the 'backup', so will try your instructions, thanks.  :)

Hi jscher2000, ''jscher2000 [[#answer-1116755|said]]'' <blockquote> Hi oygle, if you have a copy of recovery.jsonlz4 and recovery.baklz4 from the '''sessionstore-backups''' directory, try decompressing each of them using my page here: https://www.jeffersonscher.com/res/scrounger.html Use the Save Uncompressed JSON button and give the file a .json file extension so when you open it in Firefox you can use the structured viewer. Does the JSON data have your form input? (The Scrounge URLs button doesn't fish out any form data, just URLs, so ignore that button.) </blockquote> I just checked, and yes, I have both of those files in the 'backup', so will try your instructions, thanks. :)
Was this helpful to you?
Quote

Question owner

I'll have to read up on how to drag/drop, as I'm using Linux/Kubuntu (not windows)

I'll have to read up on how to drag/drop, as I'm using Linux/Kubuntu (not windows)
Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
7438 solutions 60716 answers

oygle said

I'll have to read up on how to drag/drop, as I'm using Linux/Kubuntu (not windows)

Oh. I tend to assume everyone has a mouse and resizable windows. If I need to add a file browsing button to that page, I could do that, but maybe not immediately.

''oygle [[#answer-1116764|said]]'' <blockquote> I'll have to read up on how to drag/drop, as I'm using Linux/Kubuntu (not windows) </blockquote> Oh. I tend to assume everyone has a mouse and resizable windows. If I need to add a file browsing button to that page, I could do that, but maybe not immediately.
Was this helpful to you? 1
Quote

Question owner

jscher2000 said

Oh. I tend to assume everyone has a mouse and resizable windows. If I need to add a file browsing button to that page, I could do that, but maybe not immediately.

Yes I do have a mouse and can resize, so I'll do that, thanks. I guess working on a laptop all the time, all windows are maximised, so I don't usually drag/drop at all.

Sometimes the unfamiliar can 'seem like' a hurdle. :)

''jscher2000 [[#answer-1116768|said]]'' <blockquote> Oh. I tend to assume everyone has a mouse and resizable windows. If I need to add a file browsing button to that page, I could do that, but maybe not immediately. </blockquote> Yes I do have a mouse and can resize, so I'll do that, thanks. I guess working on a laptop all the time, all windows are maximised, so I don't usually drag/drop at all. Sometimes the unfamiliar can 'seem like' a hurdle. :)
Was this helpful to you?
Quote

Question owner

@jscher2000

So, I have used your software to drag/drop and save uncompressed data for both files and given them an extension of .JSON

When I open the files in Firefox, what tab do I use. I used the 'raw data' tab and it's not really recognisable format.

Then I used the 'pretty print' feature, but can't find the post.  :(

@jscher2000 So, I have used your software to drag/drop and save uncompressed data for both files and given them an extension of .JSON When I open the files in Firefox, what tab do I use. I used the 'raw data' tab and it's not really recognisable format. Then I used the 'pretty print' feature, but can't find the post. :(

Modified by oygle

Was this helpful to you?
Quote
the-edmeister
  • Top 10 Contributor
  • Moderator
5270 solutions 39009 answers

Not a solution for your current issue, but see this add-on for the future. https://addons.mozilla.org/en-US/firefox/addon/textarea-cache/

Not a solution for your current issue, but see this add-on for the future. https://addons.mozilla.org/en-US/firefox/addon/textarea-cache/
Was this helpful to you? 1
Quote

Question owner

Pkshadow said

  • formhistory.sqlite for saved autocomplete Form Data

I opened that file from the backup and exported everything to a CSV, but when I view it, it only contains values from very short form fields, nothing there for this long form.

''Pkshadow [[#answer-1116708|said]]'' <blockquote> *formhistory.sqlite for saved autocomplete Form Data </blockquote> I opened that file from the backup and exported everything to a CSV, but when I view it, it only contains values from very short form fields, nothing there for this long form.
Was this helpful to you?
Quote

Question owner

the-edmeister said

Not a solution for your current issue, but see this add-on for the future. https://addons.mozilla.org/en-US/firefox/addon/textarea-cache/

Thanks  :)

''the-edmeister [[#answer-1116819|said]]'' <blockquote> Not a solution for your current issue, but see this add-on for the future. https://addons.mozilla.org/en-US/firefox/addon/textarea-cache/ </blockquote> Thanks :)
Was this helpful to you?
Quote

Question owner

In regards to those 2 .JSON files that were recovered from the backup.

I ran a script to convert them to XML and viewed the files, but couldn't find the (lost) post at all.

Thanks everyone for your help, much appreciated.

In regards to those 2 .JSON files that were recovered from the backup. I ran a script to convert them to XML and viewed the files, but couldn't find the (lost) post at all. Thanks everyone for your help, much appreciated.
Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
7438 solutions 60716 answers

Hi oygle, unfortunately I can't think of any other place to look for the form content.

Hi oygle, unfortunately I can't think of any other place to look for the form content.
Was this helpful to you? 1
Quote

Question owner

jscher2000 said

Hi oygle, unfortunately I can't think of any other place to look for the form content.

Hi jscher2000 - no worries, thanks everyone for all your help.

In future, if I'm doing a large post anywhere, I will prepare it in a text editor first. A small lesson for me.

''jscher2000 [[#answer-1116971|said]]'' <blockquote> Hi oygle, unfortunately I can't think of any other place to look for the form content. </blockquote> Hi jscher2000 - no worries, thanks everyone for all your help. In future, if I'm doing a large post anywhere, I will prepare it in a text editor first. A small lesson for me.
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.