Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #721911

    Hi

    Issue after updating WordPress to 4.7 and WPML to latest versions!

    Warning: Illegal string offset 'language_code' in /storage/content/54/156454/xn--malmasylbyr-78a7s.se/public_html/wp-content/themes/enfold/config-wpml/config.php on line 488 Warning: Illegal string offset 'language_code' in /storage/content/54/156454/xn--malmasylbyr-78a7s.se/public_html/wp-content/themes/enfold/config-wpml/config.php on line 488 Warning: Illegal string offset 'language_code' in /storage/content/54/156454/xn--malmasylbyr-78a7s.se/public_html/wp-content/themes/enfold/config-wpml/config.php on line 488 Warning: Illegal string offset 'language_code' in /storage/content/54/156454/xn--malmasylbyr-78a7s.se/public_html/wp-content/themes/enfold/config-wpml/config.php on line 488 Warning: Illegal string offset 'language_code' in /storage/content/54/156454/xn--malmasylbyr-78a7s.se/public_html/wp-content/themes/enfold/config-wpml/config.php on line 488 Warning: Illegal string offset 'language_code' in /storage/content/54/156454/xn--malmasylbyr-78a7s.se/public_html/wp-content/themes/enfold/config-wpml/config.php on line

    This happened after WordPress and WPML update to latest versions!

    #721969

    This is kind of urgent as the website is live!
    Would rather have it fixed before client calls me!

    #722042

    In the meantime, try to add the following lines in the functions.php file inside your theme folder

    /**
    * This fixes the issue with truncated links in Enfold theme with WPML 3.6.1
    * WARNING: ILLEGAL STRING OFFSET ‘LANGUAGE_CODE’ IN \WP-CONTENT\THEMES\ENFOLD\CONFIG-WPML\CONFIG.PHP ON LINE 489
    */
    add_action( ‘init’, ‘wpmlcore_3776_temporary_fix’ );
    function wpmlcore_3776_temporary_fix() {
    remove_filter( ‘WPML_filter_link’,’avia_change_wpml_home_link’, 10 );
    }

    #722795

    Hi,
    .
    Thank you for using Enfold.


    @grafixstudio
    : Please try the snippet that @bborsi provided.


    @bborsi
    : Thanks for the help! :)

    Best regards,
    Ismael

    #722844

    Yes I implemented it and it worked. But is this a real solution?

    #723736

    Hi,

    as you can see it’s a temporary fix. The dev team is working on a permanent fix for this.

    Best regards,
    Andy

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