{"id":3130,"date":"2014-03-16T22:56:08","date_gmt":"2014-03-16T22:56:08","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/16\/uncaught-reference-error-stlight-is-not-defined-in-chrome-only-collection-of-common-programming-errors-2\/"},"modified":"2014-03-16T22:56:08","modified_gmt":"2014-03-16T22:56:08","slug":"uncaught-reference-error-stlight-is-not-defined-in-chrome-only-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/16\/uncaught-reference-error-stlight-is-not-defined-in-chrome-only-collection-of-common-programming-errors-2\/","title":{"rendered":"Uncaught Reference Error: stLight is not defined (in Chrome only)-Collection of common programming errors"},"content":{"rendered":"<p>My web page ends thus:<\/p>\n<pre><code>\nvar switchTo5x=false;\n\n\nstLight.options({publisher: \"ur-24e62f76-1f66-e3aa-1190-c533b729ca11\", doNotHash: true, doNotCopy: true, hashAddressBar: false});\n\n  \n\n\n<\/code><\/pre>\n<p>In FireFox and Safari, it behaves. In Chrome:<\/p>\n<pre><code>Uncaught ReferenceError: stLight is not defined nectar-tugg-art:229\n(anonymous function)\n<\/code><\/pre>\n<p>In other words, the code at w.sharethis.com\/button\/buttons.js has failed to execute, and hence, failed to define the stLight variable.<\/p>\n<p>The page is part of a Django web application running on a remote server. Saving the generated HTML page locally, then viewing in Chrome, works correctly.<\/p>\n<p>At this point I&#8217;m stuck. Something to do with the cross domain security model? There aren&#8217;t any security exceptions.<\/p>\n<p>Some weird interaction with the other javascript files?<\/p>\n<p>The static (generated) code is here. It won&#8217;t run from Dropbox though.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My web page ends thus: var switchTo5x=false; stLight.options({publisher: &#8220;ur-24e62f76-1f66-e3aa-1190-c533b729ca11&#8221;, doNotHash: true, doNotCopy: true, hashAddressBar: false}); In FireFox and Safari, it behaves. In Chrome: Uncaught ReferenceError: stLight is not defined nectar-tugg-art:229 (anonymous function) In other words, the code at w.sharethis.com\/button\/buttons.js has failed to execute, and hence, failed to define the stLight variable. The page is part [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3130","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3130"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3130\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}