Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
SP and qTranslate: page not found...
Avatar
Stephane Wantiez
Member
Free Members
Offline
Jun 2, 2013 - 11:51 am

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 ?... :(

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Jun 2, 2013 - 7:59 pm

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?

Avatar
Stephane Wantiez
Member
Free Members
Offline
Jun 9, 2013 - 9:34 am

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?

Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Jun 10, 2013 - 4:52 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Jun 14, 2013 - 3:25 am

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...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Stephane Wantiez
Member
Free Members
Offline
Jun 16, 2013 - 11:48 am

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Jun 16, 2013 - 3:11 pm

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...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Stephane Wantiez
Member
Free Members
Offline
Jul 6, 2013 - 1:37 pm

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?

Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Jul 6, 2013 - 5:02 pm

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Stephane Wantiez
Member
Free Members
Offline
Jul 6, 2013 - 6:16 pm

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

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625