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

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 or 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, 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.


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


Daniel Berthereau
Infodoc & Knowledge management

Thanks !