Urgent: Fatal Error All sites Just now

Our websites are working just fine then suddenly builder stops loading with this fatal error ;

Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in /www/wp-content/themes/pro/cornerstone/includes/classes/Services/RemoteAssets.php:188 Stack trace: #0 /www/wp-content/themes/pro/cornerstone/includes/classes/Services/RemoteAssets.php(188): array_filter(NULL, Object(Closure)) #1 /www/wp-

The issue appears on multiple websites in different hosting server( Wpengine / Cloudways).

@christian

6 Likes

We are experiecing the same issue across all our websites too, hosted on SiteGround

2 Likes

I just incurred the same issue on my website, hosted on WP Engine.

1 Like

Hi - I am getting the same as well when trying to load cornerstone (Siteground Cloud Hosting), PHP 8.2.30, Installed Version 6.8.4 Changelog - WordPress 6.9.4

1 Like

I’m having the same problem here. Cornerstone isn’t loading anymore. The error appeared after I updated to the latest version of WordPress (6.9.4). The Pro version was already up to date. I’ve already deactivated all plugins as a test, but the error persists. So far, it only affects the Cornerstone interface, the rest of the site is intact.

2 Likes

The same applies to our websites. We cannot use Cornerstone.

1 Like

Same here!

This fix worked for me. I can use Cornerstone again just like before. Until an update is released, you can use this workaround:

Open: /wp-content/themes/pro/cornerstone/includes/classes/Services/RemoteAssets.php

Replace:

$items = json_decode( wp_remote_retrieve_body( $request ), true );

$items = array_filter( $items, function( $item ) {
if ( ! $this->validLegacyType($item) ) return false;

if (empty ($item[‘status’])) return false;
if ( $item[‘status’] !== ‘publish’ ) return false;
return true;
} );

With:

$items = json_decode( wp_remote_retrieve_body( $request ), true );

if ( ! is_array( $items ) ) {
$items = [];
}

$items = array_filter( $items, function( $item ) {
if ( ! is_array( $item ) ) return false;
if ( ! $this->validLegacyType($item) ) return false;

if ( empty( $item[‘status’] ) ) return false;
if ( $item[‘status’] !== ‘publish’ ) return false;
return true;
} );

8 Likes

I have exactly the same problem!

Is anyone else seeing the layouts as an option page now?

Same here:

[01-Apr-2026 08:42:09 UTC] PHP Fatal error:  Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in ***/wp-content/themes/pro/cornerstone/includes/classes/Services/RemoteAssets.php:188
Stack trace:
#0 ***/wp-content/themes/pro/cornerstone/includes/classes/Services/RemoteAssets.php(188): array_filter()
#1 ***/wp-content/themes/pro/cornerstone/includes/classes/Services/RemoteAssets.php(235): Themeco\Cornerstone\Services\RemoteAssets->getLegacySites()
#2 ***/wp-content/themes/pro/cornerstone/includes/classes/Services/RemoteAssets.php(156): Themeco\Cornerstone\Services\RemoteAssets->getLegacySitesCached()
#3 ***/wp-content/themes/pro/cornerstone/includes/classes/Services/App.php(286): Themeco\Cornerstone\Services\RemoteAssets->getAppData()
#4 ***/wp-content/themes/pro/cornerstone/includes/classes/Services/App.php(233): Themeco\Cornerstone\Services\App->get_app_data()
#5 ***/wp-content/themes/pro/cornerstone/includes/classes/Services/App.php(197): Themeco\Cornerstone\Services\App->setupAppConfig()
#6 ***/wp-content/themes/pro/cornerstone/includes/classes/Services/App.php(432): Themeco\Cornerstone\Services\App->register_app_scripts()
#7 ***/wp-content/themes/pro/cornerstone/includes/classes/Services/App.php(96): Themeco\Cornerstone\Services\App->enqueue_scripts()
#8 ***/wp-content/themes/pro/cornerstone/includes/classes/Services/AppBoot.php(108): Themeco\Cornerstone\Services\App->boot()
#9 ***/wp-includes/class-wp-hook.php(341): Themeco\Cornerstone\Services\AppBoot->detect_load()
#10 ***/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()
#11 ***/wp-includes/plugin.php(570): WP_Hook->do_action()
#12 ***/wp-includes/class-wp.php(418): do_action_ref_array()
#13 ***/wp-includes/class-wp.php(821): WP->parse_request()
#14 ***/wp-includes/functions.php(1343): WP->main()
#15 ***/wp-blog-header.php(16): wp()
#16 ***/index.php(17): require('...')
#17 {main}
  thrown in ***/wp-content/themes/pro/cornerstone/includes/classes/Services/RemoteAssets.php on line 188

Thanks so much - this worked for me too!

I have the same issue across all our sites.

@ mrdplusd Thanks! That’s saved me a lot of headaches today! :grinning:

Same here…Themeco-Team, where are you?

regards,cy

Confirmed - fix worked for me too. Thank you. Will update once official patch has been released.

I have this issue across all sites.

Check your hosting provider’s service status. I am with Hosting.com and they have a reported issue affecting Cpanel sites.

They also own a lot of other hosting companies, so you might be effected by the same issue.

You’re a hero - you’ve saved me (and I’m sure many in the community) a massive headache today.

It’s a shame this fix didn’t come from Themeco support! Or at least a reply / sticky announcement to assure us they’re working on it.

I must be honest; I don’t love the fact there is essentially a ‘kill switch’ that can break cornerstone remotely. I would prefer that any remote assets it needs to load aren’t capable of causing a critical error!

@mrdplusd Thanks so much for the fix, saved a lot of time for me!

I am also astonished that something like this can just completely render all of cornerstone useless across all our websites…

Worked for me