EPrints Technical Mailing List Archive

Message: #05793

< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] EPrints CRUD module returning a 500 error

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 documentationWhen 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



<title>500 Internal Server Error</title>


<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! :)



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@ulcc.ac.uk 
W: http://www.ulcc.ac.uk/