Make WordPress Core

Opened 6 years ago

Last modified 3 years ago

#44615 new defect (bug)

"Cannot use object of type stdClass as array" breaking update-core.php

Reported by: adamthomsonnz's profile adamthomsonnz Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9.7
Component: Upgrade/Install Keywords: reporter-feedback
Focuses: Cc:


I get this error when I go to the update core page:

Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /home/industryawards/public_html/wp-admin/update-core.php:258 Stack trace: #0 /home/industryawards/public_html/wp-admin/update-core.php(625): list_plugin_updates() #1 {main} thrown in /home/industryawards/public_html/wp-admin/update-core.php on line 258

It displays above the plugin list, and no plugins are displayed in the list. The page actually breaks there. I'll attach a screenshot if I can.

However, the error does not happen on the 'Update Available' plugin page tab which can still be used to update plugins.

The plugins installed and activated are:

BackupBuddy –
Beaver Builder Plugin (Pro Version) –
Beaver Themer –
PowerPack for Beaver Builder –
Better Search Replace – 1.3.2
Blackhole for Bad Bots – 1.9.2
Breadcrumb NavXT – 6.1.0
Duplicate Page – 2.6
Easy Theme and Plugin Upgrades – 2.0.0
Google Analytics Dashboard for WP (GADWP) – 5.3.5
GP Conditional Pricing – 1.2.36
Gravity Perks – 2.0.9
Gravity Forms – 2.3.3
GravityView – 2.0.14
Invisible reCaptcha – 1.2.1
Lazy Load for Videos – 2.4.0
Recent Posts Widget With Thumbnails – 6.2
WC Custom Add to Cart labels – 1.1
WooCommerce Stripe Gateway – 4.1.8
WooCommerce - Gravity Forms Product Add-Ons – 3.3.3
WooCommerce PDF Invoices – 4.1.9
WooCommerce – 3.4.3
Wordfence Security – 7.1.9
WordPress Importer – 0.6.4
Yoast SEO Premium – 5.8

Everything is at it's latest version with the exception of GravityView, but I've eliminated that as a suspect by disabling it.

Attachments (1)

industryawards-co-nz-weird-error.jpg (144.9 KB) - added by adamthomsonnz 6 years ago.

Download all attachments as: .zip

Change History (2)

#1 @SergeyBiryukov
6 years ago

  • Keywords reporter-feedback added; plugins removed

Hi @adamthomsonnz, welcome to WordPress Trac! Thanks for the report.

It looks like some plugin is filtering the updates list, breaking it. Does the issue still happen with all plugins disabled and a default theme (Twenty Seventeen) activated?

Related: #34052

Note: See TracTickets for help on using tickets.