Error: Cannot create a stable subkey under a volatile parent key

Dinesh Bali
Dinesh Bali used Ask the Experts™
on
Hi,

I am getting below error in javascript in IE 11 on Windows 7.

Error: Cannot create a stable subkey under a volatile parent key.

        if (window.localStorage.getItem('toCurrencyCode') == null || window.localStorage.getItem('toCurrencyCode') == 'undefined' || window.localStorage.getItem('toCurrencyCode') == '') {
            dataLayer.push({ 'chosenCurrencyCode': defaultCurrencyConversionCode });


My understanding is coming that javascript is not able to read window.localStorage.getItem on IE 11 on windows 7.

The script is working on chrome, firefox, IE11 on windows 10

Also, script is working on chrome on windows 7.

It is only giving issue in IE11 on windows 7.

Please advise.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
If you compare the IE11 settings in both environments (Win7 and Win10), is there a difference with regard to the security zones? Is Protected Mode enabled on both?
ste5anSenior Developer

Commented:
The error message itself is caused by the Windows registry. Is your Windows 7 and IE11 properly patched?

Imho the error is caused in dataLayer.push(), which seems to be a custom method.

Author

Commented:
Thanks.
 Restoring IE to default setting helped.

Regards

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial