omeka / plugin-OaiPmhRepository

OAI-PMH repository plugin for Omeka
http://omeka.org/codex/Plugins/OaiPmhRepository
GNU General Public License v3.0
4 stars 5 forks source link

Empty line at the begin #4

Open clrh opened 10 years ago

clrh commented 10 years ago

Hi,

I am new to Omeka and I got an error with Repository: http://.../oai-pmh-repository/request?verb=ListRecords&metadataPrefix=oai_dc got:

Erreur d'analyse XML : instruction de traitement XML ou texte pas au début d'une entité externe
Emplacement : http://omeka-test/oai-pmh-repository/request?verb=ListRecords&metadataPrefix=oai_dc
Numéro de ligne 2, Colonne 1 :<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
^

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
  <responseDate>2014-09-16T11:26:41Z</responseDate>

Omeka version: Version 2.2.1

Thanks, Claire.

zerocrates commented 10 years ago

Try deactivating your other plugins and seeing if that changes things.

This kind of error can be caused by any plugin being careless with its coding and leaving some whitespace at the end of a file after the closing PHP tag.

If it works with the other plugins all deactivated, you should be able to turn them back on one-by-one and find out which one is at fault.