Re: [Hansaardappel] lookupReferringRecords Error
The comment form is Posting back to that page and getRecords()'s default behaviour is to use any fields from the request to search records. The search returns no records and a bug in the relatedRecordLookupFunctions.php plugin is throwing an error when it should just silently return nothing.
To fix your page, I believe you'll need to add 'allowSearch' => '0' to
your getRecords() call, like this:
list($guided_tourRecords, $guided_tourMetaData) = getRecords(array(
'tableName' => 'guided_tour',
'where' => whereRecordNumberInUrl(1),
'allowSearch' => '0',
'limit' => '1', ));