PHP and DevTools Errors after re-uploading X Theme

Our client’s site was broken in that the accordion toggles and mobile hamburger menu stopped opening/closing. We re-uploaded the latest version of X Theme and re-updated the latest version of WordPress. Doing so fixed the issues with the toggles, however, after ensuring everything was updated a new PHP error appears at the top of the site and dev tools are showing some failures to parse SourceMap in Cornerstone and a X Framework file.

We have turned off other plugins to see if there was an incompatibility issue but the problem persists when only X/Cornerstone are left on. The problem goes away using the default WP theme.

The PHP error reads as:
Warning: count(): Parameter must be an array or an object that implements Countable in /home/of032rkhqq65/public_html/wp-includes/post-template.php on line 316

The DevTools errors read as:
DevTools failed to parse SourceMap: /wp-content/plugins/cornerstone/assets/dist/js/site/cs.bcfc598.js.map
DevTools failed to parse SourceMap: /wp-content/themes/x/framework/dist/js/site/x.js.map

The PHP error has been reported by me and another, it’s being looked into. Bill

Hi @dmeyer,

Thank for reaching out about this. Would you be ok if we logged into your site to check that PHP error? You can add login credentials to the secure note.

The javascript warning is harmless - the sourcemaps are stripped out during minification to reduce the theme’s filesize. Those errors are only generated when you open developer tools.

We’ve updated our original post/secure note with login creds, thank you for your help!

Thanks @dmeyer,

I was able to identify the issue and correct it on your site. It will be fixed officially in the next release and you can safely update.

Rock on! Thank you so much.

You’re welcome, @dmeyer

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