{"id":18415544,"date":"2025-04-14T14:04:27","date_gmt":"2025-04-14T14:04:27","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/javascript-error-239\/"},"modified":"2025-04-14T14:04:27","modified_gmt":"2025-04-14T14:04:27","slug":"javascript-error-239","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/javascript-error-239\/","title":{"rendered":"Javascript error"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi all,<br \/>I&#8217;ve came across this JavaScript error: &#8220;Uncaught TypeError: Cannot read properties of undefined (reading &#8216;elements&#8217;)&#8221; when clicking on a custom post_type &#8220;event&#8221; page in an element with the class &#8220;block-post-featured-image&#8221; (FSE theme page). All configured in the json file as mentioned.<br \/>So I&#8217;ve just updated the simple-lightbox.min.js to the latest version: <a href=\"https:\/\/fslightbox.com\/javascript\/download\">https:\/\/fslightbox.com\/javascript\/download<\/a> and now the error is gone.<br \/>I hope it helps someone, this is an excellent plugin!<br \/>Best,<br \/>PPR<\/p>\n","protected":false},"template":"","class_list":["post-18415544","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18415544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18415544\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18415544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}