PHP Error when template/theme changes

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
soedje
New Member
New Member
Posts: 5
Joined: Wed Feb 24, 2010 7:34 am

PHP Error when template/theme changes

Post by soedje »

Hi,

Im getting an error when I change a template. The first time I tryed adding the files from a zip, but when that did not work, I imported a XML file. That also didn't work.

Now I've reinstalled the CMS MS on the server, but still same error (this time on a template called Outdoors - not the one I want for def).

Code: Select all

ERROR: at line 127 in file /home/vanessa/domains/vanessahaircreations.nl/public_html/new/lib/smarty/sysplugins/smarty_internal_templatebase.php:

Code: Select all

Unable to load template module_db_tpl 'MenuManager;Outdoors Nav'

Code: Select all

#0 /home/vanessa/domains/vanessahaircreations.nl/public_html/new/lib/classes/class.Smarty_CMS.php(324): Smarty_Internal_TemplateBase->fetch('module_db_tpl:M...', 'p15', '370b633a07295c4...', NULL, false, false, false)
#1 /home/vanessa/domains/vanessahaircreations.nl/public_html/new/lib/classes/module_support/modtemplates.inc.php(240): Smarty_CMS->fetch('module_db_tpl:M...', '', '370b633a07295c4...')
#2 /home/vanessa/domains/vanessahaircreations.nl/public_html/new/lib/classes/class.CMSModule.php(2958): cms_module_ProcessTemplateFromDatabase(Object(MenuManager), 'Outdoors Nav', '370b633a07295c4...', false, '')
#3 /home/vanessa/domains/vanessahaircreations.nl/public_html/new/modules/MenuManager/action.default.php(273): CMSModule->ProcessTemplateFromDatabase('Outdoors Nav', '370b633a07295c4...', false)
#4 /home/vanessa/domains/vanessahaircreations.nl/public_html/new/lib/classes/class.CMSModule.php(1731): include('/home/vanessa/d...')
#5 /home/vanessa/domains/vanessahaircreations.nl/public_html/new/lib/classes/class.CMSModule.php(1799): CMSModule->DoAction('default', 'm72b9f', Array, '15')
#6 /home/vanessa/domains/vanessahaircreations.nl/public_html/new/lib/module.functions.php(123): CMSModule->DoActionBase('default', 'm72b9f', Array, '15')
#7 /home/vanessa/domains/vanessahaircreations.nl/public_html/new/lib/classes/class.CMSModule.php(302): cms_module_plugin()
#8 /home/vanessa/domains/vanessahaircreations.nl/public_html/new/tmp/templates_c/763e63b089e7c52bfafe4a16588e3defdf19eb95.tpl_body.1.php(52): CMSModule::function_plugin(Array, Object(Smarty_Internal_Template))
#9 /home/vanessa/domains/vanessahaircreations.nl/public_html/new/lib/smarty/sysplugins/smarty_internal_templatebase.php(180): content_50e5e8d6c5db77_44845362(Array, Object(Smarty_Internal_Template))
#10 /home/vanessa/domains/vanessahaircreations.nl/public_html/new/lib/classes/class.Smarty_CMS.php(324): Smarty_Internal_TemplateBase->fetch(Object(Smarty_Internal_Template))
#11 /home/vanessa/domains/vanessahaircreations.nl/public_html/new/index.php(236): Smarty_CMS->fetch('tpl_body:1', 'p15', NULL, NULL, false, false, false)
#12 {main}
your help is much appreciated!
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm

Re: PHP Error when template/theme changes

Post by Jos »

Did you see the big warning notice on the themes site? (This also applies to fresh 1.11 installations)
Warning Notice:

If you have a fresh install of 1.10, not an upgrade, some of these themes will give a smarty error related to {stylesheet}, this plugin has been removed, use {cms_stylesheet} instead.

a) Open the template of the theme;
b) Search for {stylesheet};
c) Replace {stylesheet} with {cms_stylesheet};
d) Save template;
e) Open style sheets and change image calls:
old url(uploads/folder/image.jpg)
new url([[root_url]]/uploads/folder/image.jpg)
Also delete the template parameter from the menu tag.
The 'Outdoors Nav' menu template does not seem to exist, but the theme works oke with the default simple_navigation.tpl
soedje
New Member
New Member
Posts: 5
Joined: Wed Feb 24, 2010 7:34 am

Re: PHP Error when template/theme changes

Post by soedje »

I guessed I missed the warning :D. Thanks for the tip, it does work now!
Post Reply

Return to “Layout and Design (CSS & HTML)”