Invalid argument supplied for foreach() with OAI-PMH Harvester

Hello,
I a using Omeka 2.1.3 with the OAI-PMH Harvester plugin version 2.0.1 on a desktop Debian Apache server.

As I try to harvest an OAI-PMH provider (for instance http://cocoon.huma-num.fr/crdo_servlet/oai-pmh?verb=ListRecords&set=ALCAM&metadataPrefix=oai_dc or http://bibnum.univ-rennes2.fr/oai-pmh-repository/request?verb=ListRecords&metadataPrefix=oai_dc) a PHP error is displayed at the bottom of the page http://localhost/omeka/admin/oaipmh-harvester/index/sets:

Warning: Invalid argument supplied for foreach() in /var/www/omeka/plugins/OaipmhHarvester/models/OaipmhHarvester/Request.php on line 49.

Thanks for your help,

It might just be a quirk in the plugin and how it handles URLs entered. When I used the full URLs you give, I saw the warning. However, when I backed up to the start of the endpoint URL, like http://cocoon.huma-num.fr/crdo_servlet/oai-pmh, and followed the links in the interface, it was okay.

Upshot is that it is likely not a worry, just a case we hadn't accounted for. Unless, of course, it is interfering with your harvesting. If so, we'll dig more.

Hi,

The verb was not checked. I fixed it on github.

Sincerely,

Daniel Berthereau
Infodoc & Knowledge management

Thanks !