Google (XML) Sitemaps Generator for WordPress 2.7

Having Problems? Need Help? Post here!

Google (XML) Sitemaps Generator for WordPress 2.7

Postby danilo » Wed Jan 21, 2009 1:14 pm

Hello,

qtranslate 2.1.4 (and 2.1.5, don't know about earlier versions) hinders the Google (XML) Sitemaps Generator for WordPress plugin (current version) to work: no configuration page is displayed, only the headline and the rest is blank (no errors). I could activate it without problems but can't access the options page.
When I deactivate qtranslate, the sitemap generator works like it should. Also my setup is a pretty fresh and clean install.
I have read that it does not yet fully support qtranslate, but if I'm right it should work for one language, shouldn't it?
After some research I even activated $useQtranslate in the sitemap-core.php, but nothing changed.
I also contacted the author of the sitemap plugin, but I think the problem is with qtranslate as it breaks the sitemap plugin and not the other way around.
What am I doing wrong or what could be the problem?

Any help or ideas greatly appreciated. Thank you.
danilo
 

Re: Google (XML) Sitemaps Generator for WordPress 2.7

Postby olovito » Wed Jan 21, 2009 3:14 pm

I also have problems with XML Google sitemaps generator together with Qtranslate, but only on sites that I've set up at a certain hosting service (one.com, phpinfo here). On my regular hosting service (oderland.com, phpinfo here) it all works fine.

On my sites wih problems the configuration page works fine, but when I save options in Google Sitemaps the priority settings for the sitemap all gets set to '0' (zero) except for the front page that gets set to '1'. This problem has been around for all versions of Qtranslate I've used so far.
olovito
 
Posts: 18
Joined: Thu Jun 26, 2008 9:38 pm
Location: Sweden

Re: Google (XML) Sitemaps Generator for WordPress 2.7

Postby Tom » Thu Jan 29, 2009 4:40 am

At moment i have the some problem. It seems the problem has to do with a function "qtrans_getEnabledLanguages". This was in the past with qTranslate v1.x available but with 2.x no more. I send yesterday already a email to the developer of Google Sitemaps Generator, but no answer yet. Maybe Qian Qin can give us a advice what to do.
Tom
 

Re: Google (XML) Sitemaps Generator for WordPress 2.7

Postby Qian Qin » Thu Jan 29, 2009 10:59 am

I sent Arne an email with a patch making the plugins work. I guess he didn't had the time to test it. Here you go.
Attachments
sitemap-core.diff
Google Sitemap Patch
(1.4 KiB) Downloaded 151 times
Qian Qin
Site Admin
 
Posts: 889
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

Re: Google (XML) Sitemaps Generator for WordPress 2.7

Postby olovito » Thu Jan 29, 2009 1:30 pm

Thx. Works fine.
olovito
 
Posts: 18
Joined: Thu Jun 26, 2008 9:38 pm
Location: Sweden

Re: Google (XML) Sitemaps Generator for WordPress 2.7

Postby andrea » Wed Feb 25, 2009 9:42 pm

I'm not experienced with .diff files and am having trouble integrating the changes manually.
Would anyone be willing to either upload a copy of the sitemap-core.php file or a text file with the php code? I would really appreciate it.
I'm running version 3.1.2 of Google XML Sitemaps.

Thanks! :)
andrea
 
Posts: 2
Joined: Thu Jan 08, 2009 11:11 pm

Re: Google (XML) Sitemaps Generator for WordPress 2.7

Postby Blutarsky » Wed Apr 22, 2009 10:20 pm

Same as Andrea.

Sorry guys, but I have edited the file using the .diff included in this thread but I still get duplicates... basically what the XML sitemap plugin does is duplicating the URL of the translated messages, so the same post is included two times,
in the sitemap the posts appears two times, basically the link appears with and without the /xx/ 2 characters language code.

example:

http://mysite.com/2009/04/16/ドキュメントスキャナーの新製品として、高速・/

and

http://mysite.com/ja/2009/04/16/ドキュメントスキャナーの新製品として、高速・/


Any help? As I'm also using XML sitemap 3.1.2 with WP 2.7.1, can someone saint please post the corrected sitemap php file?
Blutarsky
 
Posts: 43
Joined: Tue Feb 17, 2009 11:55 am

Re: Google (XML) Sitemaps Generator for WordPress 2.7

Postby Blutarsky » Thu Apr 23, 2009 7:15 am

Looking into sitemap-core.php it looks like the problem is due to the following:

1) the post is added whatever the language using the base url
2) if the post has a translated language, is added with the translated URL (duplicate content here)...

The above doesn't work if a post exists only in the translated version, because the default URL won't be correct (without the 2bytes language code)

sitemap-core.php needs to be modified in a way, so it should check if the default URL has contents for the default language, if not, skip AddURL
Blutarsky
 
Posts: 43
Joined: Tue Feb 17, 2009 11:55 am

Re: Google (XML) Sitemaps Generator for WordPress 2.7

Postby NeoEGM » Thu Sep 03, 2009 7:15 am

Here I've just published a modified version of the Google (XML) Sitemaps Generator Plugin to make it support qTranslate:

http://www.neoegm.com/tech/wordpress/pl ... ss-plugin/

I've applied the modifications proposed by Qian Qin and I'll be updating the plugin with each release...

Hope it helps!

NeoEGM
http://www.neoegm.com/
NeoEGM
 
Posts: 4
Joined: Thu May 28, 2009 5:38 am

Re: Google (XML) Sitemaps Generator for WordPress 2.7

Postby Blutarsky » Thu Sep 03, 2009 8:04 am

Thanks
Blutarsky
 
Posts: 43
Joined: Tue Feb 17, 2009 11:55 am

Next

Return to qTranslate Support Forum

Who is online

Users browsing this forum: Google [Bot], MSN [Bot] and 1 guest