Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Uncaught exeption

When clicking a link to a screen

a href="recipe.html" rel="nofollow"/a

I got this error in firebug

"uncaught exception: Syntax error, unrecognized expression: ."

But there is no indication where the error is coming from, and I can't find any syntax errors. This screen has loaded earlier with no errors.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Uncaught exeption

Try with Chrome Developer Tools, it might give you more information where the error is happening.

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Uncaught exeption

The error is coming from jquery code

Sizzle.error = function( msg ) {
throw "Syntax error, unrecognized expression: " + msg;
Uncaught Syntax error, unrecognized expression: .
};

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Uncaught exeption

Hello Barbara! Could you clarify how to reproduce it?

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Uncaught exeption

Thanks Marina.

To reproduce:

After logging in.
Access the menu and select "Search Recipes" then "Keyword"
Then access the menu again and select "Recipes"

It should go back to the Recipe page.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Uncaught exeption

You have incorrect selector (Recipe screen, on Load event, Run Custom JS - 7 row):

if ($('.#menu').length == 0) - here shoul be ('#menu') if you select by ID
or ('.menu') if you select by class

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Uncaught exeption

Thanks for finding that Marina, I feel really bad about asking you to find coding errors - sorry.

How did you find it? I find it really hard debugging my project as when I use firebug or chrome developer tools, the js for the current page is not available for me to set breakpoints on, only the js for the initial page in the project.

Return to “Issues”