Solved

JQueries Crashed Problem I guess on Magento

Posted on 2013-11-24
6
640 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JqueryUI sortable append variable to post 1 39
Jquery keyup 4 20
asp.net mvc5 6 17
innerHTML 7 23
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

821 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