Page 1 of 1
Fatal errors on sitename, metadata & content? (Site not functioning basically)
Posted: Wed Dec 24, 2008 11:12 pm
by GregP
Hi,
I've got 2 sites with the same error
http://www.gilldeneholidaycottage.com/
http://www.gillwoodbedandbreakfast.com/
string(106) "Smarty error: [in template:20 line 4]: [plugin] unknown tag - 'sitename' (core.load_plugins.php, line 123)" string(103) "Smarty error: [in template:20 line 4]: [plugin] unknown tag - 'title' (core.load_plugins.php, line 123)" string(106) "Smarty error: [in template:20 line 5]: [plugin] unknown tag - 'metadata' (core.load_plugins.php, line 123)" string(108) "Smarty error: [in template:20 line 6]: [plugin] unknown tag - 'stylesheet' (core.load_plugins.php, line 123)" string(106) "Smarty error: [in template:20 line 64]: [plugin] unknown tag - 'content' (core.load_plugins.php, line 123)"
Fatal error: Call to undefined function smarty_cms_function_sitename() in /home/lakeville/gillwoodbedandbreakfast.com/tmp/templates_c/%%7E^7E8^7E8F1701%%template%3A20.php on line 8
The same error applies to both sites, does anything obvious stand out as to what the problems are?
Happy Xmas and many thanks in advance,
Greg
Re: Fatal errors on sitename, metadata & content? (Site not functioning basically)
Posted: Wed Dec 24, 2008 11:16 pm
by Nullig
Clear the site cache in Admin.
What led to the failure?
Did you upgrade anything? Add module(s)?
We need a little more info about your setup, if you want some help.
Nullig
Re: Fatal errors on sitename, metadata & content? (Site not functioning basically)
Posted: Wed Dec 24, 2008 11:58 pm
by calguy1000
re-upload the files and use the site validation functionality.
Re: Fatal errors on sitename, metadata & content? (Site not functioning basically)
Posted: Fri Dec 26, 2008 12:44 pm
by GregP
Sorry about the lack of info. Basically, I've made no changes whatsoever to the sites, I haven't actually logged in for months on end, so the cmsms builds are very out of date (1.0.5 in fact!)
When you say re-upload the files, you mean the latest CMSMS build, right? Can you provide me a link with more info on this site validation functionality too, please? I'm not familiar with that..
Re: Fatal errors on sitename, metadata & content? (Site not functioning basically)
Posted: Mon Dec 29, 2008 3:34 pm
by GregP
I'm getting somewhere now I think. I've upgraded to the latest version, but it doesn't seem to like the metadata on
http://www.gillwoodbedandbreakfast.com/ ?
I'm using this;
{sitename} - {title}
{metadata}
{literal}
_uacct = "UA-437283-10";
urchinTracker();
{/literal}
As you can see from the URL it displays the content, but not the stylesheet..
Re: Fatal errors on sitename, metadata & content? (Site not functioning basically)
Posted: Mon Dec 29, 2008 3:42 pm
by Rolf
Hey GregP
Do you have attached the stylesheets to your template?
Layout -> Templates -> CSS (Attach Atylesheets)
Rolf
Re: Fatal errors on sitename, metadata & content? (Site not functioning basically)
Posted: Mon Dec 29, 2008 4:44 pm
by GregP
Hi Rolf,
Good shout! The presentation is now fixed on gillwoodbedandbreakfast.com - but doesn't like my page title or content block:
{sitename} - {title} &
{content}
I guess this is no longer the right code in newer versions of CMSMS?
I get this error:
string(118) "Smarty error: [in template:20 line 4]: syntax error: unrecognized tag 'sitename' (Smarty_Compiler.class.php, line 583)" string(115) "Smarty error: [in template:20 line 4]: syntax error: unrecognized tag 'title' (Smarty_Compiler.class.php, line 583)" string(118) "Smarty error: [in template:20 line 5]: syntax error: unrecognized tag 'metadata' (Smarty_Compiler.class.php, line 583)" string(118) "Smarty error: [in template:20 line 64]: syntax error: unrecognized tag 'content' (Smarty_Compiler.class.php, line 583)"
Re: Fatal errors on sitename, metadata & content? (Site not functioning basically)
Posted: Mon Dec 29, 2008 5:15 pm
by Rolf
When you look into the tags area of the admin:
-> Extentions -> Tags
Are the {sitename} and {title} tags present?
®olf
Re: Fatal errors on sitename, metadata & content? (Site not functioning basically)
Posted: Mon Dec 29, 2008 6:51 pm
by GregP
Both tags are present there, yes.
Re: Fatal errors on sitename, metadata & content? (Site not functioning basically)
Posted: Mon Dec 29, 2008 6:56 pm
by Nullig
It looks like the site is working, to me. Have you cleared your browser cache?
Nullig
Re: Fatal errors on sitename, metadata & content? (Site not functioning basically)
Posted: Mon Dec 29, 2008 7:08 pm
by Rolf
When do you get this error message, Greg?
Like Nullig says the site looks fine, except there is no title in the webbrowser.
Mail us perhaps the full template...
Re: Fatal errors on sitename, metadata & content? (Site not functioning basically)
Posted: Mon Dec 29, 2008 7:17 pm
by Rolf
Is it not working in this website, Greg:
http://www.gilldeneholidaycottage.com ?
Saw this tag in your template:
Code: Select all
<title>{global_content name='TitleText'} | {title}</title>
Don't think this is going to work...
please change it to:
Code: Select all
<title>{sitename} - {title}</title>
Let's see what is happening now...
Rolf
Re: Fatal errors on sitename, metadata & content? (Site not functioning basicall
Posted: Tue Dec 30, 2008 12:12 am
by Dr.CSS
That means they are using {literal} around those tags so smarty will show them as the are in the template, {literal} {/literal} are only for non CMSMS/smarty calls like JS/CSS or whatever you want to include in a template that has { } in it...