Hi Guys,
I am new to Piwigo and php, tried to find an answer for this issue at the forums without success. -- On a Fresh install of Piwigo zip as well as net install (tried them both), each click on add photos (/& recent photos /& batch manager) the following exception is shown:
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "./admin/themes/default/template/photos_add_direct.tpl" on line 241 "<select data-selectize="categories" data-value="{$selected_category|@json_encode|escape:html}"" unknown modifier "json_encode"' in /var/www/html/images/include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:665 Stack trace: #0 /var/www/html/images/include/smarty/libs/sysplugins/smarty_internal_compile_private_modifier.php(132): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown modifie...', 241) #1 /var/www/html/images/include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(473): Smarty_Internal_Compile_Private_Modifier->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL) #2 /var/www/html/images/include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(257): Smarty_Internal_TemplateCompilerBase->callTagCompiler('private_modifie...', Array, A in /var/www/html/images/include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 665
help is appreciated!
-- Iddo.
Piwigo version: 2.7.1 (Just updated to 2.7.2 same problem continues)
PHP version: 5.5.9-1ubuntu4.5
MySQL version: 5.5.40-0ubuntu0.14.04.1
Piwigo URL: http:// Somewhere at my home network at least I will be able to start it probably once
Sorry for the inconvenience but please use the search function of the forum (or look arround, it's the topic just below you)
[Forum, topic 24852] Error on update to 2.7.2
Offline
Hi Mistic,
It still does not work, same Exception appears, (after deletion of '_data/templates_c/')
any other idea that might help?
--Iddo.
& really I cannot find solution in the forums (retried for that last 15 minutes)
Fixed..
Restart was needed.
Thanks a lot,
--Iddo.
Hi iddo,
Restart of what?
Offline
Hi, I also get this error after a clean install of piwigo 2.7.2. I am a piwigio newbie trying to set this up for the first time, so maybe i have done som simple mistake.
This is the error message:
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "./admin/themes/default/template/photos_add_direct.tpl" on line 253 "<select data-selectize="categories" data-value="{$selected_category|@json_encode|escape:html}"" unknown modifier "json_encode"' in /var/www/html/piwigo/include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:665 Stack trace: #0 /var/www/html/piwigo/include/smarty/libs/sysplugins/smarty_internal_compile_private_modifier.php(132): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown modifie...', 253) #1 /var/www/html/piwigo/include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(473): Smarty_Internal_Compile_Private_Modifier->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL) #2 /var/www/html/piwigo/include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(257): Smarty_Internal_TemplateCompilerBase->callTagCompiler('private_modifie...', Array, A in /var/www/html/piwigo/include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 665
I get it for example when hitting this url:
http://192.168.0.103/piwigo/admin.php?page=photos_add
I have tried the solution suggested in:
http://piwigo.org/forum/viewtopic.php?id=24852
but i noticed no difference. I restarted (the whole server) actually to make sure.
I am running Linux Mint with
5.5.37-0ubuntu0.13.10.1 (Ubuntu)
PHP 5.5.3-1ubuntu2.6 (cli)
Any help appreciated.
oh, I got passed this problem by doing
apt-get install php5-json
Thanks,
Dag
Dag's solution worked also for me.
Thanks.
A.
Offline
what when php7.4-json is installed and problem persist ?
Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "file:/mnt/backup_sda1/gallery/admin/themes/default/template/updates_ext.tpl" on line 212 "{/foreach}" unclosed {if} tag <-- thrown in /mnt/backup_sda1/gallery/include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 212
Offline