Page 1 of 1

Autometa produces error

Posted: Thu Mar 05, 2015 3:26 pm
by thysgc
(CMSMS 1.6.5)

I have uploaded function.autometa.php into the plugin directory of my site. It now appears in the list of tags. I can open and read it there.

Then I have inserted {autometa} just after {metadata} in my main template.

When I try to open any page of the website I get the error:
PHP Fatal error: Call to undefined function cmsms() in D:\domains\<mydomainname>\wwwroot\plugins\function.autometa.php on line 23

This is line 23: function smarty_cms_function_autometa($params, &$smarty)

Any body any idea what I did wrong? Thanks a million!

Re: Autometa produces error

Posted: Thu Mar 05, 2015 4:04 pm
by velden
Loosely translated that error means: upgrade to the latest version of CMSMS.

Your version is way to old and not supported anymore.

Before upgrading backup files and database and then read this:
http://docs.cmsmadesimple.org/upgrading/old-versions

Re: Autometa produces error

Posted: Thu Mar 05, 2015 4:06 pm
by Jo Morg
thysgc wrote:Any body any idea what I did wrong? Thanks a million!
Latest autometa tag is not compatible with such an old version of CMSMS. You won't have much support until you upgrade CMSMS anyway. In any case your site is vulnerable as it is without being up to date.
note: velden beat me to it.