Hello.
Our primary issue is that the slider element is no longer displaying on the page.
At the same time this occurred, we began receiving an error on page load. This doesn’t happen in PRO, only in Child Theme, but If we remove all customizations from child theme, issue still remains. Wondering if it’a a customizer issue.
error in console:
Uncaught SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at cs-body.js:2
at NodeList.forEach ()
at cs-body.js:1
at Array.forEach ()
at o (cs-body.js:1)
at Array.forEach ()
at HTMLDocument. (cs-body.js:1)
If we remove var n=JSON.parse(t.getAttribute("data-x-params"));
from /wp-content/themes/pro/cornerstone/assets/dist/js/site/cs-body.js
the error is gone. That line is in the middle of this section:
27:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t,e){(0,o.default)('[data-x-element="'+t+'"]',function(t){var n=JSON.parse(t.getAttribute("data-x-params"));return e.call(t,n||{})})};var i=t("../lib/everinit"),o=function(t){return t&&t.__esModule?t:{default:t}}(i);e.exports=n.default},{"../lib/everinit":24}],
What is causing the slider to go missing and is this area of code helpful in isolating the issue?
Thanks