Hello/Hi/Greetings,
When I choose anything to do with tags (Menu/tags, Related tags) from the menu I get the following error:
Fatal error: Uncaught --> Smarty: Unable to load 'file:include/selected_tags.inc.tpl' <-- thrown in /homepages/17/d43049385/htdocs/Photogallery/include/smarty/src/Template.php on line 159
Piwigo 16.0.0 Check for upgrade
Installed on 1 October 2019, 6 years 2 months ago
Operating system: Linux (container)
PHP: 8.3.28 (Show info) [2025-12-02 16:21:29]
MySQL: 5.7.42-log [2025-12-02 16:21:29]
Graphics Library: External ImageMagick 6.9.11-60
Cache size N/A never calculated Refresh
Piwigo URL: https://www.benson-sedgwick.co.uk/Photogallery/
Offline
I was able to get the same result on my test server.
I'm not sure if the missing template file is supposed to be loaded from the "/themes/default/template/include/" directory but I found that if I copied the selected_tags.inc.tpl file from that directory to the "/themes/smartpocket/template/include/" directory the error went away.
Or just create a new file with the contents of "/themes/default/template/include/selected_tags.inc.tpl" and save it as as "/themes/smartpocket/template/include/selected_tags.inc.tpl". On my server that template has the following:
<span id="selected-tags-container">
{foreach $SELECT_RELATED_TAGS as $TAG}
<span class="selected-related-tag {if 1 == count($SELECT_RELATED_TAGS)}unique-tag{/if}">
<a href="{$TAG.index_url}" title="{'display photos linked to this tag'|translate}">
{$TAG.tag_name}
</a>
{if count($SELECT_RELATED_TAGS) > 1}
<a class="selected-related-tag-remove" href="{$TAG.remove_url}" style="border:none;" title="{'remove this tag from the list'|translate}">
<i class="gallery-icon-cancel"></i>
</a>
{/if}
</span>
{/foreach}
</span>Offline
moberley,
Did as you suggested and copied the file over, all fixed now.
I don't pretend to know how Piwigo does what it does.
You are a Star!
Offline
I also noticed this issue. When I went to the admin page -> tags (ie. /admin.php?page=tags)
I got this error
Fatal error: Uncaught --> Smarty: Unable to load 'file:include/selected_tags.inc.tpl' <-- thrown in /app/www/public/include/smarty/src/Template.php on line 159
Offline
Just released a new revision 16.1.0.1 for [extension by P@t] Smart Pocket (mobile theme)
Offline