Magento Forum

Magento 1.5, Firefox 20.0.1 Incompatability
 
schenn
Jr. Member
 
Total Posts:  2
Joined:  2012-12-18
 

For those of you still using Magento 1.5, you may have noticed that trying to find elements by their class name from the context of an element (jQuery("anything").find(".class")) stopped working in FF 20.

After filing a bug report with Mozilla, it was determined that there is a specific function in the prototype deprecated library which converts element.getElementsByClassName() into an empty function in firefox alone. This wasn’t a problem before due to the way getElementsByClassName was handled previously, but FF had to implement a major fix to that function due to issues which, combined with this library, creates the above issue.

To fix the problem, search your prototype-deprecated file for the following block and remove it:

{
methodName: ‘getElementsByClassName’,
namespace: Element.Methods,
message: ‘Element#getElementsByClassName has been deprecated, please use Element#select instead.’
},

 
Magento Community Magento Community
Magento Community
Magento Community
 
Kevin McD
Jr. Member
 
Total Posts:  10
Joined:  2009-11-24
 

Hi, I have encountered a couple of problems with FF20, first being unable to use insert image button in admin, the second and worst is that customers are not redirected to payment gateway on pressing place order button. A popup dialog says the payment failed.

It works on other browsers, just not (arguably the most popular) Firefox v20!!

Can you please explain to me which js file needs editing as you described?

Thanks

Kevin

 
Magento Community Magento Community
Magento Community
Magento Community
 
schenn
Jr. Member
 
Total Posts:  2
Joined:  2012-12-18
 

Make the change here:

/js/prototype/deprecation.js

In addition, you may need to edit the magento layout file which adds the scripts tags to the page and move the jQuery tag to the beginning of the addScript tags.

That layout file is page.xml

 
Magento Community Magento Community
Magento Community
Magento Community
 
Kevin McD
Jr. Member
 
Total Posts:  10
Joined:  2009-11-24
 

Ah, ok thanks.

Unfortunately, I’m using a later version of Magento which no longer has the deprecated.js as prototype no longer supports it apparently.

Cheers anyway

Kevin

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top