3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
254 stars 143 forks source link

[Question]: Error in main configuration on pluginsPath #3072

Closed yamamoto-ryuzo closed 2 years ago

yamamoto-ryuzo commented 2 years ago

What is the question?

Installation question. I asked this question because I don't know how to get 3Liz's paid support. The error is Error 500. A technical error has occured. Error in the main configuration. According to the log, they don't like "Error in main configuration on pluginsPath". The configuration is FcgidInitialEnv QGIS_PLUGINPATH /usr/lib/qgis/plugins" Where should I review this?

(Plugin information) image

Versions

QGIS Desktop 3.22

QGIS server version, only if the section above doesn't mention the QGIS Server version

3.26.0

Operating system

ubuntu

Browsers

Microsoft Edge

Browsers version

latest

Relevant log output

2022-06-21 20:36:24 223.133.253.183 [1024]  Error in main configuration on pluginsPath -- Path given in pluginsPath for the module jacl2db is ignored, since this module is unknown or deactivated  /var/www/lizmap-web-client-3.5.3/lib/jelix/core/jConfigCompiler.class.php   470
    /
array ( )

    0   trigger_error() /var/www/lizmap-web-client-3.5.3/lib/jelix/core/jConfigCompiler.class.php : 470
    1   jConfigCompiler::_loadPluginsPathList() /var/www/lizmap-web-client-3.5.3/lib/jelix/core/jConfigCompiler.class.php : 158
    2   jConfigCompiler::prepareConfig()    /var/www/lizmap-web-client-3.5.3/lib/jelix/core/jConfigCompiler.class.php : 85
    3   jConfigCompiler::read() /var/www/lizmap-web-client-3.5.3/lib/jelix/core/jConfigCompiler.class.php : 103
    4   jConfigCompiler::readAndCache() /var/www/lizmap-web-client-3.5.3/lib/jelix/core/jConfig.class.php : 84
    5   jConfig::load() /var/www/lizmap-web-client-3.5.3/lib/jelix/core/jApp.class.php : 161
    6   jApp::loadConfig()  /var/www/lizmap-web-client-3.5.3/lizmap/www/index.php : 17
2022-06-21 20:36:24 223.133.253.183 [7] Error in the main configuration. A plugin doesn't exist -- The coord plugin jacl2 is unknown.   /var/www/lizmap-web-client-3.5.3/lib/jelix/core/jConfigCompiler.class.php   206
    /
array ( )

    0   jConfigCompiler::checkCoordPluginsPath()    /var/www/lizmap-web-client-3.5.3/lib/jelix/core/jConfigCompiler.class.php : 159
    1   jConfigCompiler::prepareConfig()    /var/www/lizmap-web-client-3.5.3/lib/jelix/core/jConfigCompiler.class.php : 85
    2   jConfigCompiler::read() /var/www/lizmap-web-client-3.5.3/lib/jelix/core/jConfigCompiler.class.php : 103
    3   jConfigCompiler::readAndCache() /var/www/lizmap-web-client-3.5.3/lib/jelix/core/jConfig.class.php : 84
    4   jConfig::load() /var/www/lizmap-web-client-3.5.3/lib/jelix/core/jApp.class.php : 161
    5   jApp::loadConfig()  /var/www/lizmap-web-client-3.5.3/lizmap/www/index.php : 17
Gustry commented 2 years ago

You error is related to "Jelix" plugins, not QGIS server plugins. So it's not about QGIS-Plugin manager. @laurentj maybe you have an idea ?

Related to your QGIS server plugins, please read the docs about plugins which that you need : https://docs.lizmap.com/current/en/install/pre_requirements.html#qgis-server-plugins You are using "Lizmap" which is now the desktop plugin, not the server plugin, it's missing the server flag in your screenshot. Cadastre is only useful for French use-case. I'm not sure you need QuickOSM, this was just as an example.

yamamoto-ryuzo commented 2 years ago

Thank you for your valuable advice. https://github.com/jelix/jelix/issues/314 I solved the problem at In my case, I also did PHP from 8.0 to 7.3, just in case. sudo su

Uninstall PHP

apt-get -y purge 'php' apt -y autoremove apt search php7.3- apt-get -y install php7.3-fpm php7.3-cli php7.3-bz2 php7.3-curl php7.3-gd php7.3-intl php7.3-mbstring php7.3-pgsql php7.3-sqlite3 php7.3-xml php7.3-ldap apt-get install libapache2-mod-php7.3 And finally cd /var/www/lizmap-web-client-3.5.3/ php lizmap/scripts/script.php lizmap~wmts:capabilities montpellier montpellier php lizmap/install/installer.php