* Backup and Restore Family Historian Settings - Lua Error

For users to report plugin bugs and request plugin enhancements; and for authors to test new/new versions of plugins, and to discuss plugin development (in the Programming Technicalities sub-forum). If you want advice on choosing or using a plugin, please ask in General Usage or an appropriate sub-forum.
Post Reply
avatar
MickRalph
Gold
Posts: 15
Joined: 01 Mar 2007 23:08
Family Historian: V7

Backup and Restore Family Historian Settings - Lua Error

Post by MickRalph » 21 Feb 2023 13:46

I have tried to run "Backup and Restore Family Historian Settings" v3.5 on my FH v7.0.18 database.

The plugin backs up 1311 files and then stops with a Lua error, as below:

[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:4785: [string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:655: COM exception:(d:\my\lua\luacom-master\src\library\tluacom.cpp,386):
stack traceback:
[C]: in for iterator 'for iterator'
[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:4785: in upvalue 'intCopyFiles'
[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:5733: in function <[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:5696>
(...tail calls...)
[C]: in function 'iuplua.MainLoop'
[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:2696: in field 'ShowDialogue'
[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:6131: in function 'GUI_MainDialogue'
[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:6162: in main chunk

I am given the option to "Continue", in which case the plugin just sits there doing nothing further, and the "Close Plugin" button is greyed out; or I can click "Exit", on which FH closes completely.

On the Options tab for the plugin, the only box whick is now ticked is "Allow Registry Restore Data".

I have tried to backup to a folder on the laptop C-drive and to a folder on the USB drive which IO use for data storage.

I seem to have a complete backup fro 9th December 2022.

Any ideas what has gone wrong?

Mick Ralph

User avatar
tatewise
Megastar
Posts: 27077
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Backup and Restore Family Historian Settings - Lua Error

Post by tatewise » 21 Feb 2023 14:00

Sorry about that Mick. It is an internal problem within Lua that crops up now and then.
I think I'll have to modify the plugin to use a workaround that I've used in other plugins.
Give me a day or two to investigate.

BTW: After clicking Continue, close the plugin dialogue window by clicking the X Close icon top right which aborts the plugin.

In the meantime try the 'Backup and Restore Family Historian Settings via Windows' alternative plugin.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
MickRalph
Gold
Posts: 15
Joined: 01 Mar 2007 23:08
Family Historian: V7

Re: Backup and Restore Family Historian Settings - Lua Error

Post by MickRalph » 21 Feb 2023 14:02

Thanks Mike for the very prompt response. I did close the plugin window by using the "X" button.

Mick Ralph

User avatar
tatewise
Megastar
Posts: 27077
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Backup and Restore Family Historian Settings - Lua Error

Post by tatewise » 24 Feb 2023 12:29

I have revised the plugin to use the workaround used in other plugins. Sorry, it took longer than I expected.

Try the attached Backup and Restore Family Historian Settings plugin Version 3.5.2 Date 24 Feb 2023.
Last edited by tatewise on 16 Mar 2023 12:36, edited 1 time in total.
Reason: Attachment deleted as later version is in the Plugin Store.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
tatewise
Megastar
Posts: 27077
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Backup and Restore Family Historian Settings - Lua Error

Post by tatewise » 02 Mar 2023 13:20

Mick, can you please confirm whether the revised plugin attached last week fixes your problem?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
tatewise
Megastar
Posts: 27077
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Backup and Restore Family Historian Settings - Lua Error

Post by tatewise » 15 Mar 2023 16:57

The Backup and Restore Family Historian Settings plugin Version 3.6 Date 15 Mar 2023 is in the Plugin Store.

I hope it fixes the Lua error, but despite the prototype attachment being downloaded 18 times over the last 3 weeks there has been no feedback!

The prototype attachment will be deleted soon.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Robert Jacobs
Famous
Posts: 111
Joined: 21 Mar 2015 18:03
Family Historian: V7
Location: Ellensburg, Washington, U.S.A.
Contact:

Re: Backup and Restore Family Historian Settings - Lua Error

Post by Robert Jacobs » 16 Mar 2023 11:52

It ran through successfully this morning for me. I'm using FH 7.0.19 running under Windows 11.

Robert

Post Reply