EPrints Technical Mailing List Archive

Message: #04123


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

[EP-tech] Antwort: Re: Errors when requesting /id/eprint/$eprintid after 3.3.13 update


This bug also seems to affect saved searches (which, in our case, are important to create publication lists on the Web).

E.g. http://www.yourrepo/id/saved_search/{savedsearchid}

results in an Internal server error and the same message in the error log.


Best regards,

Martin

--
Dr. Martin Brändle
Zentrale Informatik
Universität Zürich
Winterthurerstr. 190
CH-8057 Zürich

mail: martin.braendle@id.uzh.ch
phone: +41 44 63 56705
fax: +41 44 63 54505
http://www.id.uzh.ch

Inactive hide details for Gunnar Wolf ---17/02/2015 18:55:04---Lizz Jennings dijo [Tue, Feb 17, 2015 at 05:29:03PM +0000]: > NoGunnar Wolf ---17/02/2015 18:55:04---Lizz Jennings dijo [Tue, Feb 17, 2015 at 05:29:03PM +0000]: > No, it's not just you - I just found a

Von: Gunnar Wolf <gwolf@gwolf.org>
An: eprints-tech@ecs.soton.ac.uk
Datum: 17/02/2015 18:55
Betreff: [EP-tech] Re: Errors when requesting /id/eprint/$eprintid after 3.3.13 update
Gesendet von: eprints-tech-bounces@ecs.soton.ac.uk





Lizz Jennings dijo [Tue, Feb 17, 2015 at 05:29:03PM +0000]:
> No, it's not just you - I just found and solved the same error about half an hour ago!
>
> If you replace the line 897 with
>
> if( $self->scope == CRUD_SCOPE_DATAOBJ || $self->scope == CRUD_SCOPE_USER_CONTENTS )
>
> that fixed it for me.

Right. In my case, I decided to add a check instead of removing it
(even if it almost always becomes a null check), and I have:

    if( ( $self->scope == CRUD_SCOPE_DATAOBJ && $self->{database} && $self->{database}->base_id ne "subject" ) || $self->scope == CRUD_SCOPE_USER_CONTENTS )
*** 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/