I’ve encountered a bug in my website and wondered if you could help.
When I view the site in the editor preview mode, all works as anticipated (screenshot below).
When I view the same page on the live site, the image and image upload button appear briefly and then are replaced with a ‘Go Home’ link (screenshot below).
The Chrome developer console reveals a load of the following errors: “TypeError: Cannot read property ‘offsetHeight’ of null” (screenshot below). The bug occurs in Chrome, Safari, and Edge; however, the bug doesn’t always occur, sometimes it works as intended.
Does anyone have any ideas on how to fix this? I’ve tried rebuilding the page from scratch, but to no avail.