Uncaught SyntaxError: Invalid or unexpected token
-
Hi there,
just like stated in another dude’s topic I am only getting thos loading cubes, and the console ist printing “Uncaught SyntaxError: Invalid or unexpected token”.
twitch-js.php
Firstly spotted here:<script type="text/javascript"> ( function( $ ) {</p> var id = "<?php echo $id; ?>";
The </p>-Tag doesn’t even appear in the code, but there has been a blank space/line break that I removed. When I reloaded the page the error jumped to line 1512 (1513 in original file):
var html = '<li class="stream"><a target="_blank" href="'+url+'" title="Watch '+display_name+' Now!" data-channel-name='+display_name+'>';
In the console there is yet again a blank line break, which this time I cannot remove, so I am sitting here wondering what invalid token it could be pointing at.
In my console it’s showing like this:var html = ' <li class="stream"><a target="_blank" href="'+url+'" title="Watch '+display_name+' Now!" data-channel-name='+display_name+'>'; html += '</p>
which is not even the stated code in the file. Not the “html += ‘</p>’ part in any case. Yes, it seeme to be the right file, since it reacts to changes I am doing.
Hope this can help to solve this issue. :>
Best regards!
The page I need help with: [log in to see the link]
- The topic ‘Uncaught SyntaxError: Invalid or unexpected token’ is closed to new replies.