• Resolved weltraumduft

    (@weltraumduft)


    Hello, i use TP in other project very happy, but with my new site i have two problems. When i use the second language in frontend, then following problems:

    With the TitleRemove Plugins, TP generate the follow h1 tag, …

    <h1 class="entry-title"></h1>

    …that produce a big white space (line) between “page-header” in the “main” content div. When i activate DEBUG “Disable post container tags for post title
    then the white space problem is gone. good.

    Bigger problem now, i become this JS error when i use the second language in frontend:

    ReferenceError: trp_data is not defined
    TRP_Translator /wp-content/plugins/translatepress-multilingual/assets/js/trp-translate-dom-changes.js?ver=2.6.1:16

    and this warnings:

    notice: TranslatePress trp-ajax request uses fall back to admin ajax. trp-translate-dom-changes.js:55:29 JQMIGRATE: Migrate is installed, version 3.4.1

    Then i found the plugin “compilianz” made this trouble with TP in combination. I had scan all cookies and refresh all configs. But nothing happend, JS error still exist. Whats wrong here?

    I use WP 6.3.1 with Compilianz 6.5.3 and TP 2.6.1

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter weltraumduft

    (@weltraumduft)

    the extended error messages are:

    <anonymous> /wp-content/plugins/translatepress-multilingual/assets/js/trp-translate-dom-changes.js?ver=2.6.1:613
    lockdown-install.js:1:103865
    functors moz-extension://dcdeab25-6052-4e14-9731-4667e0ac6116/lockdown-install.js:1

    Hello,

    Thank you for reaching out and detailing the issues you’re experiencing with TranslatePress on your new project. Let’s address them one at a time:

    1. Issue with TitleRemove Plugin and H1 Tag: The empty <h1 class="entry-title"></h1> is likely being generated by the TitleRemove plugin when working with TranslatePress.

    To test if this is indeed the cause:

    • Disable the TitleRemove plugin.
    • If the empty H1 tag issue is resolved, you can consider hiding the H1 tag using a small CSS snippet to achieve the desired appearance:
    .entry-title {
       display: none;
    }

    2. JS Error with Compilianz: The error ReferenceError: trp_data is not defined points to a potential conflict with the Compilianz plugin. It’s evident that some script or functionality from Compilianz might be affecting the proper operation of TranslatePress.

    Given the complexities of both plugins and their various configurations, it would be best to address this on a more in-depth platform where our technical team can engage directly.

    Please create a support ticket at: TranslatePress Support

    When creating the ticket, do mention the link to this chat or provide a brief summary of what we’ve already discussed. This way, the support team can pick up from where we left off and offer further solutions without redundant steps.

    I appreciate your patience and understanding as we work through these issues. We’ll do our best to get everything sorted out for you.

    Kind regards,

    Thread Starter weltraumduft

    (@weltraumduft)

    Denis thanks for reply ??

    1. without the plugin, yes, it will works with dislay:none but this is not a good solution because then i have two double H1 tag and google really hate this.

    by the way…, i tried TitleRemover and other Plugin WP 4 MeTitleRemover and have the same error. I will use debug mode again ??

    2. ok i will create the ticket.

    Have a nice week. Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘trp_data not defined -JS Error @compilianz ?’ is closed to new replies.