You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fresh install of ELSA on CentOS 6 using Apache resulted in a non-functioning installation for me. Apache would start and then immediately crash when trying to bring up the web app with the following error.
[Tue Feb 16 11:41:44 2016] [error] Error while loading /usr/local/elsa/web/lib/Web.psgi: Type of arg 1 to shift must be array (not anonymous list ([])) at /usr/local/elsa/web/lib/Query/Sphinx.pm line 1291, near "];"\nCompilation failed in require at /usr/local/elsa/web/lib/QueryParser.pm line 28.\nBEGIN failed--compilation aborted at /usr/local/elsa/web/lib/QueryParser.pm line 28.\nCompilation failed in require at /usr/local/elsa/web/lib/Controller.pm line 34.\nBEGIN failed--compilation aborted at /usr/local/elsa/web/lib/Controller.pm line 34.\nCompilation failed in require at /usr/local/elsa/web/lib/Web.psgi line 10.\nBEGIN failed--compilation aborted at /usr/local/elsa/web/lib/Web.psgi line 10.\nBEGIN failed--compilation aborted at /etc/httpd/conf/elsa_startup.pl line 19.\nCompilation failed in require at (eval 2) line 1.\n
I was able to get things up and running by changing line 1291 in /usr/local/elsa/web/lib/Query/Sphinx.pm from this:
my $key = shift [ keys %{ $ret->{results} } ];
To this:
my $key = shift @{[ keys %{ $ret->{results} } ]};
Seems to be working as expected once this change was made.
The text was updated successfully, but these errors were encountered:
Fresh install of ELSA on CentOS 6 using Apache resulted in a non-functioning installation for me. Apache would start and then immediately crash when trying to bring up the web app with the following error.
I was able to get things up and running by changing line 1291 in /usr/local/elsa/web/lib/Query/Sphinx.pm from this:
my $key = shift [ keys %{ $ret->{results} } ];
To this:
my $key = shift @{[ keys %{ $ret->{results} } ]};
Seems to be working as expected once this change was made.
The text was updated successfully, but these errors were encountered: