• lino4000

    (@lino4000)


    Initially noticed in an online server with IIS, but even in XAMPP the problem still happens.

    Installed WordPress 4.4.2 Brazilian version, I change the ‘permalinks’ to “%category%/%postname%”. Add English version. So I test a page (created by wordpress) adding English version and both (only english version) the preview and published page returns 404.

    https://www.ads-software.com/plugins/sublanguage/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter lino4000

    (@lino4000)

    Menu and search correctly shows the page. But when you enter the page, 404.
    Posts are entirely correct.

    Plugin Author maximeschoeni

    (@maximeschoeni)

    Hello,

    Thank you for reporting this issue. I’ll check whats going on.

    Of course setting permalinks to just “/%postname%” would probably fixe it.

    Hi Maxime, and thank you for the plugin…I have a similar issue to lino4000’s.

    WP 4.4.2 (Italian version), latest version of your plugin. I installed and configured everything, enabled second language (English) and translated some pages and options. “Original” and “Default” language are set on Italian, “Show slug for main language” is OFF, “Auto-detect language” and “Current language first” are ON. Permalinks are set on /%postname% only.

    • If I visit the website from Italian browser, every page works perfectly (including homepage on domain.com).
    • If I do the same from English browser, homepage doesn’t work: gives me a 404 when entering domain.com, but shows correctly when I manually give domain.com/en/, or click on menu references (every other page works perfectly).

    Already tried to update plugin settings and then permalinks…and viceversa.

    Note: if I enable “Show slug for main language”, everything works ok…but that’s far from my ideal scenario (final domain will be “.it”, so “domain.it/it/” would be an eyesore).

    https://clienti.davidelagana.it/giordano/

    Is it a bug or there’s something strange on my installation?

    Plugin Author maximeschoeni

    (@maximeschoeni)

    Hello,

    Lino4000’s issue was specifically when permalink is on “%category%/%postname%” (I’ll need to make a few change in rewrite system to make it work). But it should work fine when permalink is on /%postname%.

    Do you have other plugin dealing with url rewrite? Please try to temporarily desactivate others plugin, refresh permalink and try again.

    Hi maxime, thanks for your reply. ?? This is my current plugin list:

    Adminimize, Code Snippets, Contact Form 7, Duplicate Post, EWWW Image Optimizer, Italy Cookie Choices, Year/Copyright Shortcodes, Loft Maintenance, Members, Regenerate Thumbnails, Sassy Social Share, WP External Links, WP-Optimize, Yoast SEO + Hide SEO Bloat, plus some components for my theme (post-type and page builder).

    The only plugin that could interfere with permalinks is Yoast SEO…tried to disable it and update all permalinks/Sublanguage settings, but nothing changes. I even tried to switch WP_DEBUG to false (currently have it true) when testing those changes.

    Still getting 404 on English (secondary) homepage, when entering main domain into English language browser. ??

    Plugin Author maximeschoeni

    (@maximeschoeni)

    Did you check the “Auto-detect language” checkbox in sublanguage settings?

    Yes, I wrote my actual configuration in previous post.

    If you need further details, let me know. ??

    Plugin Author maximeschoeni

    (@maximeschoeni)

    Sorry I missed it.

    I think I fixed the problem. Please download the development version of sublanguage and replace the current sublanguage folder in your plugins directory. Thank you for pointing me this issue.

    Hi maxime, latest developement version fixes my problem. ??

    Thank you so much, I owe you a beer. If I could help you further testing anything else, let me know!

    Davide

    Plugin Author maximeschoeni

    (@maximeschoeni)

    You’re welcome!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Shows me 404 in second language’ is closed to new replies.