EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #10401
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] EPrints 3.4.7 - Repository fails to initialize: "Can't use an undefined value as an ARRAY reference" at Language.pm line 104
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] EPrints 3.4.7 - Repository fails to initialize: "Can't use an undefined value as an ARRAY reference" at Language.pm line 104
- From: Herbert Hrachovec <herbert.hrachovec@univie.ac.at>
- Date: Thu, 06 Aug 2026 13:32:10 +0200
CAUTION: This e-mail originated outside the University of Southampton.
Dear EPrints-Team,
I'm setting up EPrints 3.4.7 on Ubuntu 24.04. The static pages load, but
any CGI script or Perl command that tries to initialize a repository
fails with:
"Can't use an undefined value as an ARRAY reference at
/opt/eprints3/perl_lib/EPrints/Language.pm line 104."
What I've tried:
Created a fresh test repository (epadmin create testrepo) - same
error
Verified /opt/eprints3/flavours/pub_lib/ exists
Added $c->{flavours} configuration to both 00_flavour.pl and
10_core.pl
Copied language files from a working installation
Confirmed permissions are correct (eprints:eprints)
What works:
The static HTML pages load fine
epadmin test sammelpunkt --verbose passes
Apache serves the static content
What doesn't work:
perl -I/opt/eprints3/perl_lib -e 'use EPrints; my $repo =
EPrints::Repository->new( id => "testrepro" );' fails with the same
error
All CGI scripts return 500 Internal Server Error
The error seems to be in the Language module:
At line 104 of Language.pm, it tries to access @{
$repository->get_conf("flavours")->{$flavour} } but
$repository->get_conf("flavours") is returning undef.
Questions:
Is there a global configuration file that defines flavours that I'm
missing?
Could the flavours configuration be loaded from a different location
than /opt/eprints3/flavours/?
Is there a known issue with EPrints 3.4.7 on Ubuntu 24.04?
Thank you for your help!
h.h.
- Follow-Ups:
- Re: [EP-tech] EPrints 3.4.7 - Repository fails to initialize: "Can't use an undefined value as an ARRAY reference" at Language.pm line 104
- From: David R Newman <drn@ecs.soton.ac.uk>
- Re: [EP-tech] EPrints 3.4.7 - Repository fails to initialize: "Can't use an undefined value as an ARRAY reference" at Language.pm line 104
- Prev by Date: Re: [EP-tech] anubis with eprints
- Next by Date: Re: [EP-tech] EPrints 3.4.7 - Repository fails to initialize: "Can't use an undefined value as an ARRAY reference" at Language.pm line 104
- Previous by thread: [EP-tech] anubis with eprints
- Next by thread: Re: [EP-tech] EPrints 3.4.7 - Repository fails to initialize: "Can't use an undefined value as an ARRAY reference" at Language.pm line 104
- Index(es):
