This question about Configuration: Answered
Question2134
Two noticable problems with our
FosWiki installation (most probably
after I added
ImagePlugin recently)
- Unable to edit any topic, its like editor plugin is not there
- When I open the bin/configure URL, the message I get is: *Warning* Foswiki is running in 'bootstrap' mode, which means that there is no existing configuration (LocalSite.cfg is missing or is unreadable).
Localsite.cfg is NOT missing, and it has proper ownership and settings. I then check error_log of httpd, these are the bunch of lines:
Use of uninitialized value in concatenation (.) or string at /var/www/html/InoFoswiki/lib/Foswiki/Plugins/UpdatesPlugin/Core.pm line 357.
| 2022-11-18T12:04:02+05:30 error | Foswiki::Plugins::ImagePlugin could not be loaded. Errors were:
Attempt to reload Foswiki/Plugins/ImagePlugin.pm aborted.
Compilation failed in require at (eval 375) line 2.
at (eval 375) line 2.
Foswiki::Plugin::BEGIN() called at (eval 375) line 2
eval {...} called at (eval 375) line 2
eval 'use Foswiki::Plugins::ImagePlugin
;' called at /var/www/html/InoFoswiki/lib/Foswiki/Plugin.pm line 106
Foswiki::Plugin::new('Foswiki::Plugin', 'Foswiki=HASH(0x55badf73c3b0)', 'ImagePlugin') called at /var/www/html/InoFoswiki/lib/Foswiki/Plugins.pm line 195
Foswiki::Plugins::preload('Foswiki::Plugins=HASH(0x55badf69a950)') called at /var/www/html/InoFoswiki/lib/Foswiki/Plugins.pm line 81
Foswiki::Plugins::new('Foswiki::Plugins', 'Foswiki=HASH(0x55badf73c3b0)') called at /var/www/html/InoFoswiki/lib/Foswiki.pm line 2105
Foswiki::new('Foswiki', undef, 'Foswiki::Request=HASH(0x55badf30ba58)', 'HASH(0x55bade994c48)') called at /var/www/html/InoFoswiki/lib/Foswiki/UI.pm line 363
Foswiki::UI::__ANON__() called at /usr/share/perl5/vendor_perl/Error.pm line 419
eval {...} called at /usr/share/perl5/vendor_perl/Error.pm line 411
Error::subs::try('CODE(0x55badd9bca30)', 'HASH(0x55baded8cef0)') called at /var/www/html/InoFoswiki/lib/Foswiki/UI.pm line 500
Foswiki::UI::_execute('Foswiki::Request=HASH(0x55badf30ba58)', 'CODE(0x55badf2380d8)') called at /var/www/html/InoFoswiki/lib/Foswiki/UI.pm line 326
Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x55badf30ba58)') called at /var/www/html/InoFoswiki/lib/Foswiki/Engine/Apache.pm line 91
Foswiki::Engine::Apache::run('Apache2::RequestRec=SCALAR(0x55badd97a5e0)') called at (eval 375) line 2
eval {...} called at (eval 375) line 2
BEGIN failed--compilation aborted at (eval 375) line 2.
at (eval 375) line 2.
eval 'use Foswiki::Plugins::ImagePlugin
;' called at /var/www/html/InoFoswiki/lib/Foswiki/Plugin.pm line 106
Foswiki::Plugin::new('Foswiki::Plugin', 'Foswiki=HASH(0x55badf73c3b0)', 'ImagePlugin') called at /var/www/html/InoFoswiki/lib/Foswiki/Plugins.pm line 195
Foswiki::Plugins::preload('Foswiki::Plugins=HASH(0x55badf69a950)') called at /var/www/html/InoFoswiki/lib/Foswiki/Plugins.pm line 81
Foswiki::Plugins::new('Foswiki::Plugins', 'Foswiki=HASH(0x55badf73c3b0)') called at /var/www/html/InoFoswiki/lib/Foswiki.pm line 2105
Foswiki::new('Foswiki', undef, 'Foswiki::Request=HASH(0x55badf30ba58)', 'HASH(0x55bade994c48)') called at /var/www/html/InoFoswiki/lib/Foswiki/UI.pm line 363
Foswiki::UI::__ANON__() called at /usr/share/perl5/vendor_perl/Error.pm line 419
eval {...} called at /usr/share/perl5/vendor_perl/Error.pm line 411
Error::subs::try('CODE(0x55badd9bca30)', 'HASH(0x55baded8cef0)') called at /var/www/html/InoFoswiki/lib/Foswiki/UI.pm line 500
Foswiki::UI::_execute('Foswiki::Request=HASH(0x55badf30ba58)', 'CODE(0x55badf2380d8)') called at /var/www/html/InoFoswiki/lib/Foswiki/UI.pm line 326
Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x55badf30ba58)') called at /var/www/html/InoFoswiki/lib/Foswiki/Engine/Apache.pm line 91
Foswiki::Engine::Apache::run('Apache2::RequestRec=SCALAR(0x55badd97a5e0)') called at (eval 375) line 2
eval {...} called at (eval 375) line 2
---- |
ERROR: can't load plugin for observer
ERROR: can't load plugin for browser
I then disable
ImagePlugin by editing
LocalSite.cfg and setting
ImagePlugin }{Enabled} = 0;
Now, the two issues listed at the top still persist. And the
lines in httpd error_log are
Argument "" isn't numeric in numeric ne (=) at /var/www/html/InoFoswiki/lib/Foswiki/Macros/QUERY.pm line 36.
ERROR: can't load plugin for observer
ERROR: can't load plugin for browser
Requesting for help get our site back to normal!
--
NagarajP - 18 Nov 2022
Try
cd <foswiki-dir>; ./tools/configure -save
And then visit
configure
again.
--
MichaelDaum - 18 Nov 2022
Hi Michael,
thank you! but that suggestion did not work. I got same errors. I resorted to saving my data and installing afresh the latest version with my data.
--
NagarajP - 23 Nov 2022
I got the same errors with 2.1.7
ERROR: can't load plugin for observer
ERROR: can't load plugin for browser
The command fixed my problems.
cd <foswiki-dir>;./tools/configure -save
--
ShipingZhang - 28 Nov 202