OAI-PMH link verb is not working (ListRecords)

Hello guys,

We are trying to share our metadata with a repository by OAI-PMH, but our link:

http://huajsapata.unap.edu.pe/journal/index.php/index/oai?verb=ListRecords&metadataPrefix=oai_dc

gets this response:

This page contains the following errors:
error on line 1 at column 1: Document is empty
Below is a rendering of the page up to the first error.

Do you have any idea how to solve this problem?

Thanks in advanced for your replies.

Hi @santillan,

Have a look at the View Source listing from that URL; it shows that you’re encountering PHP errors. I had a quick look at the surrounding code and suspect that something happened to your installation during the code upgrade process (you mentioned here Error creating new issue in OJS 2.4.6 that you just upgraded your installation). What process did you use to upgrade the code? Did you encounter any problems in that process?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

No, this is another installation for other journal http://huajsapata.unap.edu.pe/ria. We installed 2.4.6 version, all was working right, except the OAI-PMH link verb.

Do you have any idea why this is happening?

Hi @santillan,

Have a look at the source of the OAI-PMH request above; it’s reporting…

ojs2 has produced an error
  Message: WARNING: Invalid argument supplied for foreach()
  In file: /home/fcmart/www/journal/plugins/metadata/dc11/filter/Dc11SchemaArticleAdapter.inc.php
  At line: 212
  Stacktrace: 
  Server info:
   OS: Linux
   PHP Version: 5.3.5-1ubuntu7.2
   Apache Version: Apache/2.2.17 (Ubuntu)
   DB Driver: mysql
   DB server version: 5.6.22<br/>
ojs2 has produced an error
  Message: WARNING: Invalid argument supplied for foreach()
  In file: /home/fcmart/www/journal/plugins/metadata/dc11/filter/Dc11SchemaArticleAdapter.inc.php
  At line: 212
  Stacktrace: 
  Server info:
   OS: Linux
   PHP Version: 5.3.5-1ubuntu7.2
   Apache Version: Apache/2.2.17 (Ubuntu)
   DB Driver: mysql
   DB server version: 5.6.22

…etc. Can you check if your code at the reported spot matches the offical version?

Regards,
Alec Smecher
Public Knowledge Project Team