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