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
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
As a followup, perhaps the install instructions should cover this. i.e. that this package needs to be installed
Offline