404s in latest BP tracked down to qTranslate!
-
There have been a few problems lately since I’ve been upgrading from BuddyPress RC1 to RC2 and finally to v1.0. First I’ve been thinking the problem was strictly BuddyPress related because the slugs like “groups”, “blogs”, “activity” and other BuddyPress specific slugs gave a dreadfull 404 error.
The problem was tracked down to qTranslate; which cleans the url in it’s hooks routines.
A temporary fix, to get your main blog working with BuddyPress and qTranslate is to disable clean_url temporary. This could affect SEO results so be careful!
edit qtranslate_hooks.php
find the line add_filter(‘clean_url’,’qtrans_convertURL’);
change this to:
if (!$wpdb->blogid = 1) { // or any blogid which doesn’t need to serve this ‘bug’…
add_filter(‘clean_url’,’qtrans_convertURL’);
}
I’ve tried putting the remove_filter(‘clean_url’,’qtrans_convertURL’) line in a seperate file to serve as plug-in but it seemed not to work at all, only by changing hard-coded… Anyone?
- The topic ‘404s in latest BP tracked down to qTranslate!’ is closed to new replies.