[Solved] Sitemap Made Simple Error

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
chrisbt
Dev Team Member
Dev Team Member
Posts: 197
Joined: Sun Sep 05, 2010 6:11 am
Location: Sheffield, UK

[Solved] Sitemap Made Simple Error

Post 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.
Last edited by chrisbt on Sat Apr 21, 2012 9:40 am, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Sitemap Made Simple Error

Post by Rolf »

Humm, I tried that too yesterday, got the same error.
Will ask Calguy.

grtz. Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
chrisbt
Dev Team Member
Dev Team Member
Posts: 197
Joined: Sun Sep 05, 2010 6:11 am
Location: Sheffield, UK

Re: Sitemap Made Simple Error

Post 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}
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Sitemap Made Simple Error

Post 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"}
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
chrisbt
Dev Team Member
Dev Team Member
Posts: 197
Joined: Sun Sep 05, 2010 6:11 am
Location: Sheffield, UK

Re: Sitemap Made Simple Error

Post by chrisbt »

Brilliant thanks. So simple. Seems to work and I'll keep and eye on the sitemap for the next week.

Bedankt

Chris
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm
Location: the Netherlands

Re: Sitemap Made Simple Error

Post by M@rtijn »

Please add [solved] in front of the title of your first post in this topic
Make your community a better place!
Post Reply

Return to “Modules/Add-Ons”