PHP/WP Error: Uncaught TypeError: lloc\Msls\MslsAdminIcon::set_href():

Hi,
we were running into a problem in our backend:

PHP/WP Error: Uncaught TypeError: lloc\Msls\MslsAdminIcon::set_href():
Argument #1 ($id) must be of type int, string given, 
called in ***/wp-content/plugins/multisite-language-switcher/includes/MslsMetaBox.php on line 189 and 
defined in ***/wp-content/plugins/multisite-language-switcher/includes/MslsAdminIcon.php:160

Stack trace:
#0 ***/wp-content/plugins/multisite-language-switcher/includes/MslsMetaBox.php(189): lloc\Msls\MslsAdminIcon->set_href('867') 
#1 ***/wp-admin/includes/template.php(1456): lloc\Msls\MslsMetaBox->render_select(Object(WP_Post), Array) 
#2 ***/wp-admin/edit-form-advanced.php(716): do_meta_boxes(Object(WP_Screen), 'side', Object(WP_Post)) 
#3 ***/wp-admin/post.php(206): require('***...') 
#4 {main} thrown (file: ***/wp-content/plugins/multisite-language-switcher/includes/MslsAdminIcon.php, line: 160)

It should be an easy fix by just changing line 189 to:
$icon->set_href((int) $mydata->$language );
(file multisite-language-switcher/includes/MslsMetaBox.php)

Best regards

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer