Polylang breaking static front page on new WP 3.5 installation
-
Hi Chouby, firstly I’d like to echo everyone else’s praise for Polylang. Thanks for this excellent plugin.
I’ve had a search around but couldn’t find any reports directly related to the issue I’m having. I am using a fresh copy of InstantWP and upgraded to WP 3.5 immediately. Using latest version of Twenty Twelve and Polylang 0.9.8.
While testing Polylang, I’ve noticed that there is some redirection problem with a combination of
/%postname%/
(pretty) permalinks and a static front page. The home pagehttps://127.0.0.1:4001/wordpress/
will not load in this case. I have translated all the necessary pages.If I switch to default permalinks, or use latest posts as the front page,
https://127.0.0.1:4001/wordpress/
loads no problem.Firefox usually just displays this message:
The page isn’t redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to accept cookies.Once or twice I was able to display PHP error codes, the first time was when I was poking around the theme customiser, but I can’t remember how they came up the second time.
Warning: rtrim() expects parameter 1 to be string, object given in C:\Users\User\Downloads\InstantWP\InstantWP_4.3\iwpserver\htdocs\wordpress\wp-includes\formatting.php on line 1381
This is referring to function
untrailingslashit()
Warning: Cannot modify header information - headers already sent by (output started at C:\Users\User\Downloads\InstantWP\InstantWP_4.3\iwpserver\htdocs\wordpress\wp-includes\formatting.php:1381) in C:\Users\User\Downloads\InstantWP\InstantWP_4.3\iwpserver\htdocs\wordpress\wp-includes\pluggable.php on line 876
This is referring to function
wp_redirect()
Here are my Polylang settings:
[Default language] English[Detect browser language] Checked
[URL modifications]
1. Language set from context (Selected)
2. Language code /en/ added to pretty permalinkss (Unselected)3. Remove /language in pretty permalinks (Selected)
4. Keep /language/ in pretty permalinks (Unselected)5. Hide URL language information for default language (Unselected)
6. Redirect language page to static front page (Unselected)[Synchronisation] Checked
When I select option 6 in that list, the front page loads again, but in the opposite way to how it is supposed to work.
I.e.
https://127.0.0.1:4001/wordpress/
redirects tohttps://127.0.0.1:4001/wordpress/en/
Have I just spent too long documenting how the plugin is supposed to work? I would expect this behaviour if I had option 2 selected. Or is this an actual bug?
My preference would be to always have the neatest URL possible: I’d like the homepage to just be https://domain.com/ when I deploy it. Not https://domain.com/fr/ (or equivalent language code).
Thanks in advance for your help! I’m happy to test the 1.0 beta if you like, but I don’t have access to a webserver at the moment, so it would be once again through InstantWP.
Cheers,
Lloyd
- The topic ‘Polylang breaking static front page on new WP 3.5 installation’ is closed to new replies.