Piwigo / piwigo-bootstrap-darkroom

A mobile-ready and feature-rich theme for Piwigo photo gallery, based on Bootstrap 4
Apache License 2.0
81 stars 40 forks source link

After installation of theme i can't switch back #372

Open MaikelvanGorkom opened 5 months ago

MaikelvanGorkom commented 5 months ago

Have installed the theme, after that updated Piwigo to the latest version (don't know if that has anything to do with it)

I can activate another theme, but this one stays active. When i deinstall this theme (and activate another) i get errors that the main page can't load php files that are part of the piwigo-bootstrap-darkroom. The actual theme isn't loaded.

Any idea how that comes?

MaikelvanGorkom commented 5 months ago

Found the issue. I've installed "Admin Tools" and when it's activated it apparently uses the bootstrap theme. Disabling it, i can use the theme i want. Deinstallation of Admin Tools and reinstalling it, keeps using bootstrap theme.

For reference these are the errors:

Warning: include(/themeconf.inc.php): Failed to open stream: No such file or directory in /piwigo/include/template.class.php on line 1155

Warning: include(): Failed opening '/themeconf.inc.php' for inclusion (include_path='.:/usr/share/php') in /piwigo/include/template.class.php on line 1155

Fatal error: Uncaught --> Smarty: Unable to load template 'file:menubar.tpl' <-- thrown in /piwigo/include/smarty/libs/sysplugins/smarty_internal_template.php on line 196

MaikelvanGorkom commented 5 months ago

In the themeconf.inc.php line 1155 it tries to use the $dir variable. But that one doesn't seem to be filled when using "Admin Tool"