• Resolved mattce

    (@mattce)


    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

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