Title: Causing a JavaScript error on every page
Last modified: May 11, 2022

---

# Causing a JavaScript error on every page

 *  Resolved [Room 34 Creative Services, LLC](https://wordpress.org/support/users/room34/)
 * (@room34)
 * [4 years ago](https://wordpress.org/support/topic/causing-a-javascript-error-on-every-page/)
 * Join me on a little adventure through plugin code.
 * My client reported that their WooCommerce orders were coming in with no shipping
   address. I discovered a JavaScript error that was appearing on every single page
   of their site, “Error: invalid version specified” which was tied to loading the
   Facebook JavaScript SDK.
 * I had a hunch this JavaScript error was causing a cascading effect that was preventing
   Woo’s JavaScript that dynamically shows the shipping address fields and the “
   Ship to a different address?” checkbox from working.
 * Now, to check that, I just had to figure out which plugin on their site was trying
   to load this Facebook SDK with an “invalid version.”
 * Ultimately I had to download their entire `plugins` directory and do a multi-
   file search to find the culprit, which was this plugin, Simple Share Buttons 
   Adder.
 * I deactivated Simple Share Buttons Adder and, sure enough, the WooCommerce checkout
   page started working, and the JavaScript error on every page of the site was 
   now gone.
 * I’m guessing it’s probably a fairly trivial fix within this plugin (probably 
   in lines 130-132 of `class-styles.php`) to resolve the issue.

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [ShareThis](https://wordpress.org/support/users/sharethis/)
 * (@sharethis)
 * [4 years ago](https://wordpress.org/support/topic/causing-a-javascript-error-on-every-page/#post-15640824)
 * Hey [@room34](https://wordpress.org/support/users/room34/)
 * Thank you for contacting us on this issue.
 * We deeply apologize for all you went through trying to find the root cause of
   the error. We have reported this issue to our engineers so they can take a better
   look into it and fix it in a future version.
 * **If you have any other questions or you want to share more information about
   this with us just let us know here or at [support@sharethis.com](https://wordpress.org/support/topic/causing-a-javascript-error-on-every-page/support@sharethis.com?output_format=md)**

Viewing 1 replies (of 1 total)

The topic ‘Causing a JavaScript error on every page’ is closed to new replies.

 * ![](https://ps.w.org/simple-share-buttons-adder/assets/icon-256x256.png?rev=2661516)
 * [Simple Share Buttons Adder](https://wordpress.org/plugins/simple-share-buttons-adder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-share-buttons-adder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-share-buttons-adder/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-share-buttons-adder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-share-buttons-adder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-share-buttons-adder/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ShareThis](https://wordpress.org/support/users/sharethis/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/causing-a-javascript-error-on-every-page/#post-15640824)
 * Status: resolved