Switching view on Updates screen doesn't work in 4.4.3.1

On the Updates screen I sort the updates based on “Item”, but if I switch to “Tag” the view changes correctly. But if I want to go back to Item or Site, nothing happens. In the browser console I see the following error:

>>>> admin.php?page=UpdatesManage&tab=plugins-updates:9178
Uncaught ReferenceError: mainwp_siteview_onchange is not defined
    at HTMLSelectElement.onchange (admin.php?page=UpdatesManage&tab=plugins-updates:9178:153)
    at Object.change (fomantic-ui.js?ver=4.4.3.1:8537:42)
    at Object.value (fomantic-ui.js?ver=4.4.3.1:9503:48)
    at HTMLDivElement.<anonymous> (fomantic-ui.js?ver=4.4.3.1:9609:48)
    at Function.each (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-draggable,jquery-ui-controlgroup,j&load%5Bchunk_1%5D=query-ui-checkboxradio,jquery-ui-button,jquery-ui-dialog,zxcvbn-async&ver=891bb403a43d5c62c93d1e969fd05561:2:3003)
    at e.<computed>.each (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-draggable,jquery-ui-controlgroup,j&load%5Bchunk_1%5D=query-ui-checkboxradio,jquery-ui-button,jquery-ui-dialog,zxcvbn-async&ver=891bb403a43d5c62c93d1e969fd05561:2:1481)
    at Object.selected (fomantic-ui.js?ver=4.4.3.1:9565:30)
    at HTMLSelectElement.activate (fomantic-ui.js?ver=4.4.3.1:8610:40)
    at HTMLDivElement.selectAction (fomantic-ui.js?ver=4.4.3.1:8548:60)
    at HTMLDivElement.click (fomantic-ui.js?ver=4.4.3.1:8216:63)

This only happens on the Plugins overview. When I go to Themes, I can switch back to the correct view, so I’ll use this as a workaround right now.

I also received an email with the following info about a critical error (this is on PHP 8.1):

Een fout van het type E_ERROR werd veroorzaakt op regelnummer 310 van het bestand /.../wp-content/plugins/mainwp/pages/page-mainwp-updates-per-group.php. Foutmelding: Uncaught TypeError: array_merge(): Argument #1 must be of type array, null given in /home/wppanel/domains/wppanel.jkws.nl/public_html/wp-content/plugins/mainwp/pages/page-mainwp-updates-per-group.php:310
Stack trace:
#0 /.../wp-content/plugins/mainwp/pages/page-mainwp-updates-per-group.php(310): array_merge()
#1 /.../wp-content/plugins/mainwp/pages/page-mainwp-updates.php(1044): MainWP\Dashboard\MainWP_Updates_Per_Group::render_plugins_updates()
#2 /.../wp-content/plugins/mainwp/pages/page-mainwp-updates.php(800): MainWP\Dashboard\MainWP_Updates::render_plugins_update_tab()
#3 /.../wp-includes/class-wp-hook.php(308): MainWP\Dashboard\MainWP_Updates::render()
#4 /.../wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#5 /.../wp-includes/plugin.php(517): WP_Hook->do_action()
#6 /.../wp-admin/admin.php(259): do_action()
#7 {main}

Thanks @josklever we’ll take a look and try to get a fix in for the next maintenance release early next week.

1 Like

Hey @josklever,

Does this version solve the problem:

2 Likes

Thanks Bogdan, this looks good! :slight_smile:

2 Likes

Thanks for confirming that!

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.