• Resolved sandrokv

    (@sandrokv)


    I tried to access the String translation page, but it is completely blank. The Translation Editor page works but as soon as I click on String translation, it goes blank. I want to use the regular strings tab from there to translate some things. 3+ weeks ago this was definitely accessible.

    I opened console in chrome dev tools and found the following error:

    trp-string-translation-editor.js:9 Uncaught ReferenceError: trp_string_translation_data is not defined at Module.<anonymous> (trp-string-translation-editor.js:9:57) at r (bootstrap:19:22) at Object.<anonymous> (trp-string-translati…?ver=2.8.8:1:331582) at r (bootstrap:19:22) at bootstrap:83:10 at trp-string-translati….js?ver=2.8.8:1:913

    Hope this will help in determining the cause of the problem. Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support madalinaruzsa

    (@madalinaruzsa)

    Hi @sandrokv,

    Please check to have the latest version of TranslatePress plugin.

    There are a number of things that can cause a white page when opening the translation string interface.

    1. CSP Error -> ALWAYS CHECK FOR THIS FIRST
      To verify this open the developer console and look for a CSP error in red (console tab).

    To fix, try to install Really Simple SSL.

    1. JavaScript error caused by minification and merging of javascript files in plugin such as WP-Optimize.
      There is an option in the plugin to exclude specific javascript so they will be ignored.

    These JS files are used only in Translation Editor, so you can definitely skip any optimization on them
    /wp-content/plugins/translatepress-multilingual/assets/js/trp-editor.js
    /wp-content/plugins/translatepress-multilingual/assets/js/trp-string-translation-editor.js
    /wp-content/plugins/translatepress-multilingual/assets/js/trp-iframe-preview-script.js
    /wp-content/plugins/translatepress-multilingual/assets/js/trp-editor-overlay.js

    These scripts appear for visitors too. You can skip optimization for them if you notice JS errors or misbehaviour regarding WooCommerce cart not being translated or other JS added text not being translated.
    /wp-content/plugins/translatepress-multilingual/assets/js/trp-translate-dom-changes.js
    /wp-content/plugins/translatepress-multilingual/assets/js/trp-frontend-compatibility.js

    If the JS error encountered is not due to minification please send me the error displayed in your browser console.

    1. PHP Error -> Enable WP_DEBUG, see what the error is in your wp-content/debug.log .

    Common problems:
    PHP Memory Limit Reached -> needs to be increased
    PHP Fatal error: Call to undefined function mb_http_output() -> the server needs to have the Multibyte String PHP library installed: https://php.net/manual/en/book.mbstring.php

    Thread Starter sandrokv

    (@sandrokv)

    Thank you for the reply!
    I did add those files to be excluded from any optimization in litespeed cache plugin and now everything works. Thanks again!

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