Announcement

#1 2022-05-07 20:05:02

grantiago
Member
2022-04-04
10

13.0.0beta1 unclosed if tag

Hello.
I am just checking this out. Thanks for all the hard work.

this page:
http://test.piwi.lan/admin.php?page=plu … tab=update
results in:
Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "file:/mnt/tera/www/test/admin/themes/default/template/updates_ext.tpl" on line 212 "{/foreach}" unclosed '{foreach}' tag <-- thrown in /mnt/tera/www/test/include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 212

I tried to add a closing {/if} tag on 212. not working for me.

Piwigo 13.0.0beta1 Check for upgrade
Operating system: Linux
PHP: 7.4.3 (Show info) [2022-05-07 11:36:36]
MySQL: 8.0.29-0ubuntu0.20.04.3 [2022-05-07 11:36:36]
Graphics Library: External ImageMagick 6.9.10-23
Cache size N/A   never calculated Refresh
Activated plugin list0
No plugin activated

Piwigo URL: http://localhost

Last edited by grantiago (2022-05-07 20:05:42)

Offline

 

#2 2022-06-25 15:51:16

petitssuisses
Member
France
2013-05-03
36

Re: 13.0.0beta1 unclosed if tag

Hi
Got this one as well with the piwigo 13.0.0beta2
on linux
php 8.0.20

Offline

 

#3 2022-06-28 15:18:09

kubikanber
Member
2014-06-20
2

Re: 13.0.0beta1 unclosed if tag

Hi,

Line #165 in ../piwigo/admin/themes/default/template/updates_ext.tpl

The "if" statement not closed

Code:

{if $isWebmaster == 1}

For me, when i closed "if" statement before "foreach", it's works.

Code:

{if $isWebmaster == 1}

<div class="autoupdate_bar">
<div class="head-button-1 icon-ok-circled" id="update_all">{'Update All'|@translate}</div>
<div class="head-button-2 icon-block" id="ignore_all" onClick="ignoreAll(); return false;">{'Ignore All'|@translate}</div>
<div class="head-button-2 icon-ccw" id="reset_ignore" onClick="resetIgnored(); return false;" {if !$SHOW_RESET}style="display:none;"{/if}>{'Reset ignored updates'|@translate}</div>
</div>
<div class="autoupdate_bar" style="display:none;">
{'Please wait...'|@translate}<br><img src="admin/themes/default/images/ajax-loader-bar.gif">
</div>
{/if}{* TODO : Değişti : Buraya konuldu ama yer kontrol yapılmalı*}
<p id="up_to_date" style="display:none; text-align:left; margin-left:20px;">{'All %s are up to date.'|@sprintf:$EXT_TYPE|@translate}</p>

{foreach from=$UPDATES_EXTENSION key=type item=updates}
  {if not empty($updates)}
....

https://github.com/kubikanber/Piwigo/bl … es_ext.tpl

My settings:
Piwigo 13.0.0beta2
İşletim sistemi: Linux
PHP: 8.1.6 (Bilgi Göster) [2022-06-28 16:08:42]
MySQL: 10.4.24-MariaDB [2022-06-28 16:08:42]
Grafik Kütüphanesi: ImageMagick 7.1.0-37

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact