Bug 4123

Summary: Harvesting MODS archives produces "Invalid argument supplied for foreach()" error
Product: OHS Reporter: Mark Jordan <mjordan>
Component: IndexingAssignee: Alec Smecher <alec>
Status: RESOLVED FIXED    
Severity: normal CC: pkp-support
Priority: P5    
Version: 2.3.1   
Hardware: PC   
OS: Windows XP   
Version Reported In: Also Affects:
Attachments: Patch against Harvester pre-2.3.1 CVS

Description Mark Jordan 2009-03-11 14:05:31 PDT
Harvesting MODS archives using harvest.php produces the following error:

"PHP Warning:  Invalid argument supplied for foreach() in /mnt/u0/var/www/html/chodarr-test/lib/pkp/classes/xml/XMLNode.inc.php on line 138"

Records are added but they are empty (more specifically, nothing is showing up in the browse list but a link to view record, and the record itself is empty.

The error message does not appear when harvesting via the web interface, but the result is the same -- empty records.

Harvesting DC and ETD-MS archives works as expected. The MODS archives (they are actually static repositories at http://harvesters.sfu.ca/static_repositories/) that are producing the error/not populating records posed no problems in Harvester 2.0.1.0 Harvester. The DC and ETD-MS archives I tested were not static repositories.
Comment 1 Alec Smecher 2009-03-11 18:48:32 PDT
Created attachment 1568 [details]
Patch against Harvester pre-2.3.1 CVS