Problem with {include} in CMSMS 1.11

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
steelexus
New Member
New Member
Posts: 5
Joined: Wed May 25, 2011 3:07 pm

Problem with {include} in CMSMS 1.11

Post by steelexus »

Hello!

I'm trying to {include} an external .tpl into my template.
CMSMS 1.11

When I edit my template, and write anything - I can Update/Save the changes and everything is ok with information ~''template succesfully updated".

But when I put {include file='test.tpl'} template and clicked Update button - there wasn'y any information about 'template succesfully updated', and when when I clicked OK, this error went out:

Code: Select all

Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'test.tpl' in 'template:appdata;tmp_template'' in /home/norwid/domains/ayz.pl/public_html/lib/smarty/sysplugins/smarty_internal_templatebase.php:127 Stack trace: #0 /home/norwid/domains/ayz.pl/public_html/lib/smarty/sysplugins/smarty_internal_template.php(286): Smarty_Internal_TemplateBase->fetch(NULL, NULL, NULL, NULL, false, false, true) #1 /home/norwid/domains/ayz.pl/public_html/tmp/templates_c/dd10a1840f43813cd647195dd79bd3add047c6e9.template.appdata;tmp_template.php(59): Smarty_Internal_Template->getSubTemplate('test.tpl', NULL, NULL, NULL, NULL, Array, 0) #2 /home/norwid/domains/ayz.pl/public_html/lib/smarty/sysplugins/smarty_internal_templatebase.php(180): content_50f18b39bb2299_70319025(Object(Smarty_Internal_Template)) #3 /home/norwid/domains/ayz.pl/public_html/lib/classes/class.Smarty_CMS.php(329): Smarty_Internal_TemplateBase->fetch('template:appdat...', NULL, NULL, NULL, false, false, in /home/norwid/domains/ayz.pl/public_html/lib/smarty/sysplugins/smarty_internal_templatebase.php on line 127
{include file='test.tpl'} works fine in content of pages, but doesn't work in templates.

Any ideas why?
Thanks.


@down - I said that {include} works for me in content pages, so it logic that I know where to put the external files.

The problem is only with templates code - only in that place {include} command has problems.
Last edited by steelexus on Sat Jan 12, 2013 5:28 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Problem with {include} in CMSMS 1.11

Post by calguy1000 »

I just tested this in CMSMS 1.11.4 and had no difficulties.

You have to place the external file in tmp/templates

Please upgrade to 1.11.4 and try again.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
steelexus
New Member
New Member
Posts: 5
Joined: Wed May 25, 2011 3:07 pm

Re: Problem with {include} in CMSMS 1.11

Post by steelexus »

calguy1000 wrote:I just tested this in CMSMS 1.11.4 and had no difficulties.
I cannot, because many of modules I'am using won't work with 1.11.4

Can you check it in 1.11?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Problem with {include} in CMSMS 1.11

Post by calguy1000 »

1.11 is no longer supported.

Topic locked.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “CMSMS Core”