Title: issue with jQuery
Last modified: November 13, 2019

---

# issue with jQuery

 *  Resolved [struppi](https://wordpress.org/support/users/struppi/)
 * (@struppi)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/issue-with-jquery-2/)
 * There is a Problem with the use of jQuery in your Plugin and it will be effected
   on other plugins. What I did find out is that the Problem is the call of jQuery
   in the file “source-to-core-image-block.js”
 * If I activate your Plugin and edit some content with the gutenberg Editor I get
   the followig errormessage in the webconsole
 * _load-scripts.php?c=1&load[chunk\_0]=jquery-core,jquery-migrate,underscore,backbone,
   wp-api-request,wp-api,utils&ver=5.3:8 JQMIGRATE: Migrate is installed, version
   1.4.1
    source-to-core-image-block.js?ver=1:241 Uncaught TypeError: $ is not a
   function …
 * The reason seems that you need to say you want to use the global $() function.(
   I am not an expert with the use of Jquery, but I speak Javascript 😉 )
 * So if I change the line 240 in the file from:
 *     ```
       //Force Source Control Refresh when Clicking over a CORE/Image Block.
       jQuery(document).ready(function() {
       ```
   
 * to:
 *     ```
       //Force Source Control Refresh when Clicking over a CORE/Image Block.
       jQuery(document).ready(function($) {
       ```
   
 * everything is working again. May there is a other solution. But maybe this helps
   to avoid this error in future releases.
 * Bye.

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

 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/issue-with-jquery-2/#post-12128235)
 * Hi struppi,
 * thanks for reaching out about this. As it happens, I discovered this a minute
   ago when testing WordPress 5.3 so it might be related to a change in there.
 * I am going to send the update asap.
 * Best regards,
    Thomas
 *  Thread Starter [struppi](https://wordpress.org/support/users/struppi/)
 * (@struppi)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/issue-with-jquery-2/#post-12128250)
 * This seems a very common issue in severals Plugins. I also find a general solution
   which should fix all plugins with this problem.
 * [https://crunchify.com/how-to-fix-wordpress-uncaught-typeerror-is-not-a-function-jquery-error/](https://crunchify.com/how-to-fix-wordpress-uncaught-typeerror-is-not-a-function-jquery-error/)
 * But for me it’s shooting a sparrow with a canon, if I can fix the problem with
   just edit one file and add a char.
 *  Thread Starter [struppi](https://wordpress.org/support/users/struppi/)
 * (@struppi)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/issue-with-jquery-2/#post-12128268)
 * That was quick 🙂
 * I just noticed [your correction](https://github.com/webgilde/image-source-control/commit/948766cb5bcab70e672672f94bdeb135402ee3f2#diff-6266117a140d6ed8e7ad600134dc608f)
   too
 * Danke.
 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/issue-with-jquery-2/#post-12128284)
 * Gerne 🙂
 * The update to wp.org is also on its way.
 * Thomas

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

 The topic ‘issue with jQuery’ is closed to new replies.

 * ![](https://ps.w.org/image-source-control-isc/assets/icon.svg?rev=2694143)
 * [Image Source Control Lite – Show Image Credits and Captions](https://wordpress.org/plugins/image-source-control-isc/)
 * [Support Threads](https://wordpress.org/support/plugin/image-source-control-isc/)
 * [Active Topics](https://wordpress.org/support/plugin/image-source-control-isc/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/image-source-control-isc/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/image-source-control-isc/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/issue-with-jquery-2/#post-12128284)
 * Status: resolved