Closed rebuto closed 4 years ago
Thanks for your time WaldiPL Unfortunately the backup button doesn't work :(
Here is the message :
Here is the line in cause I presume :
Only this one message was in the console? Open "Options", open the console and take a screenshot.
After clicking here :
This message appear :
When I click on "debugger eval code:1:53" come on this :
does this mean the problem happens at th 41st character ? the e variable ?
I can't find the option button I've got a Firefox french version.
I meant "extension options". Available by clicking the gear icon in the sidebar.
Are you using version 1.9.5? The problem appeared after the update? Have you used a debugger or console before the error occurred?
I'm using 1.9.5 :
Here are my parameters :
Does this answer what you asked ?
I didn't used a debugger or console before the error occurred
I don't know if I understand your problem correctly.
I hear the sound that means pages have been scanned but the button to access them has disappeared.
If you mean this button, it is not visible if the pages are opened automatically ("Ouvrir automatiquement").
When I do scan now, pages I want to scan become blue in the list but when I click on them, I get a white page. When you open a page, only the scanner interface is visible? As below. Does changing the page view change anything?
Unfortunately the backup button doesn't work :(
I've unchecked the box "Ouvri automatiquement and made another scan and got this :
When I try to get a backup, I've got the same message in the console :
Could you open the debugger and take a screenshot.
yep
Check if something has changed. Try disabling other extensions.
1 :
no differences I disabled my other extensions and restarted firefox and tryed again. But still the same problem :( Thanks again for your help
What browser version are you using?
72.0.2
done.
I still get this error but I don't know how to get logs :
Last message for me for today. It's time to go to bed ;) I'll answer you as I wake up. Thanks again !
Try to create a backup by pasting this script into the console.
browser.storage.local.get().then(result => {
let a = document.createElement("a");
document.body.appendChild(a);
let json = JSON.stringify(result),
blob = new Blob([json], {
type: "octet/stream"
}),
url = window.URL.createObjectURL(blob),
d = new Date(),
date = `${d.getFullYear()}-${d.getMonth()+1}-${d.getDate()}`;
a.href = url;
a.download = `Web Pages Scanner - ${date}.json`;
a.style.display = "none";
a.click();
window.URL.revokeObjectURL(url);
});
Run the following code in the console (each line separately)
await browser.storage.local.get("sites");
await browser.storage.local.get("settings");
await browser.storage.local.get("changes");
await browser.storage.local.get("sort");
Try to install the older version of the extension. Web Pages Scanner 1.9.4
After installing 1.9.4 I get the number on the icon :
but I can't open modified pages and I still get error when I try to backup.
Is the error displayed after the execution of the script await browser.storage.local.get("changes");
is the same as before?
Can you delete a page, or add a new one?
Yes, it's the same error.
When I add a page, I get this window
But the page doesn't appear in the list.
I can't delete a page.
Go to about:devtools-toolbox?type=extension&id=webpageScanner%40waldemar.b
Select the "Storage" tab and then "Extension Storage"
There should be four keys in the table: changes, settings, sites, sort. Is the key "changes" is visible?
Open the browser console (ctrl+shift+J) and take a screenshot.
Do you have any backups?
There is nothing in the storage tab :+1:
hop :
Have you used other versions of Firefox?
Have you edited any files in a folder
C:\Users\[user_name]\AppData\Roaming\Mozilla\Firefox\Profiles\[profile_name]\storage\default
Other versions yes. I upgrade as soon as there is a new version I haven't edited any file in the default folder.
I think one of a files containing a database is broken. These files are created by Firefox, and the extension does not impact this. Damaged is a part containing html code of scanned pages. Recovery of this data may be impossible.
If you paste the code below into the console (on the "Web Pages Scanner" option page) you will create a backup containing the list of pages (everything that is visible in the sidebar (pages and their settings).
browser.storage.local.get(["sites","sort","settings"]).then(result=>{
let a=document.createElement("a");
document.body.appendChild(a);
result.changes=[];
for(let i=0;i<result.sites.length;i++){
result.changes.push({"oldHtml":"","html":""});
}
let json=JSON.stringify(result),
blob=new Blob([json],{type:"octet/stream"}),
url=window.URL.createObjectURL(blob),
d=new Date(),
date=`${d.getFullYear()}-${d.getMonth()+1}-${d.getDate()}`;
a.href=url;
a.download=`Web Pages Scanner - ${date}.json`;
a.style.display="none";
a.click();
window.URL.revokeObjectURL(url);
});
To remove the old database, you must uninstall and then reinstall the extension. Then you can restore the pages from the backup.
The backup created using the above script does not contain the content of the pages. So you need to scan all the pages again.
I've reinstalled and restored the backup. It seems OK. Thank you WaldiPL !
I hear the sound that means pages have been scanned but the button to access them has disappeared.
When I do scan now, pages I want to scan become blue in the list but when I click on them, I get a white page.
Could you help me please. This add-on is very useful for me.