Link to home
Start Free TrialLog in
Avatar of Dinesh Bali
Dinesh Bali

asked on

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

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.
ASKER CERTIFIED SOLUTION
Avatar of Paul Neralich
Paul Neralich
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of Dinesh Bali
Dinesh Bali

ASKER

Thanks.
 Restoring IE to default setting helped.

Regards