[GH-ISSUE #24] Error in edit.phtml #19

Closed
opened 2026-02-26 09:35:13 +03:00 by kerem · 1 comment
Owner

Originally created by @mchloupek on GitHub (Sep 23, 2012).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/24

Hi, i was unable to install(perform initial setup), there was no form at the setup page.

Tested on system: Debian 6 (squeeze)
doctrine 1.2.2-2+squeeze1
smarty3 3.0~rc1-1

tested with zendframework 1.10.6-1squeeze1 and zendframework from svn (using library-init.sh)

Error:

[error] PHP Warning: Invalid argument supplied for foreach() in vimbadmin/library/Zend/Controller/Action/Helper/ViewRenderer.php on line 487
[error] PHP Warning: Exception caught by form: Syntax Error in template "vimbadmin/application/views/admin/form/edit.phtml" on line 60 "{if !isset($modal) || !$modal }" - Unexpected " }", expected one of: "|" , "}" , "*" , "/" , "%" , "+" , "-" , ""&"" , ISIN , ISDIVBY , ISNOTDIVBY , ISEVEN , ISNOTEVEN , ISEVENBY , ISNOTEVENBY , ISODD , ISNOTODD , ISODDBY , ISNOTODDBY , "==" , "!=" , "(>,gt)" , "(<,lt)" , "(>=,ge)" , "(<=,le)" , "===" , "!==" , "(%,mod)" , "(&&,and)" , "(||,or)" , "xor"\nStack Trace:\n#0 /usr/share/php/smarty3/sysplugins/smarty_internal_templateparser.php(2494): Smarty_Internal_TemplateCompilerBase->trigger_template_error()\n#1 /usr/share/php/smarty3/sysplugins/smarty_internal_templateparser.php(2559): Smarty_Internal_Templateparser->yy_syntax_error(8, ' }')\n#2 /usr/share/php/smarty3/sysplugins/smarty_internal_smartytemplatecompiler.php(49): Smarty_Internal_Templateparser->doParse(8, ' }')\n#3 /usr/share/php/smarty3/sysplugins/smarty_internal_templatecompilerbase.php(82): Smarty_Internal_SmartyTemplateComp in /var/www/vimbadmin/library/Zend/Form.php on line 2926

I fixed the problem by:

{if !isset($modal) || !$modal} -- deleting last space

However this problem repeated when tried to add domain!

Originally created by @mchloupek on GitHub (Sep 23, 2012). Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/24 Hi, i was unable to install(perform initial setup), there was no form at the setup page. Tested on system: Debian 6 (squeeze) doctrine 1.2.2-2+squeeze1 smarty3 3.0~rc1-1 tested with zendframework 1.10.6-1squeeze1 and zendframework from svn (using library-init.sh) Error: [error] PHP Warning: Invalid argument supplied for foreach() in vimbadmin/library/Zend/Controller/Action/Helper/ViewRenderer.php on line 487 [error] PHP Warning: Exception caught by form: Syntax Error in template "vimbadmin/application/views/admin/form/edit.phtml" on line 60 "{if !isset($modal) || !$modal }" - Unexpected " }", expected one of: "|" , "}" , "*" , "/" , "%" , "+" , "-" , ""&"" , ISIN , ISDIVBY , ISNOTDIVBY , ISEVEN , ISNOTEVEN , ISEVENBY , ISNOTEVENBY , ISODD , ISNOTODD , ISODDBY , ISNOTODDBY , "==" , "!=" , "(>,gt)" , "(<,lt)" , "(>=,ge)" , "(<=,le)" , "===" , "!==" , "(%,mod)" , "(&&,and)" , "(||,or)" , "xor"\nStack Trace:\n#0 /usr/share/php/smarty3/sysplugins/smarty_internal_templateparser.php(2494): Smarty_Internal_TemplateCompilerBase->trigger_template_error()\n#1 /usr/share/php/smarty3/sysplugins/smarty_internal_templateparser.php(2559): Smarty_Internal_Templateparser->yy_syntax_error(8, ' }')\n#2 /usr/share/php/smarty3/sysplugins/smarty_internal_smartytemplatecompiler.php(49): Smarty_Internal_Templateparser->doParse(8, ' }')\n#3 /usr/share/php/smarty3/sysplugins/smarty_internal_templatecompilerbase.php(82): Smarty_Internal_SmartyTemplateComp in /var/www/vimbadmin/library/Zend/Form.php on line 2926 I fixed the problem by: {if !isset($modal) || !$modal} -- deleting last space However this problem repeated when tried to add domain!
kerem closed this issue 2026-02-26 09:35:13 +03:00
Author
Owner

@barryo commented on GitHub (Sep 24, 2012):

Thanks @mchloupek - I suspect this is more to do with the older version of Smarty than anything else but I don't like the trailing space style and I have removed them all in the above commit on develop and master. You should be good to go.

  • Barry
<!-- gh-comment-id:8808272 --> @barryo commented on GitHub (Sep 24, 2012): Thanks @mchloupek - I suspect this is more to do with the older version of Smarty than anything else but I don't like the trailing space style and I have removed them all in the above commit on develop and master. You should be good to go. - Barry
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ViMbAdmin-opensolutions#19
No description provided.