• Resolved ersin55

    (@ersin55)


    I have created my website using WPBakery, and when I install TranslatePress, WPBakery throws errors, resulting in a critical error message on the site. I’m using WPBakery version 7.1, and I’m installing TranslatePress directly from WordPress. However, it’s causing various error messages, rendering WPBakery invalid. I haven’t been able to pinpoint the exact problem. Is there a solution?

    Fehler-Details
    ==============
    Ein Fehler vom Typ E_ERROR wurde in der Zeile 614 der Datei /var/www/vhosts/website.com/httpdocs/wp-content/plugins/js_composer/include/classes/core/class-wpb-map.php verursacht. Fehlermeldung: Uncaught TypeError: Cannot access offset of type string on string in /var/www/vhosts/website.com/httpdocs/wp-content/plugins/js_composer/include/classes/core/class-wpb-map.php:614
    Stack trace:
    #0 /var/www/vhosts/website.com/httpdocs/wp-content/plugins/js_composer/include/helpers/helpers_api.php(62): WPBMap::addParam()
    #1 /var/www/vhosts/website.com/httpdocs/wp-content/plugins/translatepress-multilingual/includes/class-wp-bakery-language-for-blocks.php(120): vc_add_param()
    #2 /var/www/vhosts/website.com/httpdocs/wp-content/plugins/translatepress-multilingual/includes/class-wp-bakery-language-for-blocks.php(35): TRP_WPBakery->register_params_show_for_shortcodes()
    #3 /var/www/vhosts/website.com/httpdocs/wp-includes/class-wp-hook.php(310): TRP_WPBakery->init()
    #4 /var/www/vhosts/website.com/httpdocs/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #5 /var/www/vhosts/website.com/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
    #6 /var/www/vhosts/website.com/httpdocs/wp-settings.php(632): do_action()
    #7 /var/www/vhosts/website.com/httpdocs/wp-config.php(100): require_once(‘…’)
    #8 /var/www/vhosts/website.com/httpdocs/wp-load.php(50): require_once(‘…’)
    #9 /var/www/vhosts/website.com/httpdocs/wp-admin/admin.php(34): require_once(‘…’)
    #10 /var/www/vhosts/website.com/httpdocs/wp-admin/options-general.php(10): require_once(‘…’)
    #11 {main}
      thrown

    Thanx

    • This topic was modified 1 year, 4 months ago by ersin55.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey there,

    Thanks for reaching out to us!

    Apologies for not getting back to you any sooner!

    At the moment our development team is checking the problem that you are experiencing and we will get back to you as soon as possible.

    Thank you for your patience so far!

    /**
     * Deactivate WP Bakery integration with TranslatePress
     */
    add_action ('init', 'trpc_deactivate_wp_bakery_conditional_display_by_language');
    function trpc_deactivate_wp_bakery_conditional_display_by_language(){
        $trp_wpbakery = TRP_WPBakery::instance();
        remove_action('init', [$trp_wpbakery, 'init'], PHP_INT_MAX);
    }

    We couldn’t replicate your issue with the latest versions of both plugins. My guess is that you have a WP Bakery element added by plugin other than the default WPBakery or you have a default one that’s configured differently than I could replicate.

    Either case, it conflicts with TranslatePress’s code that adds language conditional section for that element. It’s unclear from the error what is the name of the conflicting element. As a workaround, try placing above code in a new plugin. It removes the language conditional section but keeps the rest of functionality for both plugins. If you need language conditional, you can try other methods such as the conditional shortcode.

    As more than 5 days have passed since my colleague have responded, I will close this ticket as resolved, if you still want us to take a look, please let us know by creating a new ticket.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Translatepress & Wp bakery problem’ is closed to new replies.