Page 1 of 1

WordPress – Multi Language Switcher crashes website (v2.0.3)

WordPress – Multi Language Switcher crashes website (v2.0.3)

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
Examples: "MacOS X - Your question", "MS Word - Your Tip or Trick".

Please note that switching to another language when reading a post will not work!
Posts will not have a translated counterpart.




RSS Feed

Home Forums Web Development WordPress – Multi Language Switcher crashes website (v2.0.3)

This topic contains 0 replies, has 1 voice, and was last updated by  hans 9 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • 11278

    hans
    Keymaster

    Not sure if I’m the only one … but I just upgraded Multi Language Switcher to the latest version (2.0.3) and found my page no longer loading.

    I did figure out a fix though.
    It seems that the function “get_the_msls” is crashing when not passing any parameters – a specific API call I used in my theme – which never used to be a problem.

    Thank goodness the fix is easy; 

    Go into your functions.php, and find the line with “get_the_msls()” in it.
    Now update this to “get_the_msls([])” (passing an empty array).

    That’s all …

Viewing 1 post (of 1 total)



You must be logged in to reply to this topic.