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
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
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:
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.
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.
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.
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
Big thanks… appreciate this!
Thanks for the fix. Must be an April Fool’s joke from Themeco!
We are having the same issue. Hopefully Themeco gets the server back up and running and issues a fix soon.
A very big thank you!