• After I updated to WP4.9 the Widget Area isn’t working anymore.
    When I look at the Developer-Tools-Console, I’m getting the following errors:
    – ReferenceError: MediaElementPlayer is not defined (
    mediaelement-migrate.min.js:1:342)

    – TypeError: b(…).not(…).filter(…).mediaelementplayer is not a function (
    wp-mediaelement.min.js:1:453)

    Also, when I activate a Theme, I’m getting the following errors:
    Warning: array_merge(): Argument #2 is not an array in xxx\wp-includes\widgets.php on line 1159
    Warning: array_diff(): Argument #2 is not an array in xxx\wp-includes\widgets.php on line 1160
    Warning: Invalid argument supplied for foreach() in xxx\wp-includes\widgets.php on line 1162
    Warning: array_merge(): Argument #1 is not an array in xxx\wp-includes\widgets.php on line 1170

    I have deactivate all Plugins and have updated the Twenty-Themes. But the problems still exist.

    I’ve made a brand new installation of WordPress 4.9. In this installation there are no errors.

    After I clear the widget Data in the Database ( rs_ib_options WHERE option_name = ‘sidebars_widgets’ ), the PHP Warnings by activate a Theme are gone. But the Javascript errors in the Widget area are still there.

    What can I do, to fix this issue?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter cschmitt91

    (@cschmitt91)

    When I change the language from “de_DE_formal” to “de_DE” the javascript errors are gone.
    I forgot to post one javascript error:

    TypeError: Language code must have format 2-3 letters and. optionally, hyphen, underscore followed by 2 more letters

    This error seems to be the bad one.
    So it seems there is a problem with the formular german translation.

    I’m having the same issues with the german version. Changing my account to english solved my problem. Clearing caches seems to be important, too.

    Two other installations seem to work well, but the third isn’t. Neither widgets nor the text editor or even add media works. I tried to change the theme and turned off my plugins – nothing helped. So just change try to change your account to english, until there is a new german version.

    I’m having the same issue (with USA English version of WP) of error “Argument #_ is not an array in …/widgets.php on line_” screens showing in the widgets area of Dashboard after the WP 4.9 upgrade.

    • This reply was modified 6 years, 7 months ago by Riavon .

    Probably this one, too? (this yielded several other topics)
    https://core.trac.wordpress.org/ticket/42574

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Widgets doesn’t work with WP 4.9’ is closed to new replies.