<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>GetFinds returning NULL for owner</title>
        <description> Next week I will release an update for GetFinds().

For geocaches where the  owner have had their account deleted at Geocaching.com the owner-id is today set to 1 and name to [DELETED USER]. This is something Geocaching.com has added a while back.

This thread makes us aware that not all scripts handles that, which is understandable. There are two approaches to go here. Either scripts has to handle the magic ID 1 and a special username, or we just replace those with invalid values.

I have chosen to replace those values with NULL. The result is that some scripts might fail after the update. But then at least they won&amp;#039;t give faulty results. The fix for the scripts will probably be to check that owner_id and/or placed_by isn&amp;#039;t null in a loop. But fix will of course vary for each affected script.

I feel this change is better than using the ID=1 which will be a magic number most new scripts will miss handling.

There are currently 233 enabled scripts that has the word owner_id in them. That&amp;#039;s 231 potentially affected scripts. Some of them are just using the value to check that the one running the checker isn&amp;#039;t the owner of what he logged. These checks will probably still work.</description>
        <link>/forum/read.php?6,61592,61592#msg-61592</link>
        <lastBuildDate>Fri, 17 Apr 2026 18:18:25 +0000</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>/forum/read.php?6,61592,62531#msg-62531</guid>
            <title>Re: GetFinds returning NULL for owner</title>
            <link>/forum/read.php?6,61592,62531#msg-62531</link>
            <description><![CDATA[ Wow, popular script. I just moved 753 tags. Thank you for 1) making us aware, 2) forking and fixing.]]></description>
            <dc:creator>magma1447</dc:creator>
            <category>Checker news</category>
            <pubDate>Mon, 30 May 2022 08:15:25 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,61592,62528#msg-62528</guid>
            <title>Re: GetFinds returning NULL for owner</title>
            <link>/forum/read.php?6,61592,62528#msg-62528</link>
            <description><![CDATA[ Sounds good. <br />
<br />
OLD: 613<br />
NEW: 8665]]></description>
            <dc:creator>Hügh</dc:creator>
            <category>Checker news</category>
            <pubDate>Sun, 29 May 2022 20:09:13 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,61592,62526#msg-62526</guid>
            <title>Re: GetFinds returning NULL for owner</title>
            <link>/forum/read.php?6,61592,62526#msg-62526</link>
            <description><![CDATA[ Thanks. Just write the ID of the former and new script and I can transfer tags. But not until tomorrow, bedtime here.]]></description>
            <dc:creator>magma1447</dc:creator>
            <category>Checker news</category>
            <pubDate>Sun, 29 May 2022 20:01:31 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,61592,62525#msg-62525</guid>
            <title>Re: GetFinds returning NULL for owner</title>
            <link>/forum/read.php?6,61592,62525#msg-62525</link>
            <description><![CDATA[ I&#039;ve clone his script and am working on a fix. I will let you know when I finish.]]></description>
            <dc:creator>Hügh</dc:creator>
            <category>Checker news</category>
            <pubDate>Sun, 29 May 2022 19:59:09 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,61592,62524#msg-62524</guid>
            <title>Re: GetFinds returning NULL for owner</title>
            <link>/forum/read.php?6,61592,62524#msg-62524</link>
            <description><![CDATA[ There are two ways to fix this. Either I edit his script for him, or someone makes a fixed fork and I move all tags from his script to the new one.]]></description>
            <dc:creator>magma1447</dc:creator>
            <category>Checker news</category>
            <pubDate>Sun, 29 May 2022 19:56:39 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,61592,62523#msg-62523</guid>
            <title>Re: GetFinds returning NULL for owner</title>
            <link>/forum/read.php?6,61592,62523#msg-62523</link>
            <description><![CDATA[ This causes an error in GentlePurpleRain&#039;s &quot;Number of caches with word in the title.&quot; (https://project-gc.com/Tools/Challenges?edit&amp;addTag&amp;scriptId=613). On line 146, the script concatenates cache.owner_id to a string. This fails if owner_id is nil.<br />
<br />
It looks like GentlePurpleRain hasn&#039;t logged in recently. Can this still be fixed?]]></description>
            <dc:creator>Hügh</dc:creator>
            <category>Checker news</category>
            <pubDate>Sun, 29 May 2022 19:54:27 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,61592,61592#msg-61592</guid>
            <title>GetFinds returning NULL for owner</title>
            <link>/forum/read.php?6,61592,61592#msg-61592</link>
            <description><![CDATA[ Next week I will release an update for GetFinds().<br />
<br />
For geocaches where the  owner have had their account deleted at Geocaching.com the owner-id is today set to 1 and name to [DELETED USER]. This is something Geocaching.com has added a while back.<br />
<br />
<a href="https://project-gc.com/forum/read?8,61552"  rel="nofollow">This thread</a> makes us aware that not all scripts handles that, which is understandable. There are two approaches to go here. Either scripts has to handle the magic ID 1 and a special username, or we just replace those with invalid values.<br />
<br />
I have chosen to replace those values with NULL. The result is that some scripts might fail after the update. But then at least they won&#039;t give faulty results. The fix for the scripts will probably be to check that owner_id and/or placed_by isn&#039;t null in a loop. But fix will of course vary for each affected script.<br />
<br />
I feel this change is better than using the ID=1 which will be a magic number most new scripts will miss handling.<br />
<br />
There are currently 233 enabled scripts that has the word owner_id in them. That&#039;s 231 potentially affected scripts. Some of them are just using the value to check that the one running the checker isn&#039;t the owner of what he logged. These checks will probably still work.]]></description>
            <dc:creator>magma1447</dc:creator>
            <category>Checker news</category>
            <pubDate>Fri, 29 Apr 2022 18:12:04 +0000</pubDate>
        </item>
    </channel>
</rss>
