Title: Error in console
Last modified: February 12, 2017

---

# Error in console

 *  Resolved [prodo](https://wordpress.org/support/users/prodo/)
 * (@prodo)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-in-console-3/)
 * I’m getting the following error, in the console, if I’m viewing a page without
   a post. Note, because there isn’t a post on the page, the Facebook share button
   isn’t necessary, but it looks like it’s still trying to be loaded by the plugin.
 *     ```
       Uncaught TypeError: jQuery(...).not(...).nearest is not a function
           at HTMLDocument.<anonymous> (mashsb.min.js?ver=3.3.7:1)
           at i (jquery.js?ver=1.12.4:2)
           at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
           at Function.ready (jquery.js?ver=1.12.4:2)
           at HTMLDocument.K (jquery.js?ver=1.12.4:2)
       ```
   

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Thread Starter [prodo](https://wordpress.org/support/users/prodo/)
 * (@prodo)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-in-console-3/#post-8797372)
 * Edit: the page contains a post, but it does not contain the MashShare shortcode,
   so presumably, the js script is breaking.
 *  Thread Starter [prodo](https://wordpress.org/support/users/prodo/)
 * (@prodo)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-in-console-3/#post-8797576)
 * The broken js script is preventing enqueued scripts from loading. I’d like to
   use MashShare, but it’s a blocker right now. I’m on a time crunch, so getting
   this fixed asap would really be appreciated!
 *  Thread Starter [prodo](https://wordpress.org/support/users/prodo/)
 * (@prodo)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-in-console-3/#post-8797586)
 * I applied a temporary fix by including the page ids in the “Exclude from post
   id” setting. There are 11 IDs I had to add, so it’s not a great long term solution.
 *  [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-in-console-3/#post-8798127)
 * [@prodo](https://wordpress.org/support/users/prodo/) how did you included mashshare,
   using shortcode, automatic mode?
 * [@rastadjust](https://wordpress.org/support/users/rastadjust/) i included a moderator
   to check your issue: [@modlook](https://wordpress.org/support/users/modlook/)
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-in-console-3/#post-8798559)
 * [@renehermi](https://wordpress.org/support/users/renehermi/) Putting `modlook`
   in the content doesn’t do anything. You need to put it in the tags field below.
   I just happen to see it when reviewing posts.
 * _*Looks*_
 * [@rastadjust](https://wordpress.org/support/users/rastadjust/) Don’t post in 
   other peoples topic with your problem, OK?
 * [https://wordpress.org/support/users/rastadjust/subscriptions](https://wordpress.org/support/users/rastadjust/subscriptions)
   will show you what you are subscribed to.
 * [https://wordpress.org/support/plugin/mashsharer/](https://wordpress.org/support/plugin/mashsharer/)
   should let you unsubscribe to the forum if you are subscribed there.
 *  [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-in-console-3/#post-8798698)
 * Thank you very much [@jdembowski](https://wordpress.org/support/users/jdembowski/).
   i am glad that you have seen it, anyhow:-)
    I was not aware that i can handle
   the subscriptions from the profile. Otherwise i had answered to the guy instead
   calling you.
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-in-console-3/#post-8798904)
 * It’s all good. 😉 The subscription options are… not well publicized? Anyway there’s
   many options for that.
 *  Thread Starter [prodo](https://wordpress.org/support/users/prodo/)
 * (@prodo)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-in-console-3/#post-8799430)
 * Thanks, guys. [@jdembowski](https://wordpress.org/support/users/jdembowski/) –
   I got a chuckle out of the sign in your profile picture. Nice.
 * [@renehermi](https://wordpress.org/support/users/renehermi/) – I’m using `<?php
   echo do_shortcode('[mashshare shares="false"]'); ?>` in the Repeater Template
   of the “Ajax Load More” plugin as well as
 *     ```
       ob_start();
       echo do_shortcode('[mashshare shares="false"]');
       $facebook_share_button = ob_get_clean();
       ```
   
 * in a custom `single.php` file of mine.
 * I don’t think it’s the implementation of the shortcode. I think the problem is
   that I’m not implementing the shortcode on some of my pages that have posts. 
   The MashShare js script is looking for the shortcode, and it’s not there, so 
   it’s breaking. I think that’s why you guys included the “Exclude from post id”
   feature, but this is a tedious and inefficient solution if you have dozens of
   pages with posts that don’t have the shortcode.
 * Cheers
 *  Thread Starter [prodo](https://wordpress.org/support/users/prodo/)
 * (@prodo)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/error-in-console-3/#post-8801978)
 * [@renehermi](https://wordpress.org/support/users/renehermi/) I’ve fixed the problem.
   It looks like there was a conflict with the jQuery library I was loading on certain
   pages. Sorry about this!
 * Great job on the plugin – thanks!
 * Cheers

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Error in console’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mashsharer_33bbee.svg)
 * [MashShare - Social Media Share Buttons, Social Share Icons](https://wordpress.org/plugins/mashsharer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mashsharer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mashsharer/)
 * [Active Topics](https://wordpress.org/support/plugin/mashsharer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mashsharer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mashsharer/reviews/)

## Tags

 * [jquery error](https://wordpress.org/support/topic-tag/jquery-error/)

 * 12 replies
 * 3 participants
 * Last reply from: [prodo](https://wordpress.org/support/users/prodo/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/error-in-console-3/#post-8801978)
 * Status: resolved