Skip to content

WordPress dashboard widgets failing to load: diagnostic and fix

A WordPress dashboard widget that spins forever or shows "Cannot load" is a specific failure pattern. Here is what causes it on WordPress and how to fix each variant.

The WordPress dashboard widgets are the welcome screen for editors. When one fails — perpetual spinner, “Cannot load” text, or just blank — it makes the admin feel broken even though everything works. The pattern is almost always one of three: a blocked admin-ajax call, an outbound HTTP timeout, or a plugin widget calling a deprecated endpoint.

What’s happening

Dashboard widgets render in two stages. The initial admin page loads the widget container with a loading state. Then JavaScript fires an admin-ajax.php request with action=dashboard_widget_content (or the plugin’s custom action) to fetch the data. If that AJAX request fails, gets blocked, or times out, the spinner sticks. The browser network panel shows whether the call was made, what status it returned, and how long it took.

The widgets that fail most: the “WordPress Events and News” widget (hits api.wordpress.org — fails if outbound HTTP is blocked), Jetpack stats widget (hits wordpress.com/stats — fails on auth issues), Yoast SEO overview widget (hits internal endpoints — fails if a security plugin blocks them), and any plugin widget calling a deprecated REST endpoint that’s been removed.

How to verify

# Open dashboard, watch network panel
curl -s "https://example.com/wp-admin/admin-ajax.php?action=dashboard_widget_content&widget_id=dashboard_primary" \
  -b cookies.txt -H "X-Requested-With: XMLHttpRequest"
wp eval 'do_action("wp_dashboard_setup"); var_dump($GLOBALS["wp_meta_boxes"]["dashboard"]);'
tail -f wp-content/debug.log

In the browser, F12 > Network > filter by “ajax”. Reload the dashboard. Each widget makes its own AJAX call. Click any failed one to see status code, response body, and timing. A 403 means a security plugin blocked it. A 500 means PHP errored. A timeout means an outbound call is hanging.

The fix

  1. Read the AJAX response. Status 200 with an empty body usually means a plugin returned silently from wp_die() after a permission check. Status 403 means a nonce or capability check failed. Status 500 means PHP fatal — check debug.log.
  2. Fix outbound HTTP timeouts. If the server can’t reach api.wordpress.org, the WordPress Events widget hangs the full 5-second default timeout. Either fix the outbound firewall rule, or disable that widget with remove_meta_box('dashboard_primary', 'dashboard', 'side');.
  3. Check security plugin AJAX rules. Wordfence and similar block specific AJAX actions by default. Whitelist the action parameter for legitimate widgets.
  4. Clear the user meta for closed widgets. metaboxhidden_dashboard in wp_usermeta controls which widgets the user has hidden. If the user reports a widget is “gone” rather than “broken”, check that meta key.
  5. Disable third-party widgets selectively. A failing Jetpack or Yoast widget doesn’t need to block the rest of the dashboard. Use remove_meta_box in a small mu-plugin to drop just the broken one.
  6. Check the REST API health. Site Health > REST API. If REST is broken, any widget using it (and most modern ones do) will fail.

For sites where dashboard reliability matters to the editorial team, Stack Harbor monitors the admin path as part of enterprise WordPress. To investigate a stuck widget, book a consult.