Announcement

#1 2014-11-21 22:31:58

Iddo
Guest

Post Installation Smarty Fatal error

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

 

#2 2014-11-21 22:33:21

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3268

Re: Post Installation Smarty Fatal error

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

 

#3 2014-11-21 23:40:15

Iddo
Guest

Re: Post Installation Smarty Fatal error

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)

 

#4 2014-11-22 12:17:49

Iddo
Guest

Re: Post Installation Smarty Fatal error

Fixed..

Restart was needed.

Thanks a lot,
--Iddo.

 

#5 2014-11-22 13:02:03

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13091

Re: Post Installation Smarty Fatal error

Hi iddo,

Restart of what?


Latest blog post (November 28th 2017) Server failures in october and november 2017

Offline

 

#6 2014-12-06 08:51:00

Dag
Guest

Re: Post Installation Smarty Fatal error

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.

 

#7 2014-12-06 13:10:57

Dag
Guest

Re: Post Installation Smarty Fatal error

oh, I got passed this problem by doing

apt-get install php5-json

Thanks,
Dag

 

#8 2015-02-25 18:41:56

alessandro
Member
2015-02-25
5

Re: Post Installation Smarty Fatal error

Dag's solution worked also for me.

Thanks.
A.

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2017 · Contact