I use this guide to install Foswiki from master github repository using Nginx as Webserver.
cd /<foswiki-dir>/tools
./solrindex topic=Main.WebHome
No topic is created and these errors appears
Not a HASH reference at /var/www/fw-prod/core/lib/Foswiki/Engine/CLI.pm line 113. Undefined subroutine &Foswiki::encode_utf8 called at /var/www/fw-prod/core/lib/Foswiki/Response.pm line 431. BEGIN failed--compilation aborted at /var/www/fw-prod/core/lib/Foswiki.pm line 646. Compilation failed in require at ./solrindex line 30. BEGIN failed--compilation aborted at ./solrindex line 30. Can't call method "finalize" on an undefined value at /var/www/fw-prod/core/lib/Foswiki/Engine/Legacy.pm line 72. END failed--call queue aborted at ./solrindex line 30.
Can you help me please?
The posted error message refers to
That part of the code varies considerably between versions. In 2.1.2 it is
And in 2.0.3 it is
Neither makes sense of the message. So can you tell me what Foswiki version you are running?
The message:
seems to suggest something wrong in the environment. Foswiki::encode_utf8 is defined in Foswiki.pm. Either you have an old version, or the code does not find Foswiki.pm. Strange, since it did find Foswiki.pm but did not compile, according to:
Anyway, for debugging in and Apache/Foswiki configuration I use (from my makefile):
before executing the command line. Maybe that will help.
In your response, can you please refer to the versions of software you are using? It helps understanding the error messages.