EPrints Technical Mailing List Archive

Message: #05208

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

[EP-tech] Re: EPrints breaks when a deposit is retired

Hi George,
Somewhere in the config if your repository (~/archives/ARCHIVEID/cfg/...) there will be a reference to 'replacedby'.

There used to be two fields that EPrints used to 'thread' eprints together* - 'succeeds' and 'replacedby'.
This was changed at some point, and just the 'succeeds' field is used now.

When you can find the reference to 'replacedby', try and work out what it's trying to do (we can help :o).
It may just be a case of taking out that block of code - if EPrints 3.3.14 is handling the threads OK with the 'succeeds' field.


* see e.g. http://bazaar.eprints.org/278/ - and the 'other versions' at the bottom of the page.

-----Original Message-----
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of George Mamalakis
Sent: 02 December 2015 09:51
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] EPrints breaks when a deposit is retired

Hello everybody,

As mentioned in the subject of this email, in EPrints 3.3.14 I tried to 
retire a deposit (without knowing what it exactly does) and after 
pressing the retire button from the action's menu, I got the error:

EPrints System Error

Attempt to get value from not existent field: eprint/replacedby

Looking the apache's error log, I saw:

---------------- EPrints System Error ----------------------------
Attempt to get value from not existent field: eprint/replacedby
  at /usr/share/eprints3/perl_lib/EPrints/DataObj.pm line 702.
"replacedby") called at 
/usr/share/eprints3/lib/plugins/EPrints/Plugin/Collection.pm line 113
1) called at:
  /usr/share/eprints3/perl_lib/EPrints/DataObj/EPrint.pm line 1499
called at 
/usr/share/eprints3/perl_lib/EPrints/Plugin/Screen/EPrint/Summary.pm line 40
"ep_eprint_view_0") called at 
/usr/share/eprints3/perl_lib/EPrints/Plugin/Screen/EPrint/View.pm line 188
called at /usr/share/eprints3/perl_lib/EPrints/ScreenProcessor.pm line 377
EPrints::ScreenProcessor::process("EPrints::ScreenProcessor", "session", 
EPrints::Repository=HASH(0x7fc93233e098), "template", undef, "url", 
"/cgi/users/home") called at /usr/share/eprints3/cgi/users/home line 25
called at /usr/lib/x86_64-linux-gnu/perl5/5.20/ModPerl/RegistryCooker.pm 
line 207
          eval {...} called at 
/usr/lib/x86_64-linux-gnu/perl5/5.20/ModPerl/RegistryCooker.pm line 207
called at /usr/lib/x86_64-linux-gnu/perl5/5.20/ModPerl/RegistryCooker.pm 
line 173
called at /usr/lib/x86_64-linux-gnu/perl5/5.20/ModPerl/Registry.pm line 32
Apache2::RequestRec=SCALAR(0x7fc931f7d1c0)) called at -e line 0
         eval {...} called at -e line 0
[Wed Dec 02 10:55:58.336760 2015] [:error] [pid 21450] EPrints::abort()\n

In this state, from the web interface I am not able to delete it (delete 
is not found in the available options), so I have to remove the item 
using a script.

It doesn't seem to be a problem with my installation, and it's easy to 
reproduce, so I assume it should be reported to eprints-github once it 
is confirmed by someone else as well.

Thanks all in advance,


George Mamalakis

IT and Security Officer,
Electrical and Computer Engineer (Aristotle Univ. of Thessaloniki),
PhD (Aristotle Univ. of Thessaloniki),
MSc (Imperial College of London)

School of Electrical and Computer Engineering
Aristotle University of Thessaloniki

phone number : +30 (2310) 994379

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/