By Mark Melling on Tuesday, 22 July 2014
Posted in Technical Issues
Likes 0
Views 777
Votes 0
I've got an issue with the Xmap sitemap and Easyblog.

In the XML sitemap, the urls look correct eg
http://singlepage.co.uk/blog/a-picture-is-worth-a-thousand-words

But the same post has a different url in the HTML sitemap:
http://singlepage.co.uk/sitemap/a-picture-is-worth-a-thousand-words

Note this url contains "sitemap" instead of "blog".

Here's my sitemap page:
http://singlepage.co.uk/sitemap


I'm using the Easyblog plugin for Xmap. I've updated the plugin to correct the "double slash" issue as described here:
http://stackideas.com/forums/xmap-plugin-double-urls-for-easyblog-items-only

Not sure whether sh404SEF is a factor here. I've tried deleting the sitemap, purging all sh404SEF urls, and creating a new sitemap but the problem persists.

I'm using Joomla 3.
Hello

This is most likely an issue caused by wrong Itemid value inserted into that blog article non-sef url. Probably that sitemap is inserting a wrong Itemid value in the non-sef url ( it insert the menu id of sitemap menu item, and not the id of easyblog menu item of your website )

Try comparing this two sef urls:

sitemap/a-picture-is-worth-a-thousand-words

blog/a-picture-is-worth-a-thousand-words

and see what`s the difference between their corresponding non-sef urls in sh404sef at "URL manager"

Rgds
·
Tuesday, 22 July 2014 21:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Here are the two non-sef urls.

sitemap/a-picture-is-worth-a-thousand-words
index.php?option=com_easyblog&Itemid=265&id=3&lang=en&view=entry

blog/a-picture-is-worth-a-thousand-words
index.php?option=com_easyblog&Itemid=240&id=3&lang=en&view=entry

As you said, the Itemids are different.

What's the best way to fix this?

I suppose I could simply amend the SEF urls in sh404SEF so that they are the same. But would I then need to manually fix the SEF url for every new blog post?

Also, this leaves the underlying non-sef urls different.

I'd be grateful for any help.

Thanks.
·
Tuesday, 22 July 2014 22:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello

I suggest you to do that fix that xmap plugin which insert that wrong &Itemid=265 value in the blog non-sef urls and make sure it uses easyblog menu item id 240 instead, then go to "URL manager" delete those blog sef urls which are with sitemap.

Probably that xmap plugin is written incorrectly and does not detect the correct Itemid of easyblog

Rgds
·
Tuesday, 22 July 2014 22:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,

If you are still having issues with this after trying out the suggestions from Barbu, please provide us with both the back end and FTP access to the site
·
Tuesday, 22 July 2014 23:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for your help.

I'm actually using an amended version of the Easyblog plugin for Xmap downloaded from this forum - see:
http://stackideas.com/forums/xmap-plugin-double-urls-for-easyblog-items-only

I'm attaching the com_easyblog.php from the amended plugin.

I'd be grateful for any advice on how to amend this to correct the itemid issue. But I don't want to re-introduce the url double slash issue!

Thanks again.
·
Tuesday, 22 July 2014 23:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,

Please provide us with the back end and FTP access so that we can check on your site
·
Wednesday, 23 July 2014 00:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

I've added admin and FTP details to my profile.

I'd be grateful if you would check back with me before re-installing anything eg EasyBlog. I'm hoping the problem can be resolved by amending the EasyBlog plugin for Xmap.

Thanks very much for your help.
·
Wednesday, 23 July 2014 16:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,

I am really sorry for the delay of my reply, I missed your post earlier as I was extremely occupied with tons of meetings. I have applied some fixes for you on the xmap file, can you see if the URL that is generated is what you are looking for?
·
Friday, 25 July 2014 02:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Thanks very much for your reply. This now looks better but there's still an issue.

The HTML sitemap has one incorrect url and it relates to the main Easyblog page (latest posts):
- it is the link saying "Home" immediately below the link saying "Blog"
- the url is http://singlepage.co.uk/sitemap/latest (note "sitemap" in the url - where it should contain "blog")
- this link is not in the XML sitemap, so I can't delete the link there!!

The HTML sitemap is at:
http://singlepage.co.uk/sitemap

The XML sitemap is all OK - see:
http://singlepage.co.uk/index.php?option=com_xmap&view=xml&tmpl=component&id=7

If you click on that "Home" link on the HTML sitemap page, and then click through to the individual blog posts, they also incorrectly have "sitemap" in their urls - compared with accessing them from the "About us ... Blog" menu item, when the individual posts correctly have "blog" in their urls. So this is potentially a little confusing for users, and it causes the wrong menu item to get highlighted to indicate the current page.

I've purged all sh404SEF urls and re-created the sitemap and still have this issue.

I'd be grateful for any more help you can give.

Thanks.
·
Friday, 25 July 2014 23:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,

I am really sorry for the delay of this reply as it is a weekend for us here. I have applied some fixes for you on the xmap plugin, can you try this again?
·
Saturday, 26 July 2014 02:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks so much for your help - this looks absolutely fine now!
·
Monday, 28 July 2014 16:05
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Mark
·
Monday, 28 July 2014 16:51
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post