• Resolved pokmonde

    (@pokmonde)


    Hello,

    I enabled the setting Use a subdirectory for the default language in the plugin Settings page. This has blocked the update of pages and posts using the default WordPress editor. When I disable this setting, everything is back to normal.

    Here is the debug info I found: When I click the Update button, it sends a request to https://DOMAIN/en/wp-json/wp/v2/pages/2?_locale=user (note the /en/) which gives a 404 error.

    • This topic was modified 1 year, 4 months ago by pokmonde.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    To resolve this issue, you should add the following path in the settings of TranslatePress. The path you need to add is:

    https://DOMAIN/en/wp-json/*

    This should be added in TranslatePress -> Advanced Settings -> Exclude Strings Tab -> Exclude Paths From Translation.

    After adding, it should look like the example indicated in the image.
    https://ibb.co/hFMRjc2
    ?
    ??I hope this helps in resolving the issue.

    Best Regards,

    Thread Starter pokmonde

    (@pokmonde)

    Hello Denis, thank you for your reply.

    I added this exclusion in my settings but it still doesn’t work. As a side note, my domain name starts with “en” so it may interfere here.

    When I add https://enxxx.yyy/en/wp-json/* in the “Exclude path from translation”, the Save URL in the Post editor gets modified to https://enxxx.yyy/en/xxx.yyy/wp-json/wp/v2/posts/1/?_locale=user so there might be a bug here.

    • This reply was modified 1 year, 4 months ago by pokmonde.
    Plugin Support Alex

    (@alexcozmoslabs)

    We need to take the pulse of this ticket. Is it still relevant?
    In the meantime, I set this ticket as Resolved. You can also change its status back to unresolved and let us know by replying to this topic if your request still needs attention.
    However, we encourage you to leave this ticket as it is and open a new one where to mention the issue again and ask for support. You can mention the link to this thread in the new ticket.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can’t save posts when default subdirectory is enabled’ is closed to new replies.