Advanced

Re: Checker for GC82FK7 dumps

[Resolved] Checker for GC82FK7 dumps
July 30, 2022 08:21AM
Hi all,

I am using a script based on " Altered Generic Jasmer Challenge Checker " for our German Jasmer Challenge: https://project-gc.com/Challenges/GC82FK7/61227

As of lately, I got informed by frankenfan (GC nickname), that the checker runs into an exception:

Error message:
Caught exception

Error log:
[string ""]:247: attempt to concatenate a boolean value

Script Output:
Getting finds. Filter is
Array
(
[minHiddenDate] => 2001-02-01
[maxHiddenDate] => 2022- 7-18
[country] => Germany
)
.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....Total months: 258, leeway: 18
Start date: February 2001
End date: July 2022
258 258

This does not happen for all users.
It would be great if someone could look into the script and find a correction for the bug.

Kind regards
DaDieDose!
Re: Checker for GC82FK7 dumps
August 01, 2022 06:33AM
I believe this is due to GC73GZQ which was created by a cacher who has since removed their account. Please contact Gentse Haviken, who wrote that script (you can do so from the checker page).
Re: Checker for GC82FK7 dumps
August 01, 2022 11:42AM
Hi sumbloke,

thanks for looking into the issue.
I already reached out to Gentse Haviken some time ago... and then created this post.
In order to get a functioning checker I cloned Gentse Haviken's checker and left out the owners in the results list.
Thus, I would consider this ticket closed.

However, I think someone needs to fix PGC.ProfileId2Name which causes trouble when the user has asked for deletion.
I will create a bug report.

Kind regards
DaDieDose!



Edited 1 time(s). Last edit at 08/01/2022 11:45AM by DaDieDose!. (view changes)
Re: Checker for GC82FK7 dumps
August 01, 2022 05:12PM
I already notified PGC HQ and they will sort this out next week
Re: Checker for GC82FK7 dumps
August 05, 2022 10:12AM
The mentioned script should be fixed now.

PGC.ProfileId2Name() returns false (or null? dont' recall) whenever it can't return data. The LUA script then tried to concatenate that value with a string which LUA doesn't allow.

The owner was only relevant for the output. I wrapped the output line of code in an if statement using dash as username (and no link) whenever the owner was unknown.

      if cache.owner_id ~= nil then
        table.insert(html, "<tr><td>" .. date .. '</td><td><img src="' .. types[cache.type] .. '" /> <a href=\"http://coord.info/'; .. cache.gccode .. '">' .. cache.cache_name .. " (" .. cache.gccode .. ")</a></td><td><a href=\"http://www.geocaching.com/profile/?id="; .. cache.owner_id .. '">' .. PGC.ProfileId2Name(cache.owner_id) .. "</a></td><td>" .. cache.hidden .. "</td><td>" .. cache.visitdate .. "</td></tr>")
      else
        table.insert(html, "<tr><td>" .. date .. '</td><td><img src="' .. types[cache.type] .. '" /> <a href=\"http://coord.info/'; .. cache.gccode .. '">' .. cache.cache_name .. " (" .. cache.gccode .. ")</a></td><td>-</td><td>" .. cache.hidden .. "</td><td>" .. cache.visitdate .. "</td></tr>")
      end
Re: Checker for GC82FK7 dumps
August 08, 2022 04:02PM
Thank you magma1447,

I can confirm https://project-gc.com/Challenges/GC82FK7/61227 is now working fine.
I reverted to that script and removed my cloned script.
Sorry, only registered users may post in this forum.

Click here to login