Page 1 of 1
Add Source from Template plug-in error
Posted: 17 Feb 2023 02:15
by dkbutler13
I recently got a new laptop and transferred all of my family historian data over to it. All of my plug-ins work except for Add Source from Template. I have deleted and re-installed multiple times, but continue to get this error message:
[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:188:
invalid escape sequence near '".*\(.-)\.'. No changes have been
made to data records.
Anyone have any ideas?
Thanks so much!
Re: Add Source from Template plug-in error
Posted: 17 Feb 2023 11:01
by ColeValleyGirl
That plugin has not been updated for version 7 -- it's always worth checking for compatibility with v7 if you encounter a similar error (
https://pluginstore.family-historian.co ... m-template).
The author does not intend to update it, but I have her permission to release an updated version when I find time. You're the only person since V7 came out who has encountered an error, so it has been low priority to address.
Re: Add Source from Template plug-in error
Posted: 17 Feb 2023 11:02
by tatewise
Yes, I get the same failure.
I don't understand how that plugin ever worked (unless Lua 5.1 with FH V6 was different to Lua 5.3 with FH V7) or your Projects were always running the plugin for the first time.
Line 188 is:
local strFile = string.match(filename, ".*\\(.-)\.dat")
The \ before the . should be a % escape character to inhibit the . 'magic' symbol.
So line 188 should be:
local strFile = string.match(filename, ".*\\(.-)%.dat")
So in the Tools > Plugins... window select the plugin and click Edit...
Scroll down to line 188 and change the \ to %
Use File > Save and close the editor window with X icon top right.
Re: Add Source from Template plug-in error
Posted: 17 Feb 2023 11:44
by ColeValleyGirl
Mike, that plugin worked reliably under version 6 (Lua 5.1).
From the KB:
in Family Historian 5 and 6 both % and the slash character were permitted as escape characters
There will be other compatibility issues as I haven't even started to review it.
Re: Add Source from Template plug-in error
Posted: 17 Feb 2023 14:48
by dkbutler13
So I did what you advised, and it fixed that problem, but then it gave me a similar error message on another line that I also fixed. Lastly, it's giving me (hopefully) one final error message:
748: bad argument #1 to 'Destroy' (invalid Lua object, destroyed iupHandle in C but not in Lua).
Any thoughts on that one?
I really appreciate your help with this. You guys are always so helpful on these forums.
Re: Add Source from Template plug-in error
Posted: 17 Feb 2023 14:56
by tatewise
As Helen says, that plugin is only designed to work with FH V5 & V6 as it says in the Plugin Store.
You have found some incompatibilities with FH V7 and there are probably others.
So it needs a detailed review and updates to get it working reliably.
I noticed for example that it does not handle UTF8 accented foreign letters and symbols in text or file paths.
How urgent is your need for it to work?
Re: Add Source from Template plug-in error
Posted: 17 Feb 2023 14:58
by ColeValleyGirl
Yes, how urgent. I can move it up my work schedule if you desperately need it.
Re: Add Source from Template plug-in error
Posted: 17 Feb 2023 15:11
by dkbutler13
It's not super urgent. I haven't been working on my ancestry stuff for a while and am just starting to get back into it. I can always just enter the sources manually until this is up and running for v7. I hadn't even realized until you guys pointed it out that it hasn't been formatted for v7 yet, so at least that takes away the frustration of not knowing why it's not working.