Solved

JQueries Crashed Problem I guess on Magento

Posted on 2013-11-24
6
638 Views
Last Modified: 2016-03-02
Uncaught ReferenceError: FB is not defined                                                  (index):154
(anonymous function)                                                                                    (index):154
o                                                                                                             jquery-1.7.2.min.js:2
p.fireWith                                                                                               jquery-1.7.2.min.js:2
e.extend.ready                                                                                       jquery-1.7.2.min.js:2
c.addEventListener.B

What does it meant when I see that error on console?

How can I fix?

I have a custom theme, after I install a facebook like coupon extension (a popup box with coupon code will be appeared and generated when I click facebook LIKE button on product page). However, the facebook module work but some of my customed theme block gone or contents does not load. I tried to rename the js folder which put in folder skin/frontend/customtheme/js on server, the theme back to work but the facebook popup box with coupon code doesnt appear.

How can I fix? Thanks for your help.....
0
Comment
Question by:camcam1234
  • 3
6 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39673333
I have added javascript and jquery as topics.

COBOLdinosaur, Topic Advisor
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39673339
To start with you might want to download the latest version of jquery (1.10.2) as you are using 1.7.2 and that is an older version.

Then you might want to check the error console when you load the page to see if something is failing to load and that results in undefined elements.

The uncaught exception does not tell us anything ecept that you have a fatal error.  Without a link to the page there is no way for us to know what is wrong with the code.

Cd&
0
 

Author Comment

by:camcam1234
ID: 39673405
Thank you http://www.i-senses.com/for-her-6.html here you are the link.
0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 39674792
28 CSS files, 22 js files, including the old 1.7.2 version of jquery loaded twice from 2 different sources.  Error console full of warnings and at least one hard error, and the page does not validate, including an error about undefined FB properties.

The page is a disaster.  It need drastic cleanup, trimming and rationalization.  There is no valid page on Earth that must have 28 CSS files and 22 js files to run.

I would not even begin to know how to run corrective diagnostics until the code is cleaned up.

Cd&
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now