Reputation: 3
I've been searching all over Stackoverflow about this issue but none of the solutions seem to work. I migrated an existing wordpress installation (database + files, same domain) to to another hosting. These are the errors i'm getting, all jquery related: Uncaught SyntaxError:
Invalid or unexpected token
Uncaught ReferenceError: jQuery is not defined
screenshot of errors in wp-admin
I tried to add "define('CONCATENATE_SCRIPTS', false);" to wp-config.php and add Jquery script tags directly to theme's header.php file
Can you please guide me with this problem?
Link to frontend: https://www.cartediem.be
Thanks!
Upvotes: 0
Views: 2225
Reputation: 476
Something is clearly wrong with your jquery.js (and probably not only that). it looks to me like some weird error with the charset of the filesystem. or a corrupted file/transfer, like zipkundan mentioned. But you said you replaced the files.
i copied the code of your jquery.js directly into the console. same error like you get.
then i copy the code of one of my installations (same jquery version) the same way, and it works.
Take a look at the screenshot, on the left is mine, on the right is yours. This MIGHT also be a problem when unzipping the installation or transferred files. try to upload the individual files via FTP.
Upvotes: 1