EPrints Technical Mailing List Archive

Message: #06182


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

Re: [EP-tech] Random error help...


I think you can do something to check whether something can be called before trying to call it:

 

if ( $repo->can_call( "configured_function" ) )

 

Lizz

 

--

Lizz Jennings BA MSc ACLIP MCLIP (Revalidated 2015)

Research Data Librarian (Systems)

The Library 4.10, University of Bath, Bath, BA2 7AY UK

Ext. 3570 (External 01225 383570)

E.Jennings@bath.ac.uk

Research Data Management: http://www.bath.ac.uk/research/data

 

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Alan.Stiles
Sent: 19 January 2017 15:30
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Random error help...

 

Thanks John – completely down to code in cfg.d with my big mitts all over it!

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of John Salter
Sent: 19 January 2017 15:18
To:
eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] Random error help...

 

Nothing in with the main error log, or a vhost specific one?

 

I'd start with this:

>grep -r -n 'call' archives/ARCHIVEID/cfg lib perl_lib | grep 7

 

Which will show you any occurences of 'call' on line 7 of a file - it may be crude, but it might help!

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Alan.Stiles
Sent: 19 January 2017 15:03
To:
eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Random error help...

 

So, editing a user profile (on new dev server 3.3.15) and when I try to go to next or previous stage or save the page I get a message

 

Can't call method "call" on an undefined value at (eval 213) line 7

 

There’s nothing in the apache error log – any clues where I should look?

 

Cheers,

Alan

-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority.