Announcement

#1 2018-07-05 23:34:22

executive
Member
2017-08-16
285

templates failing

I hope everybody is having a good summer.

I'm posting in general troubleshooting because I don't know if this is a problem with an extension, theme, some combination, or none of the above. I am unable to have the 'Bootstrap Darkroom' theme and the 'Admin Tools' plugin installed together. The gallery looks fine until I log in. Then I get a blank pages with errors:

Code:

Warning: include(/themeconf.inc.php): failed to open stream: No such file or directory in /home/mountain/public_html/gallery/include/template.class.php on line 1156
Warning: include(): Failed opening '/themeconf.inc.php' for inclusion (include_path='.:/opt/alt/php71/usr/share/pear') in /home/mountain/public_html/gallery/include/template.class.php on line 1156
Fatal error: Uncaught --> Smarty: Unable to load template file 'menubar.tpl' <-- thrown in /home/mountain/public_html/gallery/include/smarty/libs/sysplugins/smarty_internal_template.php on line 139

I've tried deleting and reinstalling both the plugin and the theme. I've run all the maintenance tools. Database intergrity is fine. I've tried assigning the theme to all users. The files do exist and permissions are ok.

I do have two issues involving themes, admin tools, and file integrity checks.
(maybe related)
[Github] AdminTools issue #8
[Github] Piwigo-check_files_integrity issue #2

I never had any problems with Piwigo before today, until I started trying different themes. But I never did anything hacky and used only the front end interface. No previous errors either.

    Piwigo 2.9.3
    Operating system: Linux
    PHP: 7.1.19 (Show info) [2018-07-05 14:15:24]
    MySQL: 5.6.39 [2018-07-05 14:15:24]
    Graphics Library: ImageMagick 6.9.4-10
Admin Tools - Revision 2.9.3 (2018-02-26)
Bootstrap Darkroom - Revision 2.3.2 (2018-05-10)
Piwigo URL: https://mountainmanjoe.ca/gallery/

Offline

 

#2 2018-07-06 02:22:53

erAck
Member
2015-09-06
107

Re: templates failing

From Admin -> Tools -> Maintenance try Purge compiled templates or delete the content of ./_data/templates_c/ manually.

However, the include(/themeconf.inc.php) looks odd, as if it tried to include the file from the root directory, which inspecting ./include/template.class.php:1156 would mean that $dir is empty, either after $dir = realpath($dir); or already when passed to load_themeconf($dir) that could be because a not (anymore) existing theme (hence empty $theme) was tried to be loaded (via $themeconf = $this->load_themeconf($root.'/'.$theme); in line 184), but then again that would also mean $root was empty, which IMHO should be at least "." (but I didn't dig that further). Maybe that's solved by purging the template cache.

Offline

 

#3 2018-07-06 02:38:23

executive
Member
2017-08-16
285

Re: templates failing

Like I mentioned I tried the maintenance tools, including purging compiled templates.

EDIT: I have no idea why but it just started working fine, without my intervention. The only explanation I can think of, is that there were some background processes that needed to finish.

Last edited by executive (2018-07-06 03:18:33)

Offline

 

#4 2018-07-06 10:39:58

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13148

Re: templates failing

You need to check table "user_infos" column "theme". Is the theme available in your filesystem? (I'm 99% sure you have a theme in database that is not availabe in directory "themes" of your Piwigo installation)


Latest blog post (May 3rd 2018) New subscription form

Offline

 

#5 2018-07-06 20:18:05

executive
Member
2017-08-16
285

Re: templates failing

It looks fine now. It felt like Admin Tools was somehow "fighting" the theme changes I was making.

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2018 · Contact