Hello,
Got the message to update Piwigo to 11.0, I have Piwigo on two domains, both on the same server. The first update went well, the second one, after getting the successful update messaage page, the font end is down with errors displayed.
Warning: include(/themeconf.inc.php): failed to open stream: No such file or directory in /home/linkpro/public_html/piwigo/include/template.class.php on line 1141
Warning: include(/themeconf.inc.php): failed to open stream: No such file or directory in /home/linkpro/public_html/piwigo/include/template.class.php on line 1141
Warning: include(): Failed opening '/themeconf.inc.php' for inclusion (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/linkpro/public_html/piwigo/include/template.class.php on line 1141
Fatal error: Uncaught --> Smarty: Unable to load template file 'menubar.tpl' <-- thrown in /home/linkpro/public_html/piwigo/include/smarty/libs/sysplugins/smarty_internal_template.php on line 139
I've tried clicking on all the maintenance items since I can still access the admin. I'm using the Modus theme for default.
Environment
Piwigo 11.0.0 Check for upgrade
Operating system: Linux
PHP: 7.4.9 (Show info) [2021-01-19 18:52:29]
MySQL: 5.7.25-log [2021-01-19 12:52:29]
Graphics Library: ImageMagick 6.7.2-7
Piwigo URL: https://linkpro.net/piwigo/
Offline
Just to add, I have already manually re-uploaded all of the files, just to make sure.
Last twenty lines from error_log are:
[19-Jan-2021 18:49:42 UTC] PHP Warning: include(/themeconf.inc.php): failed to open stream: No such file or directory in /home/linkpro/public_html/piwigo/include/template.class.php on line 1141
[19-Jan-2021 18:49:42 UTC] PHP Warning: include(/themeconf.inc.php): failed to open stream: No such file or directory in /home/linkpro/public_html/piwigo/include/template.class.php on line 1141
[19-Jan-2021 18:49:42 UTC] PHP Warning: include(): Failed opening '/themeconf.inc.php' for inclusion (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/linkpro/public_html/piwigo/include/template.class.php on line 1141
[19-Jan-2021 18:49:42 UTC] PHP Fatal error: Uncaught --> Smarty: Unable to load template file 'menubar.tpl' <--
thrown in /home/linkpro/public_html/piwigo/include/smarty/libs/sysplugins/smarty_internal_template.php on line 139
[19-Jan-2021 19:22:04 UTC] PHP Warning: include(/themeconf.inc.php): failed to open stream: No such file or directory in /home/linkpro/public_html/piwigo/include/template.class.php on line 1141
[19-Jan-2021 19:22:04 UTC] PHP Warning: include(/themeconf.inc.php): failed to open stream: No such file or directory in /home/linkpro/public_html/piwigo/include/template.class.php on line 1141
[19-Jan-2021 19:22:04 UTC] PHP Warning: include(): Failed opening '/themeconf.inc.php' for inclusion (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/linkpro/public_html/piwigo/include/template.class.php on line 1141
[19-Jan-2021 19:22:04 UTC] PHP Fatal error: Uncaught --> Smarty: Unable to load template file 'menubar.tpl' <--
thrown in /home/linkpro/public_html/piwigo/include/smarty/libs/sysplugins/smarty_internal_template.php on line 139
[19-Jan-2021 19:22:06 UTC] PHP Warning: include(/themeconf.inc.php): failed to open stream: No such file or directory in /home/linkpro/public_html/piwigo/include/template.class.php on line 1141
[19-Jan-2021 19:22:06 UTC] PHP Warning: include(/themeconf.inc.php): failed to open stream: No such file or directory in /home/linkpro/public_html/piwigo/include/template.class.php on line 1141
[19-Jan-2021 19:22:06 UTC] PHP Warning: include(): Failed opening '/themeconf.inc.php' for inclusion (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/linkpro/public_html/piwigo/include/template.class.php on line 1141
[19-Jan-2021 19:22:06 UTC] PHP Fatal error: Uncaught --> Smarty: Unable to load template file 'menubar.tpl' <--
thrown in /home/linkpro/public_html/piwigo/include/smarty/libs/sysplugins/smarty_internal_template.php on line 139
[19-Jan-2021 19:22:17 UTC] PHP Warning: include(/themeconf.inc.php): failed to open stream: No such file or directory in /home/linkpro/public_html/piwigo/include/template.class.php on line 1141
[19-Jan-2021 19:22:17 UTC] PHP Warning: include(/themeconf.inc.php): failed to open stream: No such file or directory in /home/linkpro/public_html/piwigo/include/template.class.php on line 1141
[19-Jan-2021 19:22:17 UTC] PHP Warning: include(): Failed opening '/themeconf.inc.php' for inclusion (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/linkpro/public_html/piwigo/include/template.class.php on line 1141
[19-Jan-2021 19:22:17 UTC] PHP Fatal error: Uncaught --> Smarty: Unable to load template file 'menubar.tpl' <--
thrown in /home/linkpro/public_html/piwigo/include/smarty/libs/sysplugins/smarty_internal_template.php on line 139
The "failed opening /themeconf.inc.php is interesting since I don't see that file in the piwigo root or in the top public_html folder.
Should it exist?
Offline
The $dir variable seems to be empty in that call, so what should be "directory/themeconf.inc.php" ends up as "/themeconf.inc.php" only. Where directory should be one of themes/* or admin/themes/*
Offline
Any suggestions on what might be wrong? I've got another Piwigo upgraded to 11.0 with no problems on the same server.
Environment
Piwigo 11.0.0 Check for upgrade
Operating system: Linux
PHP: 7.4.9 (Show info) [2021-01-19 19:44:20]
MySQL: 5.7.25-log [2021-01-19 13:44:20]
Graphics Library: ImageMagick 6.7.2-7
https://www.osyc.com/piwigo/
Offline
I thought this kind of issue was fixed with [Github] Piwigo commit 7b6912ba
Can you:
1) check what theme is set for your users? (in your database, table piwigo_user_infos)
2) check what themes are available in your "themes" directory?
Offline
Hi -I checked my database and noted that the theme I was using was not reflected in the database. So, I reactivated the theme listed in the database, made it the default theme and then the site restored. I then tried again to change the default and this time it worked.
Offline
plg wrote:
I thought this kind of issue was fixed with [Github] Piwigo commit 7b6912ba
Can you:
1) check what theme is set for your users? (in your database, table piwigo_user_infos)
2) check what themes are available in your "themes" directory?
1) There are only two users, and both show modus as the theme.
2: Modus (modus) is one of the themes available and is set to default.
Offline
Just for info, I did try switching to another theme, (clear theme) setting it as default, then switching back to Modus.
Nothing changed.
Offline
I needed this to work since I'm using some of the images in Piwigo as href src on other websites and don't want broken images.
reverted to:
Environment
Piwigo 2.10.2 Check for upgrade
Operating system: Linux
PHP: 7.4.11 (Show info) [2021-01-21 20:37:09]
MySQL: 5.7.25-log [2021-01-21 14:37:09]
Graphics Library: ImageMagick 6.7.2-7
And everything is working. I'll wait for the next upate and try again.
Last edited by damon18 (2021-01-21 21:39:56)
Offline