Uncaught TypeError: Cannot call method 'getRootElement' of undefined


#1

I’m getting a javascript error on one of the page variations I have created which appears to be preventing the page from loading up correctly.

The error is:
Uncaught TypeError: Cannot call method 'getRootElement' of undefined
which is coming from line 724 of lp-core.js.

The page in question can be found at: https://app.unbounce.com/companies/41…

This doesn’t seem to happen on any of the other page variations, just this particular one. I can’t think of anything that was done differently one this variation which may have caused this.


#2

Hi Cambell,

I have repaired your page. Please have a close look and let me know if there is anything missing from it. There were several small text elements who were no longer referencing a valid container, and I had to remove them from the page to prevent the error.

We are not entirely sure at the moment what caused this to happen. Did you delete or duplicate any elements on the page?

we apologize for any inconvenience this has caused.

Justin


#3

Hi Justin,

All fixed now, many thanks for that. Yes I was duplicating some items on the page and that’s when it went funny.

Many thanks again!