[EP-tech] EPrints CRUD module returning a 500 error
Andrew Hercules
Andrew.Hercules at ulcc.ac.uk
Thu Jun 23 12:29:22 BST 2016
Hi all,
I'm attempting to create a new EPrints record using the CRUD module. To test that I can access the repository, I'm using the example provided in the documentation<https://wiki.eprints.org/w/API:EPrints/Apache/CRUD>. When I run the command from my terminal, I get the following response:
HTTP/1.1 500 Internal Server Error
Date: Thu, 23 Jun 2016 11:17:13 GMT
Server: Apache
Location: http://w01.eprintstest.da.ulcc.ac.uk/id/eprint/5252
Content-Length: 616
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
Weirdly, it returns a 500 Internal Server Error, yet it creates the EPrint record and puts it into the buffer. When I check the Apache logs, I see the following error message:
"Can't call method "param" on an undefined value at /perl_lib/EPrints/Apache/CRUD.pm line 1423"
When I review /perl_lib/EPrints/Apache/CRUD.pm line 1423, I see the following:
return $self->send_response( HTTP_CREATED, $atom->param( "mimetype" ), $atom->output_dataobj( $items[0] ), );
Has anybody seen this error before? If so, could you point me in the direction of a possible solution?
Thanks! :)
Cheers,
Andrew
--
Andrew Hercules
Developer & UX Researcher
University of London Computer Centre
Senate House, Malet Street, London WC1E 7HU
T: +44 (0)20 7863 1342
E: andrew.hercules at ulcc.ac.uk
W: http://www.ulcc.ac.uk/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20160623/6e4f5d43/attachment.html
More information about the Eprints-tech
mailing list