* AS Data entry not working.

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
User avatar
johnmorrisoniom
Megastar
Posts: 882
Joined: 18 Dec 2008 07:40
Family Historian: V7
Location: Isle of Man

AS Data entry not working.

Post by johnmorrisoniom » 17 Dec 2014 23:56

Hi Mike, When the site was down earlier today, your plugin refused to work.
I realise that this is due to the plugin checking version history. But that should just be a warning , not stop it working altogether.

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

Re: AS Data entry not working.

Post by tatewise » 18 Dec 2014 00:55

The Plugin checks two things via the Internet.
(1) The Plugin Store Version to report if a later AS Plugin Version needs downloading.
(2) The FHUG AS Downloads to report if a later AS Program Version needs installing.

But neither should stop the Plugin running if there is no communication.

Perhaps the response from the FHUG server was very slow in some way that prevented the Plugin proceeding.

It is difficult to test these failure modes. If the Internet is simply disconnected it runs fine with just the warning message.

Next time the FHUG site is down I will try to remember to test it.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Jane
Site Admin
Posts: 8442
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Re: AS Data entry not working.

Post by Jane » 18 Dec 2014 07:29

Mike, the failure yesterday, meant that the server was returning a 404 error rather than timing out, so it might have just been the fact the text you were getting back was not formatted as expected. The plugin checker would have been fine as it's on Calico's server.

I suspect the problem was line 2879

StrASVer = strReturn:match("Ancestral Sources.-([%d%.]+)") -- Extract the Ancestral Sources Version digits & dots

As StrASVer would have been nil when returned as the page being returned did not contain Ancestral Sources

So when it's used for comparison on 2988 it would fail
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

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

Re: AS Data entry not working.

Post by tatewise » 18 Dec 2014 10:54

Yes, someone else informed me of that 'match' error on line 2988, but John Morrison does not mention an error message, just that the Plugin 'refused to work'.

I can easily fix the 'match' error by changing the line you suggested to:
StrASVer = strReturn:match("Ancestral Sources.-([%d%.]+)") or StrASVer
because StrASVer has a valid AS Version number at that point, but not necessarily the latest.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
johnmorrisoniom
Megastar
Posts: 882
Joined: 18 Dec 2008 07:40
Family Historian: V7
Location: Isle of Man

Re: AS Data entry not working.

Post by johnmorrisoniom » 18 Dec 2014 13:28

Hi Mike,
I did get an error message, then the plugin closed without opening AS. I was not in a position to get what the error message was. Sorry if I mislead you.

Post Reply