Elxis CMS Forum

Support => General => Topic started by: xmanhattan on July 01, 2009, 15:57:04

Title: Sitemap problem during page display
Post by: xmanhattan on July 01, 2009, 15:57:04
Hello all,

I just had the time to update my site to the latest version 2009.  That works but after that I removed the old sitemap as per a previous forum topic, deleted the top menu item, cleaned up and then added the top menu item again.

After I called the sitemap, I am seeing this:
Code: [Select]
URI: index.php?option=com_sitemap&task=sitemap&Itemid=202
Path: /administrator/components/com_sitemap/extensions/stargallery.sitemap.php
Line: 61
Attempt to assign property of non-object

Please let me know what might be the solution when you can.

Thank you.

Title: Re: Sitemap problem during page display
Post by: Ivan Trebješanin on July 01, 2009, 21:22:49
You have a problem with stargallery SEO extension or the stargallery itself, not with  sitemap component. What is the line 61 in administrator/components/com_sitemap/extensions/stargallery.sitemap.php?
Title: Re: Sitemap problem during page display
Post by: datahell on July 01, 2009, 21:27:38
My mistake, sorry.

Open file:
/administrator/components/com_sitemap/extensions/stargallery.sitemap.php
Go to line 61
Change this:
if ($row->cat_parent == 0) { $row->cat_parent = ''; }
to this:
if ($row['cat_parent'] == 0) { $row['cat_parent'] = ''; }

I will fix it and update the file on EDC now. Thanks for the bug report.
Note: Star Gallery is deprecated. Use IOS Gallery instead.
Title: Re: Sitemap problem during page display
Post by: xmanhattan on July 02, 2009, 09:57:56
Works great, Thank you