<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi all,</p>
<p><br>
</p>
<p>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
<a href="https://wiki.eprints.org/w/API:EPrints/Apache/CRUD">documentation</a>.&nbsp;<span style="font-size: 12pt;">When I run the command from my terminal, I get the following response:</span></p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p></p>
<p></p>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<p></p>
<p class="p1"><span class="s1">HTTP/1.1 500 Internal Server Error</span></p>
<p></p>
<p></p>
<p class="p1"><span class="s1">Date: Thu, 23 Jun 2016 11:17:13 GMT</span></p>
<p></p>
<p></p>
<p class="p1"><span class="s1">Server: Apache</span></p>
<p></p>
<p></p>
<p class="p1"><span class="s1">Location: http://w01.eprintstest.da.ulcc.ac.uk/id/eprint/5252</span></p>
<p></p>
<p></p>
<p class="p1"><span class="s1">Content-Length: 616</span></p>
<p></p>
<p></p>
<p class="p1"><span class="s1">Connection: close</span></p>
<p></p>
<p></p>
<p class="p1"><span class="s1">Content-Type: text/html; charset=iso-8859-1</span></p>
<p></p>
<p></p>
<p class="p2"><br>
</p>
<p></p>
<p></p>
<p class="p1"><span class="s1">&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML 2.0//EN&quot;&gt;</span></p>
<p></p>
<p></p>
<p class="p1"><span class="s1">&lt;html&gt;&lt;head&gt;</span></p>
<p></p>
<p></p>
<p class="p1"><span class="s1">&lt;title&gt;500 Internal Server Error&lt;/title&gt;</span></p>
<p></p>
<p></p>
<p class="p1"><span class="s1">&lt;/head&gt;&lt;body&gt;</span></p>
<p></p>
<p></p>
<p class="p1"><span class="s1">&lt;h1&gt;Internal Server Error&lt;/h1&gt;</span></p>
<p></p>
<p></p>
<p class="p1"><span class="s1">&lt;p&gt;The server encountered an internal error or</span></p>
<p></p>
<p></p>
<p class="p1"><span class="s1">misconfiguration and was unable to complete</span></p>
<p></p>
<p></p>
<p class="p1"><span class="s1">your request.&lt;/p&gt;</span></p>
<p></p>
</blockquote>
<p></p>
<p></p>
<p class="p2"><span class="s1"></span></p>
<br>
<p></p>
<p><span style="font-size: 12pt;">Weirdly,&nbsp;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,&nbsp;I see the following error message:</span><br>
</p>
<p><br>
</p>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<p>&quot;Can't call method &quot;param&quot; on an undefined value at /perl_lib/EPrints/Apache/CRUD.pm line 1423&quot;</p>
</blockquote>
<p></p>
<p><br>
When I review&nbsp;<span style="font-family: Calibri, Arial, Helvetica, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols; font-size: 16px;">/perl_lib/EPrints/Apache/CRUD.pm line 1423, I see the following:&nbsp;</span></p>
<p><span style="font-family: Calibri, Arial, Helvetica, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols; font-size: 16px;"><br>
</span></p>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<p><span style="font-family: Calibri, Arial, Helvetica, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols; font-size: 16px;"><span>return $self-&gt;send_response( HTTP_CREATED, $atom-&gt;param( &quot;mimetype&quot;
 ), $atom-&gt;output_dataobj( $items[0] ), );</span></span></p>
<p><span style="font-family: Calibri, Arial, Helvetica, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols; font-size: 16px;"><span><br>
</span></span></p>
</blockquote>
Has anybody seen this error before? If so, could you point me in the direction of a possible solution?
<div><br>
Thanks! :)</div>
<div><br>
Cheers,</div>
<div><br>
Andrew<br>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<p><span style="font-family: Calibri, Arial, Helvetica, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols; font-size: 16px;"><span><br>
</span></span></p>
</blockquote>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif">--</span></div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif"><strong>Andrew Hercules</strong></span></div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif">Developer &amp; UX Researcher</span></div>
<div><span style="font-size:12pt">University of London Computer Centre</span><br>
</div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif">Senate House, Malet Street, London WC1E 7HU</span></div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif">T: &#43;44 (0)20 7863 1342</span></div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif">E: andrew.hercules@ulcc.ac.uk&nbsp;</span></div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif">W: http://www.ulcc.ac.uk/</span></div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:10pt"><em></em></span></div>
<p></p>
<p></p>
</div>
</div>
</div>
</div>
</body>
</html>