Announcement

#1 2018-11-25 18:27:03

rp1428
Member
2014-05-26
19

Smarty Compile Error

Hello/Hi/Greetings,

I get the following message when I go to the Basket:

atal error: Uncaught --> Smarty Compiler: Syntax error in template "file:/drive2/data/area1/www/photos2/piwigo/admin/themes/default/template/batch_manager_global.tpl" on line 48 "var associated_categories = {$associated_categories|@json_encode};" unknown modifier "json_encode" <-- thrown in /drive2/data/area1/www/photos2/piwigo/include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 48

Piwigo version: 2.9.4
PHP version: 7.2
MySQL version: 5.7
Piwigo URL: http://192.168.1.4:8033

Offline

 

#2 2018-11-26 17:58:19

rp1428
Member
2014-05-26
19

Re: Smarty Compile Error

I figured this out. The json_encode() function was missing from the system. Seems like it does not come with base php in 7.2.

dnf install php-json.x86_64

fixed it for Fedora 29.

This also fixed popup errors from the users screen. UserList errors that the ajax response indicated missing json_encode() function

Offline

 

#3 2018-11-26 18:49:00

rp1428
Member
2014-05-26
19

Re: Smarty Compile Error

As a followup, perhaps the install instructions should cover this. i.e. that this package needs to be installed

Offline

 

Board footer

Powered by FluxBB

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