Question

I recenly have had the following JS error start to appear on every page on my Magento website:

TypeError: registry is undefined - Line 5557:9

Has anyone else experienced this issue before and know how to resolve it?

Was it helpful?

Solution

An prototype event listener was attempting to attach to an object that didn't exist. When this listener was removed the error was resolved. See Geek Num 88 comments above.

In my example an element with the id of 'contactForm' did not exist. This meant that the error was caused because the browser could not find an element with the ID specified. See line of code causing the problem below:

var contactForm = new VarienForm('contactForm', true); 
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top