mirror of
https://github.com/opensolutions/ViMbAdmin.git
synced 2026-04-26 00:36:00 +03:00
[GH-ISSUE #24] Error in edit.phtml #19
Labels
No labels
bug
feature
feature
improvement
improvement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ViMbAdmin-opensolutions#19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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!
@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.