<div dir="ltr"><div>First time I named the file "<a href="http://eprints_search_advanced.pl">eprints_search_advanced.pl</a>" and it didn't work, but renamed it to "<a href="http://eprint_search_advanced.pl">eprint_search_advanced.pl</a>" 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"><<a href="mailto:drn@ecs.soton.ac.uk" target="_blank">drn@ecs.soton.ac.uk</a>></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'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>
> Hi again,<br>
><br>
> I created the file <a href="http://eprints_search_advanced.pl" rel="noreferrer" target="_blank">eprints_search_advanced.pl</a>, tried<br>
> in /usr/share/eprints3/lib/cfg.d/<br>
> and /usr/share/eprints3/archives/<wbr>ARCHIVE_NAME/cfg/cfg.d/ directories,<br>
> I set the ownership and permissions as the other files in the<br>
> directory, but same error when running the import script.<br>
><br>
><br>
> On Mon, Apr 3, 2017 at 11:06 AM, David R Newman <<a href="mailto:drn@ecs.soton.ac.uk">drn@ecs.soton.ac.uk</a>><br>
> wrote:<br>
> Hi<br>
><br>
> It looks like you do not have any advanced search fields set.<br>
> 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>
> the same directory or in your archive's cfg.d. directory<br>
> (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>
><br>
> Regards<br>
><br>
> David Newman<br>
><br>
> $c->{search}->{advanced} =<br>
> {<br>
> search_fields => [<br>
> { meta_fields => [ "documents" ] },<br>
> { meta_fields => [ "title" ] },<br>
> { meta_fields => [ "creators_name" ] },<br>
> { meta_fields => [ "abstract" ] },<br>
> { meta_fields => [ "date" ] },<br>
> { meta_fields => [ "keywords" ] },<br>
> { meta_fields => [ "subjects" ] },<br>
> { meta_fields => [ "type" ] },<br>
> { meta_fields => [ "department" ] },<br>
> { meta_fields => [ "editors_name" ] },<br>
> { meta_fields => [ "ispublished" ] },<br>
> { meta_fields => [ "refereed" ] },<br>
> { meta_fields => [ "publication" ] },<br>
> { meta_fields => [ "documents.format" ] },<br>
> ],<br>
> preamble_phrase => "cgi/advsearch:preamble",<br>
> title_phrase => "cgi/advsearch:adv_search",<br>
> citation => "result",<br>
> page_size => 20,<br>
> order_methods => {<br>
> "byyear" =><br>
> "-date/creators_name/title",<br>
> "byyearoldest" =><br>
> "date/creators_name/title",<br>
> "byname" =><br>
> "creators_name/-date/title",<br>
> "bytitle" =><br>
> "title/creators_name/-date"<br>
> },<br>
> default_order => "byyear",<br>
> show_zero_results => 1,<br>
> };<br>
><br>
><br>
><br>
> On 03/04/2017 08:52, Mitocariu Emilian wrote:<br>
><br>
> > Hi,<br>
> ><br>
> ><br>
> > This is the content of<br>
> > 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>
> ><br>
> > # Any changes made here will be lost!<br>
> > #<br>
> > # Copy this file to:<br>
> > # archives/[archiveid]/cfg/cfg.<wbr>d/<br>
> > #<br>
> > # And then make any changes.<br>
> ><br>
> > $c->{datasets}->{eprint}->{<wbr>search}->{staff} =<br>
> > {<br>
> > search_fields => [<br>
> > { meta_fields => [qw( eprintid )] },<br>
> > { meta_fields => [qw( userid.username )] },<br>
> > { meta_fields => [qw( <a href="http://userid.name" rel="noreferrer" target="_blank">userid.name</a> )] },<br>
> > { meta_fields => [qw( eprint_status )],<br>
> > default=>"archive buffer" },<br>
> > { meta_fields => [qw( dir )] },<br>
> > @{$c->{search}{advanced}{<wbr>search_fields}},<br>
> > ],<br>
> > preamble_phrase =><br>
> > "Plugin/Screen/Staff/<wbr>EPrintSearch:description",<br>
> > title_phrase =><br>
> > "Plugin/Screen/Staff/<wbr>EPrintSearch:title",<br>
> > citation => "result",<br>
> > page_size => 20,<br>
> > order_methods => {<br>
> > "byyear" =><br>
> > "-date/creators_name/title",<br>
> > "byyearoldest" =><br>
> > "date/creators_name/title",<br>
> > "byname" =><br>
> > "creators_name/-date/title",<br>
> > "bytitle" =><br>
> > "title/creators_name/-date"<br>
> > },<br>
> > default_order => "byyear",<br>
> > show_zero_results => 1,<br>
> > staff => 1,<br>
> > };<br>
> ><br>
> ><br>
> > On Mon, Apr 3, 2017 at 10:44 AM, David R Newman<br>
> > <<a href="mailto:drn@ecs.soton.ac.uk">drn@ecs.soton.ac.uk</a>> wrote:<br>
> > Hi Mitocariu Emilian,<br>
> ><br>
> > The way that the admin search for EPrints, (i.e. the<br>
> > one linked of "Search Items" on the admin page),<br>
> > changes somewhat between earlier and the latest<br>
> > versions of EPrints 3.3. The easiest way for me or<br>
> > others to advise would be if you could post a copy<br>
> > 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>
> ><br>
> > Regards<br>
> ><br>
> > David Newman<br>
> ><br>
> ><br>
> ><br>
> ><br>
> > On 03/04/2017 08:04, Mitocariu Emilian wrote:<br>
> ><br>
> > > Hello,<br>
> > ><br>
> > ><br>
> > > I'm trying to migrate the data from an old eprints<br>
> > > server (ubuntu 10.04, eprints 3.3.7) to a new one<br>
> > > (ubuntu 16.04, eprints 3.3.15). Maybe worth<br>
> > > mentioning i had some problems when trying to<br>
> > > install eprints and i used the steps from here<br>
> > > <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>
> > ><br>
> > ><br>
> > > I moved the repository to the new server, but when<br>
> > > i use the import script on the XML I exported from<br>
> > > the old server, i get this error:<br>
> > ><br>
> > > eprints@myserver:~/bin$ ./import library --verbose<br>
> > > --migration archive XML library.xml<br>
> > > \C is deprecated in regex; marked by <-- HERE in<br>
> > > m/(\C <-- HERE )/<br>
> > > at /usr/share/eprints3/bin/../<wbr>perl_lib/URI/Escape.pm line 205.<br>
> > ><br>
> > ><br>
> > > ------------------------------<wbr>------------------------------<wbr>------<br>
> > > ---------------- EPrints System Error<br>
> > > ----------------------------<br>
> > > ------------------------------<wbr>------------------------------<wbr>------<br>
> > > Error in configuration:<br>
> > > Can'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>
> > ><br>
> > ><br>
> > ><br>
> > > ------------------------------<wbr>------------------------------<wbr>------<br>
> > > EPrints System Error inducing stack dump<br>
> > > at /usr/share/eprints3/bin/../<wbr>perl_lib/EPrints.pm<br>
> > > line 147.<br>
> > > EPrints::abort("EPrints") called<br>
> > > at /usr/share/eprints3/bin/../<wbr>perl_lib/EPrints/Config.pm line 281<br>
> > > EPrints::Config::load_<wbr>repository_config_module("<wbr>library") called at /usr/share/eprints3/bin/../<wbr>perl_lib/EPrints/Repository.pm line 510<br>
> > > 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>
> > > EPrints::Repository::new("<wbr>EPrints::Repository",<br>
> > > "library", "cgi", 0, "noise", 2) called<br>
> > > at /usr/share/eprints3/bin/../<wbr>perl_lib/EPrints.pm<br>
> > > line 555<br>
> > > EPrints::repository(EPrints=<wbr>HASH(0x8d0498),<br>
> > > "library", "noise", 2, "cgi", 0) called<br>
> > > at /usr/share/eprints3/bin/../<wbr>perl_lib/EPrints/<wbr>BackCompatibility.pm line 447<br>
> > > EPrints::Session::new("<wbr>EPrints::Session", 1,<br>
> > > "library", 2) called at ./import line 208<br>
> > ><br>
> > ><br>
> > > I also tried the method on your wiki<br>
> > > (<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>
> > > with the mysqldump but when i do "./bin/epadmin<br>
> > > upgrade library" i get the same error.<br>
> > ><br>
> > ><br>
> > ><br>
> > > If you have any idea what the problem might be i<br>
> > > would be very glad.<br>
> > > Thank you.<br>
> > ><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>
> > *** Options:<br>
> > <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>
> > *** 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>
><br>
> *** Options:<br>
> <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>
><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>
<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>