<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">When ByWater started upgrading our partners to 17.11 last spring, I noticed that we were getting a lot of errors of the form<div><br></div><div><div>"can't call method * on an undefined value at ..."</div></div><div><br></div><div>We're starting to see these errors because more and more of our code uses Koha objects, and these will fail if a method is called on an undefined object.</div><div><br></div><div>I brought this up here: <a href="http://lists.koha-community.org/pipermail/koha-devel/2018-June/044613.html">http://lists.koha-community.org/pipermail/koha-devel/2018-June/044613.html</a><br></div><div><br></div><div>I think that there was also another thread about this, which I can't find at the moment... Jonathan's opinion on this is that we should start creating queries which find data that will fail. This thread is for those queries, since I have an example:</div><div><br></div><div><div>Circulating or holdable items without item type</div></div><div><br></div><div><div>SELECT</div><div>    biblionumber,</div><div>    itemnumber,</div><div>    barcode,</div><div>    title,</div><div>    notforloan</div><div>FROM</div><div>    items</div><div>    INNER JOIN biblio USING (biblionumber)</div><div>WHERE</div><div>    notforloan < 1</div><div>    AND itype IS NULL</div></div><div><br></div><div>Once we have a few of these at hand, I'll start a page on the Koha wiki.</div><div><br></div></div></div></div></div></div></div>