Support Forum

SP and qTranslate: page not found…

SW Stephane Wantiez
Stephane Wantiez
Member

I have a bilingual forum (fr/en) that uses qTranslate in order to have all my pages and posts in both English and French languages.
http://www.swantiez.org/wolf/

And I have also transferred my old forum to a brand new Simple:Press installation (thanks to gConverter).

But regularly, the creepy “page not found” error comes back whenever I click on a forum or a topic of my SP forum, and it’s hard to get rid of it… Usually, I fix in the DB the permalink in order to remove the “/fr/” prefix, but now it’s coming back automatically, and I really can’t fix the problem anymore…

I don’t want to get rid of qTranslate (many of my pages and posts are already translated!) and Simple:Press (all my forums have been moved there!), so want can I do to make it work, at least ?… :(

10 Answers

New Answer

MP Mr Papa
Mr Papa
Member

unfortunately, qt translator blithely inserts its url rewriting into the middle of existing urls and rewrites.. which as you can see, does not play nice with simple press.  we have a ticket to look into if anything we can do but its been low priority since not requested much…

does the plugin have an option to add its url fragment at the end of the url?  or via query args?

SW Stephane Wantiez
Stephane Wantiez
Member

Yes, there is an option for qTranslate to either add this “/fr/” or “/en/” prefix to all the pages (or no prefix for the default language of the site), or use a “?lang=fr” variable.

It’s very late for me to change it, as I have many links in my site using that prefix to reference pages in the right language…

The forum worked before, when the permalink was set w/o that prefix in the adress. But now, whenever I try to change it in DB back to such an adress (http://www.swantiez.org/wolf/forum), it seems to be set automatically back to a “regular” adress with the prefix (http://www.swantiez.org/wolf/fr/forum). Is it possible? How can I fix the permalink once for all?

It’s really disappointing, because qTranslate is very useful, and Simple:Press seemed to be perfect for my site (I even paid gConvertor to make the port of all the posts from an old phpBB forum to this one…).

Does anybody from your team can check my settings on my site to ensure there’re good, and fix that issue? Do you have such direct support?

YS Yellow Swordfish
Yellow Swordfish
Member

The query argument method would probably be safe. The problem really lies in the use of the WordPress rewrite rules which is the method Simple:Press uses to resolve it’s urls – along with most other plugins that create ‘virtual’ pages. I will think more on this and do some playing with the code but I have to say do not hold your breath on finding a simple solution quickly.

As to your current forum url question then Please PM credentials to both myself and to ‘Mr Papa‘. Please include in the PM a link to your site, a link to this thread and brief reminder of the problem. And one of us will take a look for you.

YS Yellow Swordfish
Yellow Swordfish
Member

OK – I have been looking at your settings but I do not know enough about this translation plugin at the moment. How does the user stop the language code being included in the url for a single page object? That is going to be the key here…

SW Stephane Wantiez
Stephane Wantiez
Member

It’s in the Settings/Languages/Advanced settings.

YS Yellow Swordfish
Yellow Swordfish
Member

Well – bearing in mind that sadly i speak no French – I do not see where ine can do this.

Perhaps you could turn off the the language code being included in the forum page URL…

SW Stephane Wantiez
Stephane Wantiez
Member

Finally, I got some time to deactivate the language prefix in qTranslate settings, and use a path variable instead. Hence, I had to fix all the links in the pages of my site.

The adress of the site in English is now : http://www.swantiez.org/wolf/?lang=en

Normally, you should be able to access the forum administrative dashboard in English…

I’ve checked the forum settings in order to update the permalink, but it remains with a “/fr/” prefix within… Could you take a look at that?

YS Yellow Swordfish
Yellow Swordfish
Member

Seems to suggest that the WordPress function get_permalink() is still returning a permalink with the ‘fr’ still in place. If that is the case and it can not be stopped from doing it then it might need a manual edit within the database table.

SW Stephane Wantiez
Stephane Wantiez
Member

I’ve just fixed the permalink in DB, but it’s still doing the 404 error…

YS Yellow Swordfish
Yellow Swordfish
Member

I am afraid I really do not know enough about gTranslate to understand how it returns permalinks, effects rewrite rules and interferes in the underlying systems WordPress has in place.

Can anyone else shed any light on this?