PKP Bugzilla – Full Text Bug Listing
|Summary:||Harvesting MODS archives produces "Invalid argument supplied for foreach()" error|
|Product:||OHS||Reporter:||Mark Jordan <mjordan>|
|Component:||Indexing||Assignee:||Alec Smecher <alec>|
|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 220.127.116.11 Harvester. The DC and ETD-MS archives I tested were not static repositories.