[index] [prev] [next] [options] [help]

eprints_tech messages

Re: [EP-tech] use of uninitialized value in string eq during eprint->commit

From: David R Newman via Eprints-tech <eprints-tech AT ecs.soton.ac.uk>
Date: Fri, 10 Jul 2020 23:13:08 +0100


Threading:      • This Message
             Re: [EP-tech] use of uninitialized value in string eq during eprint->commit from eprints-tech AT ecs.soton.ac.uk


Hi Tomasz,

I have do deal with these sorts of issues quite a lot.  As you probably 
won't be surprised to hear, I do not know of the top of my head what is 
causing this issue.  However, what typical I do is grep over the 
archive's cfg and possibly bin directories to see if I can spot any code 
that may relate to this error.  Using the following command you will 
find any code that could lead to that error on line 379:

grep -rn " eq " EPRINTS_PATH/archives/ARCHIVE_NAME/cfg/ 
EPRINTS_PATH/archives/ARCHIVE_NAME/bin/  | grep ":379:"

If you don't find anything then it may be worth having a look in 
perl_lib, lib, flavours/pub_lib. ingredients, site_lib etc.  The reason 
for the "(eval 173)" is probably due to line 379 calling a 
user-defined 
function (sub).

If you can tell me the specific version of EPrints you are running I can 
probably have a look though the code codebase to give some suggestions.  
There is a good chance that line 379 will be in the core codebase and 
line 173 will be the line in the archive level user-defined function.

Regards

David Newman


On 10/07/2020 23:01, Tomasz Neugebauer via Eprints-tech wrote:
>
> I just finished a CLI script that updates some metadata field values 
> in some items in my repository. Everything is working fine as far as I 
> can tell, values get saved/updated, except that when I run the script, 
> I get this warning every time I do $eprint->commit:
>
> “Use of uninitialized value in string eq at (eval 173) line 379.”
>
> Has anyone seen this before?  It is rather cryptic and I can’t even 
> tell what file it is referring to?
>
> Tomasz
>
>
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: 
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7C%7C9094edf1035c419be5d808d8251e6ff2%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=2aG0MN%2FK3%2FYPHHoAMGlODORNGGwHJfHwUcp7htJGrqw%3D&amp;reserved=0
> *** EPrints community wiki: 
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7C%7C9094edf1035c419be5d808d8251e6ff2%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=LTbJKFB34%2Bl%2FEqu9qNIh1YMj40%2Fn7hdkNPmcNJwpp0E%3D&amp;reserved=0


-- 
This email has been checked for viruses by AVG.
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avg.com%2F&amp;data=01%7C01%7C%7C9094edf1035c419be5d808d8251e6ff2%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=VQMU76RDYLk9P1VWmTlsLEGRFrEi6xHOFretAa9ojRQ%3D&amp;reserved=0

ATTACHMENT: message.html!

*** 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/

[index] [prev] [next] [options] [help]