Page 1 of 5

Error with kinetic an 1.7 rc3

Posted: Mon Mar 18, 2013 2:34 pm
by Jochen Hoff
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/duckhome.de/hosts/duckhome.de/tb/templates/kinetic/entries.tpl" on line 78 "{if $template_option.footer_timestamp_toggle == 'always' || ($template_option.footer_timestamp_toggle == 'no_update' AND NOT(($template_option.footer_updated_timestamp_toggle =='always' || ($template_option.footer_updated_timestamp_toggle =='duration' && $time_elapsed_modified < $template_option.update_duration_period)) && ($time_since_modified > $template_option.update_grace_period)))}" PHP function 'NOT' not allowed by security setting' in /home/duckhome.de/hosts/duckhome.de/tb/bundled-libs/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:665 Stack trace: #0 /home/duckhome.de/hosts/duckhome.de/tb/bundled-libs/Smarty/libs/sysplugins/smarty_security.php(191): Smarty_Internal_TemplateCompilerBase->trigger_template_error('PHP function 'N...') #1 /home/duckhome.de/hos in /hosts/duckhome.de/tb/bundled-libs/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 665

What i have to do?

Re: Error with kinetic an 1.7 rc3

Posted: Mon Mar 18, 2013 2:55 pm
by Timbalu
...speak with the one which has produced it... ;-) and learn to read these exceptions, which definitely look ugly and confusing, but provide all the information you need.

Code: Select all

PHP function 'NOT' not allowed by security setting'
Don seems to use NOT as a function() in entries.tpl on line 78, while he forgot to add a whitespace as it should read:

Code: Select all

