• Resolved mctwp

    (@mctwp)


    Original language is English
    Translated language is Chinese

    English language is working correctly.

    However when in Chinese language site and you click to go to “next post”, “previous post” the URL gives a 404 because it is going to English and not Chinese.

    Same thing is happening in the sidebar widget for “Latest Posts” and the main navigation.

    What am I doing wrong?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter mctwp

    (@mctwp)

    After more investigation I’ve discovered:

    If “Force language in custom links” is set to YES
    – navigation functions (menu, posts, etc) does not work correctly in Chinese = 404
    – hyperlinks to other articles within the post serves the correct Chinese version

    If “Force language in custom links” is set to NO
    – navigation functions (menu, posts, etc) works correctly in Chinese
    – hyperlinks to other articles within the post serves the English version, not Chinese. (I’ve left it this way because at least it doesn’t serve 404 errors but obviously, it isn’t correct)

    Is this a TranslatePress issue or my Theme (Soledad)?

    Thanks!

    Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    Hello there,

    Thank you for letting us know about your problem!

    You could leave the “Force language in custom links” on YES and send us the link to the page that offers that 404 error.

    ?Do you have an HTTPS/SSL plugin? If so, deactivate it, visit WordPress -> Settings -> General, make sure the home url and site url have HTTPS in them –> save –> then reactivate the HTTPS/SSL plugin.

    If the problem happens only on the homepage, check if you already have a resource, page or media, with that same slug as the language (such as “en”, “fr”, “de”…).
    To test this, check with TranslatePress deactivated if the homepage plus the language slug already points to something. So for example access https://example.com/en/. To solve it, rename the slug of that existing media or page to something else.

    Also, please re-save permalinks and see if that helps.

    And for the “Latest Posts” articles, here are some steps to solve that 500 error:

    The 500 error (or sometimes a white page or "The site is experiencing technical difficulties.") is a very general server error.
    
    One of the first web search results says that "The 500 Internal Server Error is a very general HTTP status code that means something has gone wrong on the web site's server but the server could not be more specific on what the exact problem is."??
    
    To debug this further, please follow these steps:
    ??
    1. Ask your host to identify this specific error and/or for the PHP error log.
    2. Try and increase your WordPress memory limit: https://docs.woocommerce.com/document/increasing-the-wordpress-memory-limit/
    3. set WP_DEBUG to true in wp_config.php file: https://codex.www.ads-software.com/WP_DEBUG and try again. See if you get any errors.
    ?4. Check if you have duplicate entries in your *trp_* tables from the database. If you do, you can use the Remove duplicate rows option from TP Settings --> Advanced tab to clear them.
    5. Try to do a conflict test (ideally in a staging environment):
    ??*Briefly* disable all other plugins and enable the default Twenty Twenty theme. Please also disable all add-ons. If this fixes the problem, as it probably will, enable everything one by one, checking each time to see when the problem returns.
    Please let us know when you find the conflict so that we can take a look and see what we can do about it.

    If there`s anything else, please let us know!

    Kind Regards,

    Denis

    (@sdenis)

    Since more than 6 days have passed since my colleague answered this ticket, we will close it and if you encounter other problems or have a question regarding TranslatePress, please create another ticket with the problem in question.

    Thread Starter mctwp

    (@mctwp)

    Apologies – I’m waiting on my developer to answer me about this as I don’t have the skills. Thanks

    Thread Starter mctwp

    (@mctwp)

    Thank you – you can close this now. Its been corrected. Appreciate your assistance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Menu, Latest, Previous, Next Post giving 404 errors’ is closed to new replies.