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-
Also this is happend for cloudflare DNS sites.
Hey @affordabledentistmarketing,
This URL: https://demo.theme.co/designcloud/wp-json/design-cloud/v3/index returns a valid JSON array of design cloud assets. Your server or web host must not block that or in other words, it must be able to reach that URL. Please contact the AWS support to if the server could reach that URL.
Why this matters for the error:
The fatal error occurs at line 188 of RemoteAssets.php:
$items = array_filter( $items, function( $item ) { ... });
This crashes because $items is null, meaning json_decode() on line 186 returned null — which happens when the HTTP response body is not valid JSON (e.g., the server returned an error page, an empty response, or was blocking the request).
The error on your server is highly likely caused by your server being unable to reach (or getting a non-JSON response from) that URL when loading Design Cloud assets.
About “Cloudflare DNS sites”
If your own sites use Cloudflare proxy (orange cloud), their outbound server-side requests still originate from the underlying AWS IP, not a Cloudflare IP. So Cloudflare on your end doesn’t change the source IP for wp_remote_get() calls — the block on demo.theme.co's side still triggers.
We hav configured Cloudflare firewall/WAF rules on demo.theme.co to allow requests from AWS IP ranges.
