FAQ checked and followed on my site :), same as before.
Then tried this:
– brand new installation of WP 3.4
– added and activated qTranslate latest dev version (http://downloads.wordpress.org/plugin/qtranslate.zip)
– created a new Page “Prova”
– I can see it at /prova and /en/prova
– added Qtranslate slug 1.0
– /prova OK, /en/prova sends 404
– visited Settings -> Permalink and saved (.htaccess writable)
– /prova OK, /en/prova sends 404
– visited Settings -> Slug options and saved (.htaccess writable)
– /prova OK, /en/prova sends 404
– compiled “Slug” panel in the modify Page: “prova” for italian (default language) and “test” for english
– /prova OK, /en/test sends 404, /en/prova redirects to /en/test
– visited Settings -> Permalink and saved (.htaccess writable)
– /prova OK, /en/test sends 404, /en/prova redirect to /en/test
– visited Settings -> Slug options and saved (.htaccess writable)
– /prova OK, /en/test sends 404, /en/prova redirect to /en/test
I go on with some debug.
Any help appreciated.
Thanks
qtranslate-slug.php line 883:
$page = isset($query['page_id']) ? get_page($query['page_id']) : $this->get_page_by_path($query['pagename']);
$query, for Italian, is :
Array
(
[page] =>
[pagename] => prova
)
while for English is:
Array
(
[page] =>
[pagename] => wordpress/test
)
so $page is empty. Go on with debug, hope this helps.
Plugin Author
Carlos
(@carlos_a_sanz)
Witch plugins are using too?
Just qTranslate and Qtranslateslug
“wordpress” is the folder of the installation (c:/xampp/htdocs/wordpress).
In another site i have for the default page:
Array
(
[page] =>
[pagename] => contatti
)
and for English:
Array
(
[page] =>
[name] => contacts
[category_name] => silga
)
completely different 😐
Maybe add_filter( 'request', array($this, 'filter_request') );
(qtranslate-slug.php line 535) hasn’t the right priority?
Plugin Author
Carlos
(@carlos_a_sanz)
I think the problem could be that your installation is not on root, let me check this…
Plugin Author
Carlos
(@carlos_a_sanz)
Sure, there is a little bug on rewrite for installations on non-root folders, and this cause your 404. Try to put your wordpress installation on /root.
I’ll fix this to 1.1, with the adaptations with other plugins.
Thanks for report!
C.
Not working even in the root 🙁
I think we should focus on the params in $query. At first I thougt that filter_request had problems, but the print_r you see above are taken from at the beginning of this function so probably there’s something else that changes it in Qtranslate slug plugin
Plugin Author
Carlos
(@carlos_a_sanz)
Hi Matteo,
i just uploaded a new version 1.1, try this one.
it should work with:
- any permastruct ( like /%category%/%postname% )
- any installation base / or /dev/
- adds support to multisite