<div dir="ltr"><div>First time I named the file &quot;<a href="http://eprints_search_advanced.pl">eprints_search_advanced.pl</a>&quot; and it didn&#39;t work, but renamed it to &quot;<a href="http://eprint_search_advanced.pl">eprint_search_advanced.pl</a>&quot; and now it works. Thank you for the help David.<br><br></div>Have a nice day.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 3, 2017 at 11:50 AM, David R Newman <span dir="ltr">&lt;<a href="mailto:drn@ecs.soton.ac.uk" target="_blank">drn@ecs.soton.ac.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
If you are still getting the error message:<br>
<span class=""><br>
Can&#39;t use an undefined value as an ARRAY reference<br>
at /usr/share/eprints3/lib/cfg.d/<a href="http://eprint_search_staff.pl" rel="noreferrer" target="_blank"><wbr>eprint_search_staff.pl</a> line 16.<br>
<br>
</span>I think you will need to put <a href="http://eprint_search_advanced.pl" rel="noreferrer" target="_blank">eprint_search_advanced.pl</a><br>
in /usr/share/eprints3/lib/cfg.d/ if it not already present.  If it is<br>
present, then it should look much like the code I sent previously,<br>
otherwise this may well cause an error like above.<br>
<br>
Regards<br>
<span class="HOEnZb"><font color="#888888"><br>
David Newman<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Mon, 2017-04-03 at 11:28 +0300, Mitocariu Emilian wrote:<br>
&gt; Hi again,<br>
&gt;<br>
&gt; I created the file <a href="http://eprints_search_advanced.pl" rel="noreferrer" target="_blank">eprints_search_advanced.pl</a>, tried<br>
&gt; in /usr/share/eprints3/lib/cfg.d/<br>
&gt; and /usr/share/eprints3/archives/<wbr>ARCHIVE_NAME/cfg/cfg.d/ directories,<br>
&gt; I set the ownership and permissions as the other files in the<br>
&gt; directory, but same error when running the import script.<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Apr 3, 2017 at 11:06 AM, David R Newman &lt;<a href="mailto:drn@ecs.soton.ac.uk">drn@ecs.soton.ac.uk</a>&gt;<br>
&gt; wrote:<br>
&gt;         Hi<br>
&gt;<br>
&gt;         It looks like you do not have any advanced search fields set.<br>
&gt;         Can you find a file called <a href="http://eprint_search_advanced.pl" rel="noreferrer" target="_blank">eprint_search_advanced.pl</a> either in<br>
&gt;         the same directory or in your archive&#39;s cfg.d. directory<br>
&gt;         (e.g. /usr/share/eprints3/archives/<wbr>ARCHIVE_NAME/cfg/cfg.d/<a href="http://eprints_search_advanced.pl" rel="noreferrer" target="_blank">eprints<wbr>_search_advanced.pl</a>).  If not you will want to create this file and add the code that follows this email.  If you do not have this file in either of the two directories I mention above, I am a little puzzled why, if this is an initial install using the Deb package.<br>
&gt;<br>
&gt;         Regards<br>
&gt;<br>
&gt;         David Newman<br>
&gt;<br>
&gt;         $c-&gt;{search}-&gt;{advanced} =<br>
&gt;         {<br>
&gt;                 search_fields =&gt; [<br>
&gt;                         { meta_fields =&gt; [ &quot;documents&quot; ] },<br>
&gt;                         { meta_fields =&gt; [ &quot;title&quot; ] },<br>
&gt;                         { meta_fields =&gt; [ &quot;creators_name&quot; ] },<br>
&gt;                         { meta_fields =&gt; [ &quot;abstract&quot; ] },<br>
&gt;                         { meta_fields =&gt; [ &quot;date&quot; ] },<br>
&gt;                         { meta_fields =&gt; [ &quot;keywords&quot; ] },<br>
&gt;                         { meta_fields =&gt; [ &quot;subjects&quot; ] },<br>
&gt;                         { meta_fields =&gt; [ &quot;type&quot; ] },<br>
&gt;                         { meta_fields =&gt; [ &quot;department&quot; ] },<br>
&gt;                         { meta_fields =&gt; [ &quot;editors_name&quot; ] },<br>
&gt;                         { meta_fields =&gt; [ &quot;ispublished&quot; ] },<br>
&gt;                         { meta_fields =&gt; [ &quot;refereed&quot; ] },<br>
&gt;                         { meta_fields =&gt; [ &quot;publication&quot; ] },<br>
&gt;                         { meta_fields =&gt; [ &quot;documents.format&quot; ] },<br>
&gt;                 ],<br>
&gt;                 preamble_phrase =&gt; &quot;cgi/advsearch:preamble&quot;,<br>
&gt;                 title_phrase =&gt; &quot;cgi/advsearch:adv_search&quot;,<br>
&gt;                 citation =&gt; &quot;result&quot;,<br>
&gt;                 page_size =&gt; 20,<br>
&gt;                 order_methods =&gt; {<br>
&gt;                         &quot;byyear&quot;         =&gt;<br>
&gt;         &quot;-date/creators_name/title&quot;,<br>
&gt;                         &quot;byyearoldest&quot;   =&gt;<br>
&gt;         &quot;date/creators_name/title&quot;,<br>
&gt;                         &quot;byname&quot;         =&gt;<br>
&gt;         &quot;creators_name/-date/title&quot;,<br>
&gt;                         &quot;bytitle&quot;        =&gt;<br>
&gt;         &quot;title/creators_name/-date&quot;<br>
&gt;                 },<br>
&gt;                 default_order =&gt; &quot;byyear&quot;,<br>
&gt;                 show_zero_results =&gt; 1,<br>
&gt;         };<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;         On 03/04/2017 08:52, Mitocariu Emilian wrote:<br>
&gt;<br>
&gt;         &gt; Hi,<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt; This is the content of<br>
&gt;         &gt; the /usr/share/eprints3/lib/cfg.d/<a href="http://eprint_search_staff.pl" rel="noreferrer" target="_blank"><wbr>eprint_search_staff.pl</a>:<br>
&gt;         &gt;<br>
&gt;         &gt; # Any changes made here will be lost!<br>
&gt;         &gt; #<br>
&gt;         &gt; # Copy this file to:<br>
&gt;         &gt; # archives/[archiveid]/cfg/cfg.<wbr>d/<br>
&gt;         &gt; #<br>
&gt;         &gt; # And then make any changes.<br>
&gt;         &gt;<br>
&gt;         &gt; $c-&gt;{datasets}-&gt;{eprint}-&gt;{<wbr>search}-&gt;{staff} =<br>
&gt;         &gt; {<br>
&gt;         &gt;         search_fields =&gt; [<br>
&gt;         &gt;                 { meta_fields =&gt; [qw( eprintid )] },<br>
&gt;         &gt;                 { meta_fields =&gt; [qw( userid.username )] },<br>
&gt;         &gt;                 { meta_fields =&gt; [qw( <a href="http://userid.name" rel="noreferrer" target="_blank">userid.name</a> )] },<br>
&gt;         &gt;                 { meta_fields =&gt; [qw( eprint_status )],<br>
&gt;         &gt; default=&gt;&quot;archive buffer&quot; },<br>
&gt;         &gt;                 { meta_fields =&gt; [qw( dir )] },<br>
&gt;         &gt;                 @{$c-&gt;{search}{advanced}{<wbr>search_fields}},<br>
&gt;         &gt;         ],<br>
&gt;         &gt;         preamble_phrase =&gt;<br>
&gt;         &gt; &quot;Plugin/Screen/Staff/<wbr>EPrintSearch:description&quot;,<br>
&gt;         &gt;         title_phrase =&gt;<br>
&gt;         &gt; &quot;Plugin/Screen/Staff/<wbr>EPrintSearch:title&quot;,<br>
&gt;         &gt;         citation =&gt; &quot;result&quot;,<br>
&gt;         &gt;         page_size =&gt; 20,<br>
&gt;         &gt;         order_methods =&gt; {<br>
&gt;         &gt;                 &quot;byyear&quot;         =&gt;<br>
&gt;         &gt; &quot;-date/creators_name/title&quot;,<br>
&gt;         &gt;                 &quot;byyearoldest&quot;   =&gt;<br>
&gt;         &gt; &quot;date/creators_name/title&quot;,<br>
&gt;         &gt;                 &quot;byname&quot;         =&gt;<br>
&gt;         &gt; &quot;creators_name/-date/title&quot;,<br>
&gt;         &gt;                 &quot;bytitle&quot;        =&gt;<br>
&gt;         &gt; &quot;title/creators_name/-date&quot;<br>
&gt;         &gt;         },<br>
&gt;         &gt;         default_order =&gt; &quot;byyear&quot;,<br>
&gt;         &gt;         show_zero_results =&gt; 1,<br>
&gt;         &gt;         staff =&gt; 1,<br>
&gt;         &gt; };<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt; On Mon, Apr 3, 2017 at 10:44 AM, David R Newman<br>
&gt;         &gt; &lt;<a href="mailto:drn@ecs.soton.ac.uk">drn@ecs.soton.ac.uk</a>&gt; wrote:<br>
&gt;         &gt;         Hi Mitocariu Emilian,<br>
&gt;         &gt;<br>
&gt;         &gt;         The way that the admin search for EPrints, (i.e. the<br>
&gt;         &gt;         one linked of &quot;Search Items&quot; on the admin page),<br>
&gt;         &gt;         changes somewhat between earlier and the latest<br>
&gt;         &gt;         versions of EPrints 3.3.  The easiest way for me or<br>
&gt;         &gt;         others to advise would be if you could post a copy<br>
&gt;         &gt;         of /usr/share/eprints3/lib/cfg.d/<a href="http://eprint_search_staff.pl" rel="noreferrer" target="_blank"><wbr>eprint_search_staff.pl</a>.<br>
&gt;         &gt;<br>
&gt;         &gt;         Regards<br>
&gt;         &gt;<br>
&gt;         &gt;         David Newman<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;         On 03/04/2017 08:04, Mitocariu Emilian wrote:<br>
&gt;         &gt;<br>
&gt;         &gt;         &gt; Hello,<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; I&#39;m trying to migrate the data from an old eprints<br>
&gt;         &gt;         &gt; server (ubuntu 10.04, eprints 3.3.7) to a new one<br>
&gt;         &gt;         &gt; (ubuntu 16.04, eprints 3.3.15). Maybe worth<br>
&gt;         &gt;         &gt; mentioning i had some problems when trying to<br>
&gt;         &gt;         &gt; install eprints and i used the steps from here<br>
&gt;         &gt;         &gt; <a href="http://www.eprints.org/tech.php/22140/attachment/message.html" rel="noreferrer" target="_blank">http://www.eprints.org/tech.<wbr>php/22140/attachment/message.<wbr>html</a> to successfully install it.<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; I moved the repository to the new server, but when<br>
&gt;         &gt;         &gt; i use the import script on the XML I exported from<br>
&gt;         &gt;         &gt; the old server, i get this error:<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; eprints@myserver:~/bin$ ./import library --verbose<br>
&gt;         &gt;         &gt; --migration archive XML library.xml<br>
&gt;         &gt;         &gt; \C is deprecated in regex; marked by &lt;-- HERE in<br>
&gt;         &gt;         &gt; m/(\C &lt;-- HERE )/<br>
&gt;         &gt;         &gt; at /usr/share/eprints3/bin/../<wbr>perl_lib/URI/Escape.pm line 205.<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; ------------------------------<wbr>------------------------------<wbr>------<br>
&gt;         &gt;         &gt; ---------------- EPrints System Error<br>
&gt;         &gt;         &gt; ----------------------------<br>
&gt;         &gt;         &gt; ------------------------------<wbr>------------------------------<wbr>------<br>
&gt;         &gt;         &gt; Error in configuration:<br>
&gt;         &gt;         &gt; Can&#39;t use an undefined value as an ARRAY reference<br>
&gt;         &gt;         &gt; at /usr/share/eprints3/lib/cfg.d/<a href="http://eprint_search_staff.pl" rel="noreferrer" target="_blank"><wbr>eprint_search_staff.pl</a> line 16.<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; ------------------------------<wbr>------------------------------<wbr>------<br>
&gt;         &gt;         &gt; EPrints System Error inducing stack dump<br>
&gt;         &gt;         &gt;  at /usr/share/eprints3/bin/../<wbr>perl_lib/EPrints.pm<br>
&gt;         &gt;         &gt; line 147.<br>
&gt;         &gt;         &gt; EPrints::abort(&quot;EPrints&quot;) called<br>
&gt;         &gt;         &gt; at /usr/share/eprints3/bin/../<wbr>perl_lib/EPrints/Config.pm line 281<br>
&gt;         &gt;         &gt; EPrints::Config::load_<wbr>repository_config_module(&quot;<wbr>library&quot;) called at /usr/share/eprints3/bin/../<wbr>perl_lib/EPrints/Repository.pm line 510<br>
&gt;         &gt;         &gt; EPrints::Repository::load_<wbr>config(EPrints::Repository=<wbr>HASH(0x8d06c0)) called at /usr/share/eprints3/bin/../<wbr>perl_lib/EPrints/Repository.pm line 153<br>
&gt;         &gt;         &gt; EPrints::Repository::new(&quot;<wbr>EPrints::Repository&quot;,<br>
&gt;         &gt;         &gt; &quot;library&quot;, &quot;cgi&quot;, 0, &quot;noise&quot;, 2) called<br>
&gt;         &gt;         &gt; at /usr/share/eprints3/bin/../<wbr>perl_lib/EPrints.pm<br>
&gt;         &gt;         &gt; line 555<br>
&gt;         &gt;         &gt; EPrints::repository(EPrints=<wbr>HASH(0x8d0498),<br>
&gt;         &gt;         &gt; &quot;library&quot;, &quot;noise&quot;, 2, &quot;cgi&quot;, 0) called<br>
&gt;         &gt;         &gt; at /usr/share/eprints3/bin/../<wbr>perl_lib/EPrints/<wbr>BackCompatibility.pm line 447<br>
&gt;         &gt;         &gt; EPrints::Session::new(&quot;<wbr>EPrints::Session&quot;, 1,<br>
&gt;         &gt;         &gt; &quot;library&quot;, 2) called at ./import line 208<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; I also tried the method on your wiki<br>
&gt;         &gt;         &gt; (<a href="https://wiki.eprints.org/w/Moving_a_repository" rel="noreferrer" target="_blank">https://wiki.eprints.org/w/<wbr>Moving_a_repository</a>)<br>
&gt;         &gt;         &gt; with the mysqldump but when i do &quot;./bin/epadmin<br>
&gt;         &gt;         &gt; upgrade library&quot; i get the same error.<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; If you have any idea what the problem might be i<br>
&gt;         &gt;         &gt; would be very glad.<br>
&gt;         &gt;         &gt; Thank you.<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; *** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.<wbr>uk/mailman/listinfo/eprints-<wbr>tech</a><br>
&gt;         &gt;         &gt; *** Archive: <a href="http://www.eprints.org/tech.php/" rel="noreferrer" target="_blank">http://www.eprints.org/tech.<wbr>php/</a><br>
&gt;         &gt;         &gt; *** EPrints community wiki: <a href="http://wiki.eprints.org/" rel="noreferrer" target="_blank">http://wiki.eprints.org/</a><br>
&gt;         &gt;         &gt; *** EPrints developers Forum: <a href="http://forum.eprints.org/" rel="noreferrer" target="_blank">http://forum.eprints.org/</a><br>
&gt;         &gt;         *** Options:<br>
&gt;         &gt;         <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.<wbr>uk/mailman/listinfo/eprints-<wbr>tech</a> *** Archive: <a href="http://www.eprints.org/tech.php/" rel="noreferrer" target="_blank">http://www.eprints.org/tech.<wbr>php/</a> *** EPrints community wiki: <a href="http://wiki.eprints.org/" rel="noreferrer" target="_blank">http://wiki.eprints.org/</a> *** EPrints developers Forum: <a href="http://forum.eprints.org/" rel="noreferrer" target="_blank">http://forum.eprints.org/</a><br>
&gt;         &gt; *** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.<wbr>uk/mailman/listinfo/eprints-<wbr>tech</a><br>
&gt;         &gt; *** Archive: <a href="http://www.eprints.org/tech.php/" rel="noreferrer" target="_blank">http://www.eprints.org/tech.<wbr>php/</a><br>
&gt;         &gt; *** EPrints community wiki: <a href="http://wiki.eprints.org/" rel="noreferrer" target="_blank">http://wiki.eprints.org/</a><br>
&gt;         &gt; *** EPrints developers Forum: <a href="http://forum.eprints.org/" rel="noreferrer" target="_blank">http://forum.eprints.org/</a><br>
&gt;<br>
&gt;         *** Options:<br>
&gt;         <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.<wbr>uk/mailman/listinfo/eprints-<wbr>tech</a><br>
&gt;         *** Archive: <a href="http://www.eprints.org/tech.php/" rel="noreferrer" target="_blank">http://www.eprints.org/tech.<wbr>php/</a><br>
&gt;         *** EPrints community wiki: <a href="http://wiki.eprints.org/" rel="noreferrer" target="_blank">http://wiki.eprints.org/</a><br>
&gt;         *** EPrints developers Forum: <a href="http://forum.eprints.org/" rel="noreferrer" target="_blank">http://forum.eprints.org/</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; *** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.<wbr>uk/mailman/listinfo/eprints-<wbr>tech</a><br>
&gt; *** Archive: <a href="http://www.eprints.org/tech.php/" rel="noreferrer" target="_blank">http://www.eprints.org/tech.<wbr>php/</a><br>
&gt; *** EPrints community wiki: <a href="http://wiki.eprints.org/" rel="noreferrer" target="_blank">http://wiki.eprints.org/</a><br>
&gt; *** EPrints developers Forum: <a href="http://forum.eprints.org/" rel="noreferrer" target="_blank">http://forum.eprints.org/</a><br>
<br>
<br>
*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.<wbr>uk/mailman/listinfo/eprints-<wbr>tech</a><br>
*** Archive: <a href="http://www.eprints.org/tech.php/" rel="noreferrer" target="_blank">http://www.eprints.org/tech.<wbr>php/</a><br>
*** EPrints community wiki: <a href="http://wiki.eprints.org/" rel="noreferrer" target="_blank">http://wiki.eprints.org/</a><br>
*** EPrints developers Forum: <a href="http://forum.eprints.org/" rel="noreferrer" target="_blank">http://forum.eprints.org/</a><br>
</div></div></blockquote></div><br></div>