Page 1 of 1

[fixed?] Assigning template missing the {content} tag

Posted: Tue Jun 26, 2012 8:55 pm
by brunettdan
When trying to assign a template which is missing the {content} tag to a page, the server thorws the following error:

Code: Select all

[Tue Jun 26 22:49:24 2012] [error] [client xxx] PHP Fatal error:  Uncaught exception 'SmartyException' with message 'Call of unknown method '_compile_source'.' in /xx/xx/public_html/lib/smarty/sysplugins/smarty_internal_templatebase.php:806
[Tue Jun 26 22:49:24 2012] [error] [client xxx] Stack trace:
[Tue Jun 26 22:49:24 2012] [error] [client xxx] #0 /xx/xx/public_html/modules/TinyMCE/stylesheet.php(141): Smarty_Internal_TemplateBase->__call('_compile_source', Array)
[Tue Jun 26 22:49:24 2012] [error] [client xxx] #1 /xx/xx/public_html/modules/TinyMCE/stylesheet.php(141): Smarty_CMS->_compile_source('temporary style...', '/* Start of CMS...', '/* Start of CMS...')
[Tue Jun 26 22:49:24 2012] [error] [client xxx] #2 {main}
[Tue Jun 26 22:49:24 2012] [error] [client xxx]   thrown in /xx/xx/public_html/lib/smarty/sysplugins/smarty_internal_templatebase.php on line 806
Although, it is possible to assign the template by choosing 'Set All Pages' in the Templates list.

Running beta2

Re: Assigning template missing the {content} tag

Posted: Tue Jun 26, 2012 9:59 pm
by calguy1000
Edit template in 1.11 should not allow you to commit if there is no {content} tag available.

That's where the bug lies.

Re: Assigning template missing the {content} tag

Posted: Wed Jun 27, 2012 9:13 am
by Rolf
calguy1000 wrote:Edit template in 1.11 should not allow you to commit if there is no {content} tag available.

That's where the bug lies.
Confirmed new template without {content} can be saved (rev. 8121)

Re: [confirmed] Assigning template missing the {content} tag

Posted: Wed Jun 27, 2012 3:02 pm
by calguy1000
should be fixed in svn.

Re: [confirmed] Assigning template missing the {content} tag

Posted: Wed Jun 27, 2012 4:12 pm
by Rolf
Confirmed fixed in rev. 8126