Gengo und WordPress 2.7

Ich hatte Probleme damit, Gengo und WordPress 2.7 gemeinsam zum Laufen zu bringen und die Option zum Anhängen von Sprachkürzeln in Gengo zu aktivieren (Gengo should append language codes to permalinks automatically.), da Gengo in eine Endlos-Weiterleitungsschleife ging. Ich dachte schon, das wäre eine grundsätzliche unverträglichkeit zwischen den beiden und schaltete deswegen diese Option aus, was dazu führte, dass sämtliche Links nicht mehr funktionierten. Joshreisner schlägt dagegen im Forum auf wordpress.org vor, die Permalink-Strukturen neu zu speichern.

Und tatsächlich geht man auf Einstellungen>Permalinks und speichert einfach die bereits gespeicherte Permalink-Struktur neu, dann geht das Problem der Endlosschleifen weg! Es hat wahrscheinlich damit zu tun, dass Gengo beim Speichern der Permalinks selbst eine Aktion durchführt.

Gengo and WordPress 2.7

I had an issue with gengo getting into an endless redirect loop once i activate the option “Gengo should append language codes to permalinks automatically.”. I thought this was an issue of gengo-compatibility and deactivated the option making many links unusable. Now i just found this thread over at wordpress.org where joshreisner suggests simply saving the permalink structure again:

i just upgraded to 2.6.1 using the automatic updater and it caused a redirect loop on my site. whenever i would visit it it would be like “the address /en/en/en/en/en/en/en etc was in a repeat loop that would never be resolved”

i pulled my hair out for a minute but then figured it out. just go to the permalinks settings page (in wp, not gengo) and hit save. no change, just save. that fixed the problem!

Thanks. This works. It seems gengo uses some action that is being pulled once the permalink structure is saved..

Gengo and woopra plugin

I just found out, that there is a problem with running the woopra wordpress plugin together with gengo. Gengo is the multilingual plugin running in the background of this blog. Woopra is an external statistics program that has a nice wordpress plugin (which by the way is looking for some translation work itself).

Anyway, when i activate the woopra-plugin it says

Fatal error: Call to a member function wp_rewrite_rules() on a non-object in /var/www/oan/htdocs/wp-includes/classes.php on line 145

First, i thought it’s a compatibility thing with wordpress 2.7 (right now: “2.7-almost-beta), but it seems to work when i deactivate gengo. I found this quote on the gengo-blog which i am quoting since the site has some database problems:

If that happens, the plugin you just activated has been written incorrectly. It is trying to set its language too early, before Gengo has loaded. The solution is an easy one – the call to load_plugin_textdomain() in the plugin must be moved so that it is run on the ‘init’ hook. Do your plugin author a favour – drop them an email letting them know the problem and see if they’ll fix it – many authors don’t know that this is even a problem! Make sure you’re polite when you do, though. From personal experience, I can tell you it’s not pleasant to receive an angry email from a stranger, demanding that you fix something that you’ve released for free.

Hope, someone from over at woopra can change the code accordingly. Meanwhile i’m relying on the stattraq-plugin..