[Koha] additional-contents.pl?category=news returns http error 500

Eric Lease Morgan eric_morgan at infomotions.com
Tue Jan 13 14:59:57 NZDT 2026



How do I resolve the following two errors when additional-contents.pl?category=news is called:

  Use of uninitialized value $interface in concatenation (.) or
  string at /usr/share/koha/lib/C4/Languages.pm line 122.
  
  Use of uninitialized value $theme in concatenation (.) or
  string at /usr/share/koha/lib/C4/Languages.pm line 122.

A long time ago I submitted the wrong CLI command at the wrong time, and I believe I blew away many of Koha's preferences. Since then I have been able to re-create a new super librarian, and thus I have regained access to the administrative backend. Whew!

Now I want to use the Tools functions to create news. Apparently the command to do this is:

  <address>/cgi-bin/koha/tools/additional-contents.pl?category=news

Unfortunately, when submitted, the adminstrative interface returns HTTP error 500, and the error log includes the following two diagnostics:

  Use of uninitialized value $interface in concatenation (.) or
  string at /usr/share/koha/lib/C4/Languages.pm line 122.
  
  Use of uninitialized value $theme in concatenation (.) or
  string at /usr/share/koha/lib/C4/Languages.pm line 122.

Languages.pm seems to be called from additional-contents.pl and the error seems to stem from the getTranslatedLanguages method. 

Where do the values for $interface and $theme get initialized? Maybe something in my database needs to be reset? I'm stumped, and any help would be appreciated. 

--
Eric Morgan
Infomotions, LLC



More information about the Koha mailing list