• Resolved potrkac

    (@potrkac)


    Recently, a client contacted me wanting to add new things to the website. No work had been done on that site for over 4 months. When I made all the changes, they weren’t showing up, and I thought it might be because of the outdated plugin version. After updating the plugin, on my computer, the first two pages showed “#TRPLINKPROCESSED” in the URL, and on every page where this appears in the URL, the translation doesn’t work. On my boss’s computer, “#TRPLINKPROCESSED” shows up on every page, and nothing is translated. How can this be fixed?

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

Viewing 1 replies (of 1 total)
  • Plugin Support Anca

    (@ancavictoria)

    Hello,

    In PHP, we take the default page and parse it (we go through each HTML element and look for translations). We do the same with URLs.
    There are some pages where you find a URL several times, or there are some URLs that are generated by functions like get_permalink. We put #trplinkrprocessed on the ones we process. So, if a URL comes up again it will be ignored. At the end, we have a script that removes all #trplinkprocessed.

    Why does the #TRPLINKPROCESSED still appear?

    • They appear because we failed to complete the stripping.
    • There are some themes (themify — has caching). It caches the page_id. We don’t change the page_id and it’s possible that the page_id is being served. If it was caching on the URL it would take into account the language parameter. Solution: remove the cache from the theme and disable any caching or security plugins on the site.

    What works?

    • Compatibility test — there are other plugins that read HTML like TP and it’s possible to break our code, and those will throw #trpgetext and #trplinkprocessed will appear.
      Briefly disable all other plugins and enable the default Twenty Twenty theme. If this fixes the problem, enable everything one by one or in small chunks, checking each time to see when the problem returns.
    • Try replicating with the plugin that generates the URLs (if you use one).

    Let me know how this goes.

    Kind regards,

    Anca

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.