Tagged: ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #722427

    Hello,

    I have problem after updating to 4.7 WP. On the front page it is a sentence like:

    Warning: Illegal string offset ‘language_code’ in /home/umetne01/public_html/wp-content/themes/enfold/config-wpml/config.php on line 486

    Best regards,
    Daniel

    #722552

    Hello,

    same problem here. The issue is present on the homepage and the ‘news’ (blog) section.
    issue: Warning: Illegal string offset ‘language_code’ in …/home/wp-content/themes/enfold/config-wpml/config.php on line 488
    Please help as the website is live and my client won’t like this we he’ll realize.

    Regards,
    Fulvio

    #722558

    Hi!

    Please refer to this post – https://wpml.org/forums/topic/nach-update-folgende-fehlermeldung/
    We will include the fix in upcoming Enfold update

    Best regards,
    Yigit

    #722561

    Hello,

    visited WPML website (https://wpml.org/forums/topic/language-switcher-url-issues-links-to-lange-instead-of-en/) and they provided a temporary code to be included in the functions.php file of any website. Apparently it solved the issue. The code is this one:

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

    Hope it helps.
    Cheers,
    Fulvio

    #722563

    Thanks Yigit,

    found the same solution and posted it before refreshing the page so I did not see your super-quick answer.
    Cheers,

    Fulvio

    #722566

    Hey!


    @dannunzio
    thank you for sharing the solution :)
    Let us know if you have any other questions or issues and enjoy your weekend!

    Regards,
    Yigit

    #722568

    @Yigit enjoy your weekend too and keep up the awesome work.
    Ciao!

    Fulvio

    #722570

    Hi!

    Thanks :)
    We will keep the thread open to hear from the creator of this thread. Feel free to start a new thread if you have any other questions or issues

    Best regards,
    Yigit

    #722575

    Dear Yigit,

    thank you for the quick reply.

    It works. Thank you very much.

    Have a nice weekend,
    Daniel

    #722609

    Hi,

    Great! Not at all! Let us know if you have any other questions and have a lovely weekend!

    Best regards,
    Yigit

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Warning: Illegal string offset 'language_code Enfold Theme’ is closed to new replies.