Cannot access Cornerstone in any of my websites!

Please can you help as I cannot access any of my websites with Cornerstone… please advise solution asap as I have urgent work to complete…

Kind Regards
Roy

2 Likes

I investigated the issue and fixed my dev sites. my team doesn’t’ have a downtime anymore, and I am sure Themeco’s update will be there soon to override the fix.

Claude Code:

Symptoms

All sites using Themeco Pro/Cornerstone suddenly show a critical error when launching the Cornerstone builder. No theme or plugin updates were applied — the issue appeared simultaneously across all sites.

Root Cause

Themeco’s legacy design cloud server ( demo.theme.co ) is currently returning 502 Bad Gateway . When Cornerstone loads the builder, it calls this server to fetch legacy template data. The 502 response is HTML, not JSON, so json_decode() returns null . On PHP 8.2+, passing null to array_filter() is a fatal error — crashing the builder.

The bug is in RemoteAssets.php — a missing null check that only surfaces when the external server is unavailable.

Fix

Edit this file in your Pro theme:

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

Find this code around line 186 :

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

$items = array_filter( $items, function( $item ) {

Add a null check between those two lines:

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

if (!is_array($items)) return [];

$items = array_filter( $items, function( $item ) {

Save the file. The builder will work immediately.

Notes

  • This only affects sites running PHP 8.2+ (where null→array type coercion is a fatal error)
  • The fix will be overwritten by the next Pro theme update, but by then Themeco will likely have patched this or their server will be back up
  • No templates are lost — the fix just skips the legacy template library while the server is down
6 Likes
1 Like

Thank you for the solution on Pro…

I have the same problem on x, where is the file to edit on x?

Regards

Roy

In X, Cornerstone is a separate plugin.

You can find the correct file at
wp-content/plugins/cornerstone/includes/classes/Services/RemoteAssets.php

1 Like

Big thanks… appreciate this!

1 Like

Thanks for the fix. Must be an April Fool’s joke from Themeco!

2 Likes

We are having the same issue. Hopefully Themeco gets the server back up and running and issues a fix soon.

1 Like

A very big thank you!

1 Like

We’ve fixed the issue with our demo server and will be taking actions for this to never happen again. Have a great day.

2 Likes

Haha that’s a good cover story! Thanks for the temporary fix - saved my day!

1 Like

April 1st! What prank could we deliver upon them? Kill the server!

1 Like

haha our server got inundated with spam to the point where it filled up the disk space. So I guess in some ways it was a prank coordinated by spammers.

1 Like

Many thanks for your prompt help with this!

1 Like

You are most welcome, @RoyPurlan

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.