OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



PHP Error upon Viewing the Manage Archive Page

Open Harvester Systems support questions and answers, bug reports, and development issues.

Moderators: jmacgreg, michael, John

Forum rules
Developer Resources:

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome.

PHP Error upon Viewing the Manage Archive Page

Postby pennington » Tue Jun 29, 2010 7:12 am

I have 3 Dublin Core-based archives I'm harvesting using version 2.3.0.0, and 2 of them appear to be working well. One of them, however, is throwing PHP errors when you click on the Manage Archive link in the admin interface for that archive. The error message is:

[Tue Jun 29 09:05:21 2010] [error] [client 10.10.30.120] PHP Fatal error: Call to a member function getChildByName() on a non-object in /var/www/html/harvester/plugins/harvesters/oai/OAIHarvester.inc.php on line 201, referer: http://connect.rhodes.edu/harvester/ind ... n/archives

I've tried deleting that archive and re-adding it, but the error always reappears.

I am able to harvest some records from the archive via the command line, but I'm not able to harvest from the web interface.

I was able to harvest from this OAI repository with the 2.0.1 of OHS without issue.

Any ideas? Thanks in advance for the help.

Stacy Pennington
Rhodes College
pennington
 
Posts: 9
Joined: Mon Mar 17, 2008 11:20 am

Re: PHP Error upon Viewing the Manage Archive Page

Postby asmecher » Tue Jul 06, 2010 9:22 am

Hi Stacy,

It looks like the Harvester is having trouble parsing a response from the ListSets verb for that archive. Could you post the OAI URL here, or if it's private, PM it to me?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9050
Joined: Wed Aug 10, 2005 12:56 pm

Re: PHP Error upon Viewing the Manage Archive Page

Postby michaelortiz » Fri Sep 02, 2011 11:19 am

Hey,

I have the same trouble and looks like the solution isn't posted. Can someone bring me a hand?

Regards
Miguel
michaelortiz
 
Posts: 18
Joined: Fri Sep 02, 2011 11:07 am

Re: PHP Error upon Viewing the Manage Archive Page

Postby asmecher » Fri Sep 02, 2011 11:37 am

Hi Miguel,

Same as above -- could you post or PM me the OAI URL?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9050
Joined: Wed Aug 10, 2005 12:56 pm

Re: PHP Error upon Viewing the Manage Archive Page

Postby iniciativaupc » Tue Sep 27, 2011 8:00 am

I have the same issue.

The OAI url that i'm using is from OAI standards http://eprints.upc.es:8080/revistes-oai ... Prefix=pam

Maybe the metadataPrefix=pam which is from http://www.idealliance.org/specifications/prism/ is not supported (even that is standard?). Even that I hope there's a "simple" way to create more metadata schemas that use OAI's protocol?

Thanks,
Raimon.
iniciativaupc
 
Posts: 8
Joined: Mon May 23, 2011 12:40 am

Re: PHP Error upon Viewing the Manage Archive Page

Postby asmecher » Tue Sep 27, 2011 8:19 am

Hi Raimon,

As far as I'm aware, nobody has implemented a Prism PAM plugin for OHS. Each format that's supported is implemented as a plugin -- currently Dublin Core, ETDMS, MARC, and MODS are supported. Have a look in plugins/schemas to see what those look like.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9050
Joined: Wed Aug 10, 2005 12:56 pm

Re: PHP Error upon Viewing the Manage Archive Page

Postby iniciativaupc » Wed Sep 28, 2011 4:57 am

I'll try to develop the Prism PAM plugin for OHS...
There's any developer documentation about that?

Thanks,
Raimon
iniciativaupc
 
Posts: 8
Joined: Mon May 23, 2011 12:40 am

Re: PHP Error upon Viewing the Manage Archive Page

Postby asmecher » Thu Sep 29, 2011 12:10 am

Hi Raimon,

The OJS Technical Reference might be helpful -- of course it was written for OJS rather than OHS, but the two applications have a lot of common code structures. Other than that, the existing schema plugins are your best references. And as always, feel free to ask questions here.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9050
Joined: Wed Aug 10, 2005 12:56 pm

Re: PHP Error upon Viewing the Manage Archive Page

Postby iniciativaupc » Wed Oct 05, 2011 1:33 am

Hi Alec,

I tried to develop sort of Prism PAM plugin for OHS (done by reverse engeenering on the dc and etdms schema plugins). I have problems on its installation. The only way of installing the plugin is by uploading it (with .tar.gz) inside de ohs (with the graphic ui?). Since I'm developing with windows I'm reciving an error:

Errors occurred processing this form:

The tar command is not available. Please correctly configure it in your "config.inc.php".

I also tried to upload the files directly to the folder of schema's but its also not working.

Do you have any clue about that?

Thank you.
Raimon
iniciativaupc
 
Posts: 8
Joined: Mon May 23, 2011 12:40 am

Re: PHP Error upon Viewing the Manage Archive Page

Postby asmecher » Wed Oct 05, 2011 8:51 am

Hi Raimon,

You can work directly on the plugin by placing it alongside the others in plugins/schemas -- no need to upload it via the web interface.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9050
Joined: Wed Aug 10, 2005 12:56 pm

Re: PHP Error upon Viewing the Manage Archive Page

Postby iniciativaupc » Fri Oct 07, 2011 3:20 am

Hi Alec,
since I put my pam plugin in the same /schemas/ folder and the ohs is not working.
Can I talk to any of the dev's of the harvester/schema developers ?

Thanks,
Raimon.
iniciativaupc
 
Posts: 8
Joined: Mon May 23, 2011 12:40 am

Re: PHP Error upon Viewing the Manage Archive Page

Postby asmecher » Fri Oct 07, 2011 8:31 am

Hi Raimon,

That's probably me -- I'm happy to answer questions here, though I can't necessarily work with your code in depth.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9050
Joined: Wed Aug 10, 2005 12:56 pm

Re: PHP Error upon Viewing the Manage Archive Page

Postby iniciativaupc » Mon Oct 10, 2011 3:58 am

Ok, great :).

I modified the dc schema to adopt de pam standard, but since it's not working, I may ask:

- To add a schema it's enough with the archives in /schema/dc for example? Or is necessary to go to any other part of the code in ohs?

Thanks Alec,
I'll try to debug my code and see if there's any other issue apart from that.

Raimon.
iniciativaupc
 
Posts: 8
Joined: Mon May 23, 2011 12:40 am

Re: PHP Error upon Viewing the Manage Archive Page

Postby asmecher » Mon Oct 10, 2011 9:46 am

Hi Raimon,

There is one other thing you'll need to add -- have a look in registry/schemaMap.xml to see the mapping associating OAI metadata prefixes with the specific plugins that respond to requests for them. You'll need to add a new mapping for your plugin. Otherwise you should just need to work with the schema plugin itself.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9050
Joined: Wed Aug 10, 2005 12:56 pm


Return to Open Harvester Systems Support and Development

Who is online

Users browsing this forum: No registered users and 1 guest