PKP Bugzilla – Bug 4123
Harvesting MODS archives produces "Invalid argument supplied for foreach()" error
Last modified: 2009-03-11 18:49:59 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 126.96.36.199 Harvester. The DC and ETD-MS archives I tested were not static repositories.
Created attachment 1568 [details]
Patch against Harvester pre-2.3.1 CVS