badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Reply To: When I inspect my webpage I get – "Uncaught SyntaxError: Unexpected token < "

#9549

Hi Theme Horse Gang,

For some reason, the errors are only showing up on my homepage now and not posts or pages. I’m thinking now maybe it was a server issue causing it. I’m hosted by Bluehost which had an update and big crash yesterday…and now that they’re up and running again my post and page errors are gone.

However, here are the two errors remaining that persistently show up on my Homepage.


Uncaught ReferenceError: jQuery is not defined (index):793

Uncaught SyntaxError: Unexpected token < ?v=1.11.0

Line 793 looks like it is in reference to the drop down category widget in my right sidebar which is just the standard one from WordPress. Here’s what pops up when I click on line 793. Which seems odd to me because it doesn’t appear as an error on my pages or posts but only on my homepage.

<script>
/* <![CDATA[ */
var dropdown = document.getElementById(“cat”);
function onCatChange() {
if ( dropdown.options[dropdown.selectedIndex].value > 0 ) {
location.href = “http://www.theburgernerd.com/?cat=”+dropdown.options%5Bdropdown.selectedIndex%5D.value;
}
}
dropdown.onchange = onCatChange;
/* ]]> */
</script>

And in regards to the Uncaught SyntaxError: Unexpected token < ?v=1.11.0 , I’m not sure what’s causing it. These sort of things are a bit above my head. Would it have something to do with my server or the delivery of my homepage code? Here’s my homepage if you wanted to inspect it directly http://www.theburgernerd.com

My thanks in advance for your help.

Trevor