Page 1 of 1

[Solved] Sitemap Made Simple Error

Posted: Fri Apr 20, 2012 7:03 am
by chrisbt
I'm getting an error with Sitemap Made Simple. It seems that the module sometimes struggles to function with calls to other modules.

The error in the output that I am getting is:

Code: Select all

string(171) "Smarty error: [in module_db_tpl:SiteMapMadeSimple;xml_Sitemap-with-News-Blog-Products-Gallery line 50]: [plugin] unknown tag - 'Products' (core.load_plugins.php, line 198)"
I have had similar errors with the calls to Blog and Gallery.

The errors go away if I clear the site's cache and update the sitemap manually but are back again as soon as the client updates anything on the site. I then get Smarty errors turning up in the sitemap output that stops Google reading the sitemap.xml file.

Using all current latest modules. Sitemap Made Simple v1.2.6.

Re: Sitemap Made Simple Error

Posted: Fri Apr 20, 2012 7:10 am
by Rolf
Humm, I tried that too yesterday, got the same error.
Will ask Calguy.

grtz. Rolf

Re: Sitemap Made Simple Error

Posted: Fri Apr 20, 2012 7:23 am
by chrisbt
Thanks Rolf.

When I had calls in the sitemap template to other modules it also seemed to mess up the Sitemap Made Simple operation. The submit button label lang string was changed and in some cases the sitemap wouldn't actually be updated.

I got around this by grabbing a temporary copy of some Smarty variables at the start of the template and reinstating them at the end of the template:
{assign var=mod value=$tempmod}
{assign var=returnid value=$returnid}
{assign var=actionid value=$tempactionid}
{assign var=actionparams value=$tempactionparams}

Re: Sitemap Made Simple Error

Posted: Fri Apr 20, 2012 3:55 pm
by Rolf
Try this

Code: Select all

 {assign var='foo' value=$mod}{Products assign='junk'}{assign var=mod value=$foo}
instead of

Code: Select all

{Products assign="junk"}

Re: Sitemap Made Simple Error

Posted: Fri Apr 20, 2012 4:13 pm
by chrisbt
Brilliant thanks. So simple. Seems to work and I'll keep and eye on the sitemap for the next week.

Bedankt

Chris

Re: Sitemap Made Simple Error

Posted: Sat Apr 21, 2012 9:21 am
by M@rtijn
Please add [solved] in front of the title of your first post in this topic