• Resolved Lori Boone

    (@pleazo)


    Hello,

    Ever since I installed Translatepress, my site has become painfully slow. I contacted my server to see what the issue is and they found out that translatepress-multilingual is sending an unusual amount of ajax requests as seen here.

    Why is this happening and how can it be fixed? I cannot use the plugin till it gets fixed.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for reaching us!

    It’s also possible that your host server configuration doesn’t allow TranslatePress to perform a direct database connection. In this case, install this plugin to switch to a WordPress native approach. The only drawback is that on some large websites it can be a bit slower to translate front-end dynamic texts. https://translatepress.com/download/1151690/

    The issue can also be caused by a repeated detection of the same front-end string displayed using JavaScript. In this case you should notice numerous trp-ajax.php calls (20+) in the browser console under Network tab. To solve this, identify the html node that contains that overdetected text and use TP Advanced Settings option Exclude from dynamic translation to input the JS/CSS selector for that node.
    Another approach to the same issue would be to install this plugin which reduces the number of allowed detection of the same dynamic string to a lower number: https://translatepress.com/download/1151694/`

    Cheers,

    Thread Starter Lori Boone

    (@pleazo)

    Hi @sdenis

    Thank you for your reply. I still have some questions:

    1. It’s also possible that your host server configuration doesn’t allow TranslatePress to perform a direct database connection. In this case, install this plugin to switch to a WordPress native approach. The only drawback is that on some large websites it can be a bit slower to translate front-end dynamic texts.?https://translatepress.com/download/1151690/

    I contacted my host (Cloudways) and they said “We support all type of plugins on our stack. However if your plugin is trying to connect database via public IP then you might have to whitelist their IPs on your server. Here is a guide to connect your database remotely:?https://support.cloudways.com/en/articles/5124817-how-to-whitelist-ip-addresses-for-remote-mysql-connections”

    Therefore can you let me know if TranslatePress is is trying to connect database via public IP? If so, do you have an IP that I can whitelist on my server?

    2. The issue can also be caused by a repeated detection of the same front-end string displayed using JavaScript. In this case you should notice numerous trp-ajax.php calls (20+) in the browser console under Network tab. To solve this, identify the html node that contains that overdetected text and use TP Advanced Settings option Exclude from dynamic translation to input the JS/CSS selector for that node.

    I am not sure if I am doing this correctly as I am in Chrome console under Network tab. I can only see:
    3 ajax calls: https://snipboard.io/sXUVct.jpg
    3 trp calls: https://snipboard.io/pqn85L.jpg

    Does this mean there is no repeated detection?


    ?3. Another approach to the same issue would be to install this plugin which reduces the number of allowed detection of the same dynamic string to a lower number:?https://translatepress.com/download/1151694/`

    Please let me know if this is still necessary since I do not see any repeated detection.

    Thanks!

    • This reply was modified 2 years, 2 months ago by Lori Boone.
    • This reply was modified 2 years, 2 months ago by Lori Boone.
    Thread Starter Lori Boone

    (@pleazo)

    Hello,

    Can someone please help me with this issue?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Translatepress is sending an unusual amount of ajax requests’ is closed to new replies.