https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44345 Bug ID: 44345 Summary: Can't call method "subfields" on an undefined value at authorities/blinddetail-biblio-search.pl line 89 Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: MARC Authority data support Assignee: koha-bugs@lists.koha-community.org Reporter: m.de.rooy@rijksmuseum.nl QA Contact: testopia@bugs.koha-community.org Target Milestone: --- Here is the code segment that triggers this 500 crash (under special conditions): if ($authid) { my $auth = Koha::Authorities->find($authid); my $authtypecode = $auth ? $auth->authtypecode : q{}; my $auth_type = Koha::Authority::Types->find($authtypecode); my $record = GetAuthority($authid); my @fields = $record->field( $auth_type->auth_tag_to_report ); my $repet = ( $query->param('repet') || 1 ) - 1; my $field = $fields[$repet]; # Get all values for each distinct subfield and add to subfield loop my %done_subfields; for ( $field->subfields ) { [etc] Note that there is some checking here on $auth, but later on we dont check anymore. We might not have an $auth_type. No $record. No @fields. ETc. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.