Bug in carrousel from Extended Description since upgrade to piwigo 13.0.0 #1542

Open
opened 2026-10-05 00:47:41 +02:00 by adam · 2 comments
Owner
Environment Value
Operating system: Linux
PHP: 7.3.10
MySQL: 5.5.5-10.0.38-MariaDB-0ubuntu0.16.04.1
Graphics Library: ImageMagick 6.9.7-4

I use the Carrousel function from the Extended Description plugin on an Additional Pages landing page.

[slider album=10 random=false size=L speed=4 title=false effect=fade arrows=false elastic=false control=false]

After upgrading to piwigo version 13.0.0 the following error appears when loading the page:

Warning:  math: illegal characters in include/smarty/libs/plugins/function.math.php on line 76

And the images are not displayed correctly anymore

Environment | Value --- | --- Operating system: | Linux PHP: | 7.3.10 MySQL: | 5.5.5-10.0.38-MariaDB-0ubuntu0.16.04.1 Graphics Library: | ImageMagick 6.9.7-4 I use the Carrousel function from the Extended Description plugin on an Additional Pages landing page. ``` [slider album=10 random=false size=L speed=4 title=false effect=fade arrows=false elastic=false control=false] ``` After upgrading to piwigo version 13.0.0 the following error appears when loading the page: ``` Warning: math: illegal characters in include/smarty/libs/plugins/function.math.php on line 76 ``` And the images are not displayed correctly anymore <!-- github-sync-id:1419520169 -->
Author
Owner

Hi
try modify include/smarty/libs/plugins/function.math.php in line 72 for
$operators = '[,+\/*\^%-]'; // Allowed math operators
and it's ok ?

Hi try modify include/smarty/libs/plugins/function.math.php in line 72 for `$operators = '[,+\/*\^%-]'; // Allowed math operators` and it's ok ? <!-- github-comment-id:1287930357 -->
Author
Owner

Hi,
yes, that solved the issue

Hi, yes, that solved the issue <!-- github-comment-id:1287934248 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1542