Bogey Posted July 8, 2018 Share Posted July 8, 2018 (edited) Hi all, I have the same files on different URL's but get an error on one url and don't get one on the other url. The used .js files are coming from a template, so nothing I wrote myself. This is the error I get from one url, whereas the other url runs fine: Uncaught SyntaxError: Invalid or unexpected token jquery.js:2 Uncaught SyntaxError: missing ) after argument list plugins.js:689 Uncaught ReferenceError: jQuery is not defined functions.js:1 at function.js: Any clues why one url gives errors and another url doesn't? The one with errors is a url with lot of other files (its a running website) the url without errors is almost empty, thats an url for testing and so... This is the code of the page I am loading to test om both url's: <!DOCTYPE html> <html dir="ltr" lang="en-US"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="author" content="SemiColonWeb" /> <!-- Stylesheets ============================================= --> <link rel="stylesheet" href="/fotosaangepast/magnific-popup.css" type="text/css" /> <!-- External JavaScripts ============================================= --> <script type="text/javascript" src="/fotosaangepast/jquery.js"></script> <script type="text/javascript" src="/fotosaangepast/plugins.js"></script> <!-- Document Title ============================================= --> <title>Gallery | Canvas</title> </head> <body> <center> <div class="content-wrap"> <div class="container clearfix"> <div class="col_full clearfix"> <h3>Michel is dit wat?</h3> <div class="masonry-thumbs col-2" data-big="3" data-lightbox="gallery"> <a href="/images/BBP/projectfotos/0075/big_1530100247.jpg" data-lightbox="gallery-item"><img class="image_fade" src="/images/BBP/projectfotos/0075/thumb_1530100247.jpg" alt="Gallery Thumb 1"></a> <a href="/images/BBP/projectfotos/0075/big_1530100394.jpg" data-lightbox="gallery-item"><img class="image_fade" src="/images/BBP/projectfotos/0075/thumb_1530100394.jpg" alt="Gallery Thumb 1"></a> <a href="/images/BBP/projectfotos/0075/big_1530100446.jpg" data-lightbox="gallery-item"><img class="image_fade" src="/images/BBP/projectfotos/0075/thumb_1530100446.jpg" alt="Gallery Thumb 1"></a> <a href="/images/BBP/projectfotos/0075/big_1530100626.jpg" data-lightbox="gallery-item"><img class="image_fade" src="/images/BBP/projectfotos/0075/thumb_1530100626.jpg" alt="Gallery Thumb 1"></a> <a href="/images/BBP/projectfotos/0075/big_1530100789.jpg" data-lightbox="gallery-item"><img class="image_fade" src="/images/BBP/projectfotos/0075/thumb_1530100789.jpg" alt="Gallery Thumb 1"></a> </div> </div> </div> </div> </center> <script type="text/javascript" src="/fotosaangepast/functions.js"></script> </body> </html> Any help is really appreciated Edited July 8, 2018 by Bogey Link to comment Share on other sites More sharing options...
Ingolme Posted July 8, 2018 Share Posted July 8, 2018 It looks like your copy of jQuery is corrupted. Plugins.js and functions.js both have issues as well. You should contact the person who provided these files and tell them about it. Link to comment Share on other sites More sharing options...
dsonesuk Posted July 8, 2018 Share Posted July 8, 2018 (edited) The jQuery error is usually produced because your jquery code has an error of some kind, as pointed out by the two following errors, The last error usually means your code expects '$' as a reference to jquery, but you are using 'jQuery' which is used to prevent conflict with other jquery versions or plugin coding by using 'jQuery.noConflict()' Edited July 8, 2018 by dsonesuk Link to comment Share on other sites More sharing options...
Bogey Posted July 8, 2018 Author Share Posted July 8, 2018 I understand.... bought this template about 3 or 4 years ago. Thing I dont understand is why one URL doesn't give the errors: this one without errors And other url gives the errors: this one with errors Link to comment Share on other sites More sharing options...
Ingolme Posted July 8, 2018 Share Posted July 8, 2018 The files are corrupted. Download the files from that site that is working, and upload them to the other site. Link to comment Share on other sites More sharing options...
Bogey Posted July 8, 2018 Author Share Posted July 8, 2018 both sites using the same files :S Link to comment Share on other sites More sharing options...
Ingolme Posted July 8, 2018 Share Posted July 8, 2018 The files are not the same, I downloaded and compared them. On one of the sites they got corrupted. Link to comment Share on other sites More sharing options...
Bogey Posted July 9, 2018 Author Share Posted July 9, 2018 Strange... I don't understand how this happens :S However, I downloaded the laters version of the template. Got the latest versions of the files.... now it works!!! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now