AND NOT (($template_option.footer_updated_timestamp_toggle =='always' ...

Re: Error with kinetic an 1.7 rc3

Posted: Mon Mar 18, 2013 3:24 pm
by Jochen Hoff
You are right a whitespace helps. And you are also right with the next error:

Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file '-3' in 'file:/home/duckhome.de/hosts/duckhome.de/tb/templates/kinetic/entries.tpl'' in /home/duckhome.de/hosts/duckhome.de/tb/bundled-libs/Smarty/libs/sysplugins/smarty_internal_templatebase.php:127 Stack trace: #0 /home/duckhome.de/hosts/duckhome.de/tb/templates_c/kinetic/32/e7/67/32e7671f04e9c8b36be4be5f46b2c9137ccea545.file.entries.tpl.php(567): Smarty_Internal_TemplateBase->fetch() #1 /home/duckhome.de/hosts/duckhome.de/tb/bundled-libs/Smarty/libs/sysplugins/smarty_internal_templatebase.php(180): content_5147215d8c8db8_49507255(Object(Smarty_Internal_Template)) #2 /home/duckhome.de/hosts/duckhome.de/tb/include/functions_smarty.inc.php(73): Smarty_Internal_TemplateBase->fetch('file:/home/duck...', NULL, NULL, NULL, false) #3 /home/duckhome.de/hosts/duckhome.de/tb/include/functions_entries.inc.php(1239): serendipity_smarty_fetch('ENTRIES', 'entries.tpl', true) #4 /home/duckhome.de/hosts/duckhome.de/tb/include/genpage.inc.php(13 in /hosts/duckhome.de/tb/bundled-libs/Smarty/libs/sysplugins/smarty_internal_templatebase.php on line 127

The only file with -3 ist on Line 300

{eval var=$footer_currentPage-3 assign="paginationStartPage"}

My time as a programmer are ended years before and i am not able to find out what is wrong. Ah surely i have got the same error message in http://www.optional-necessity.com/suppo ... ?f=5&t=196

But there is nobody alive.

Re: Error with kinetic an 1.7 rc3

Posted: Mon Mar 18, 2013 3:36 pm
by Timbalu
Jochen Hoff wrote:You are right a whitespace helps. And you are also right with the next error:

The only file with -3 ist on Line 300

{eval var=$footer_currentPage-3 assign="paginationStartPage"}

My time as a programmer are ended years before and i am not able to find out what is wrong. Ah surely i have got the same error message in http://www.optional-necessity.com/suppo ... ?f=5&t=196

But there is nobody alive.
He sleeps! ;-)
Try

Code: Select all

{eval var=($footer_currentPage-3) assign="paginationStartPage"}
or

Code: Select all

{assign focup=($footer_currentPage-3)}
{eval var=$focup assign="paginationStartPage"}
or

Code: Select all

{eval var={$footer_currentPage-3} assign="paginationStartPage"}
A Smarty3 modifier or function has higher priority than multiplication, so we have to use parenthesis to execute math first.
But I think it is even more, as eval is eval and should "~not" be used any more.

I don't know why he needs to use eval here, but it would better be to use use assign only. To know how this could be done, I'd need some more code parts...

Re: Error with kinetic an 1.7 rc3

Posted: Mon Mar 18, 2013 3:50 pm
by Jochen Hoff
We have make a step but now the error is


Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/duckhome.de/hosts/duckhome.de/tb/templates/kinetic/entries_fullbox.tpl" on line 37 "{if $template_option.fullbox_timestamp_toggle == 'always' || ($template_option.fullbox_timestamp_toggle == 'no_update' AND NOT(($template_option.fullbox_updated_timestamp_toggle =='always' || ($template_option.fullbox_updated_timestamp_toggle =='duration' && $time_elapsed_modified < $template_option.update_duration_period)) && ($time_since_modified > $template_option.update_grace_period)))}" PHP function 'NOT' not allowed by security setting' in /home/duckhome.de/hosts/duckhome.de/tb/bundled-libs/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:665 Stack trace: #0 /home/duckhome.de/hosts/duckhome.de/tb/bundled-libs/Smarty/libs/sysplugins/smarty_security.php(191): Smarty_Internal_TemplateCompilerBase->trigger_template_error('PHP function 'N...') #1 /home/duc in /hosts/duckhome.de/tb/bundled-libs/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 665

The last entry in Don Chambers Board is from Oct. 2012 and i think you must read the full entries.tpl to help.So i attached it.

Re: Error with kinetic an 1.7 rc3

Posted: Mon Mar 18, 2013 3:54 pm
by Jochen Hoff
excuse me the next error comes from entries_fullbox.tpl

Re: Error with kinetic an 1.7 rc3

Posted: Mon Mar 18, 2013 3:55 pm
by Timbalu
From the Smarty docs case {eval}:

Code: Select all

Evaluated variables are compiled on every invocation...
so better use something else to not slowdown you environment.


This errors is like the first one "PHP function 'NOT' not allowed by security setting" while using

Code: Select all

AND NOT(($template_option.fullbox_updated_timestamp_toggle =='always' 
in entries_fullbox.tpl, which needs a whitespace too.

Re: Error with kinetic an 1.7 rc3

Posted: Mon Mar 18, 2013 3:58 pm
by Jochen Hoff
there was it a white space

Re: Error with kinetic an 1.7 rc3

Posted: Mon Mar 18, 2013 4:02 pm
by Timbalu
pardon me?

Re: Error with kinetic an 1.7 rc3

Posted: Mon Mar 18, 2013 4:08 pm
by Jochen Hoff
But now we have an other error:

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/duckhome.de/hosts/duckhome.de/tb/templates/kinetic/entries_halfbox.tpl" on line 25 "{if $template_option.halfbox_timestamp_toggle == 'always' || ($template_option.halfbox_timestamp_toggle == 'no_update' AND NOT(($template_option.halfbox_updated_timestamp_toggle =='always' || ($template_option.halfbox_updated_timestamp_toggle =='duration' && $time_elapsed_modified < $template_option.update_duration_period)) && ($time_since_modified > $template_option.update_grace_period)))}" PHP function 'NOT' not allowed by security setting' in /home/duckhome.de/hosts/duckhome.de/tb/bundled-libs/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:665 Stack trace: #0 /home/duckhome.de/hosts/duckhome.de/tb/bundled-libs/Smarty/libs/sysplugins/smarty_security.php(191): Smarty_Internal_TemplateCompilerBase->trigger_template_error('PHP function 'N...') #1 /home/duc in /hosts/duckhome.de/tb/bundled-libs/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 665

Re: Error with kinetic an 1.7 rc3

Posted: Mon Mar 18, 2013 4:12 pm
by Timbalu
LESEN!!!!
Immer derselbe Fehler - diesmal in entries_halfbox.tpl.

Upps :P

READ!!!!
Same again - this time in entries_halfbox.tpl.

Did you upgrade your plugins before updating Serendipity?
You should do that (recommended)!
You site duckhome has an error in contactform, which seems to be caused by an old version.

Also you should investigate the slowness of your server responses. What could cause these hangouts..?

Re: Error with kinetic an 1.7 rc3

Posted: Mon Mar 18, 2013 4:22 pm
by Jochen Hoff
Dammed, i am stupid i looked in content-halfbox.tpl insteadt of entries-halfbox.tpl. Now it works fine. Thank you.

Re: Error with kinetic an 1.7 rc3

Posted: Mon Mar 18, 2013 4:23 pm
by Timbalu
Please read my previouses post. I updated some issues.

Re: Error with kinetic an 1.7 rc3

Posted: Mon Mar 18, 2013 4:55 pm
by Jochen Hoff
The slowness of the server comes from time to time. Duckhome takex most of the power, but i not able to clear the problem. Is the same with the traffic. Its terrible. But i have no money to pay an administrator so it is a problem.

I had updatete the plugins before i update to the new s9y and now there are no new updates. Guestbook runs.

Re: Error with kinetic an 1.7 rc3

Posted: Mon Mar 18, 2013 4:58 pm
by Timbalu
I know. Thats why I said contactform! ;-)

Code: Select all

Fatal error: Uncaught exception 'ErrorException' with message 'Serendipity error: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #2 is not an array' in /home/duckhome.de/hosts/duckhome.de/tb/include/compat.inc.php:118 Stack trace: #0 [internal function]: errorToExceptionHandler(Array, NULL) #1 /home/duckhome.de/hosts/duckhome.de/tb/bundled-libs/Smarty/libs/sysplugins/smarty_internal_templatebase.php(75): array_merge('file:/home/duck...', NULL, NULL, false) #2 /home/duckhome.de/hosts/duckhome.de/tb/plugins/serendipity_event_contactform/serendipity_event_contactform.php(418): Smarty_Internal_TemplateBase->fetch() #3 /home/duckhome.de/hosts/duckhome.de/tb/plugins/serendipity_event_contactform/serendipity_event_contactform.php(490): serendipity_event_contactform->show('entries_header', Object(serendipity_property_bag), Array, '') #4 /home/duckhome.de/hosts/duckhome.de/tb/include/plugin_api.inc.php(1073): serendipity_event_contactform->event_hook('entries_header', Array, '') #5 /home/duckhome in /hosts/duckhome.de/tb/include/compat.inc.php on line 118
If Spartacus does not provide a new version, take spartacus web and copy that file (in binary mode) to your place.