Script Syntax Error: Unexpected token &
-
Inspecting my admin page with chrome I see there is a script error that is showing up in the console. It says it’s at line 239
setup = function () { $('#wpadminbar').pointer(wpseo_pointer_options).pointer('open'); jQuery('#pointer-close').after('<a id="pointer-primary" class="button-primary">' + 'Allow tracking' + '</a>'); jQuery('#pointer-primary').click(function () { document.location="https://mydomain.com/dev12/wp-admin/admin.php?page=wpseo_dashboard&allow_tracking=yes&nonce=36bc1a75fd"; });
^ the last document.location line is 239. So this is happening in part of the wp seo script. I have no other plugins enabled. And of course, when I deactivate WordPress SEO the script error goes away.
This code appears in my footer.My question is, where is this being loaded from? I also had a problem with Titles & Metas not displaying properly, which has not been answered yet. If I knew how scripts were loaded with this plugin maybe I would have a good start on diagnosing the problem, whether it be with my theme or something in WordPress SEO.
- The topic ‘Script Syntax Error: Unexpected token &’ is closed to new replies.