•  » Themes
  •  » Smart pocket tags error

#1 2025-12-02 16:23:56

JeffPain1
Member
2023-12-13
8

Smart pocket tags error

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

 

#2 2025-12-04 12:44:38

moberley
Member
2025-11-10
90

Re: Smart pocket tags error

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:

Code:

<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

 

#3 2025-12-05 10:47:46

JeffPain1
Member
2023-12-13
8

Re: Smart pocket tags error

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

 

#4 2025-12-27 10:23:15

epifeny
Member
2024-12-05
45

Re: Smart pocket tags error

I also noticed this issue. When I went to the admin page -> tags (ie. /admin.php?page=tags)

https://i.gyazo.com/d57cb55dd6206484845d00976f1e4570.png

I got this error

Code:

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

 

#5 2025-12-27 11:20:22

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

Re: Smart pocket tags error

Just released a new revision 16.1.0.1 for [extension by P@t] Smart Pocket (mobile theme)

Offline

 
  •  » Themes
  •  » Smart pocket tags error

Board footer

Powered by FluxBB

github linkedin newsletter Piwigo.org © 2002-2026 · Contact