Home › Forums › Support › WP 4.9 upgrade "Argument #_ is not an array in …/widgets.php on line_" error
- This topic has 12 replies, 2 voices, and was last updated 6 years, 11 months ago by Ria.
-
AuthorPosts
-
November 17, 2017 at 9:37 am #426943Ria
After upgrading to WP 4.9 I’m now getting an error when navigating to the Appearance/Widgets area within the Dashboard. This is a fresh install on a local development site with the latest GP 1.4 and GP 1.5.3 premium plugin. GP Premium is the ONLY plugin activated.
Here is a screenshot:
November 17, 2017 at 9:41 am #426948TomLead DeveloperLead DeveloperMight be worth reporting here: https://wordpress.org/support/topic/widgets-doesnt-work-with-wp-4-9/
The more people report it, the more likely WP will take notice.
November 17, 2017 at 9:44 am #426950RiaHey Tom,
I’ll certainly do that. But just for the record, I’ve tested this with other themes, including the default Twenty Seventeen theme, and everything works fine. It’s only with my GP setups that I’m experiencing this issue.
November 17, 2017 at 9:46 am #426954TomLead DeveloperLead DeveloperThe poster in that topic is getting identical errors (even down to the lines in the code). I suppose they could be using GP, but it’s not likely.
When you switch to Twenty Seventeen, do any of the widget areas have widgets in them?
November 17, 2017 at 9:50 am #426959RiaWhen I switch to other themes, including Twenty Seventeen, all is well and the widgets are all there, with no errors.
November 17, 2017 at 10:12 am #426967TomLead DeveloperLead DeveloperAnd when you activate GeneratePress, are there any widgets active in the widget areas?
November 17, 2017 at 10:14 am #426971RiaYes.
November 17, 2017 at 10:53 am #426990TomLead DeveloperLead DeveloperHmm, I wonder if something was corrupted in your update. Can you try removing all of the widgets, then reloading the page?
November 17, 2017 at 11:06 am #426996RiaHi Tom,
I rolled back to WP 4.83 and then manually updated to WP 4.9 with from the download from wordpress.org. I had the same issues. I rolled back to WP 4.83 again and did the automatic update from within Dashboard, and same issues.
I removed all widgets from all widget areas and I’m still having the same issues. Here is a screen shot:
November 17, 2017 at 11:14 am #427005TomLead DeveloperLead DeveloperDefinitely looks like a WP 4.9 bug that they thought they fixed a couple months back during testing: https://core.trac.wordpress.org/ticket/39693#comment:63
The reason it’s theme specific for you is the problem function is theme specific – it attempts to retrieve widgets specific to the current theme and place them in the correct areas. From what I can see, it should only happen on theme change, so I’m not sure why it’s persisting for you.
Keep an eye on that topic I mentioned – I’ll also try to get some core developers eyes on it.
November 17, 2017 at 11:16 am #427007RiaOk will do. Thanks, Tom.
November 17, 2017 at 11:16 am #427008TomLead DeveloperLead DeveloperAh, someone already reported. Looks like it’s already patched and will ship in WP 4.9.1: https://core.trac.wordpress.org/ticket/42603
November 17, 2017 at 11:17 am #427009RiaOh! That’s good news! Thanks! I’ll be looking forward to 4.9.1
-
AuthorPosts
- You must be logged in to reply to this topic.