Title: Verovio err=ReferenceError: jQuery is not defined,log=
Last modified: September 28, 2022

---

# Verovio err=ReferenceError: jQuery is not defined,log=

 *  Resolved [akinsaylik](https://wordpress.org/support/users/akinsaylik/)
 * (@akinsaylik)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/verovio-errreferenceerror-jquery-is-not-definedlog/)
 * Fresh install WordPress version 6.0.2-tr_TR
 * when i try to add score i get “Verovio err=ReferenceError: jQuery is not defined,
   log=” error on chrome console.
 * I insert this code on second line public function hook_javascript() function 
   and it fix for me.
 * if ( ! wp_script_is( ‘jquery’, ‘enqueued’ )) {
    wp_enqueue_script( ‘jquery’ );}
 * Thanks for this cool plugin 🙂

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

 *  Plugin Author [efreja](https://wordpress.org/support/users/efreja/)
 * (@efreja)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/verovio-errreferenceerror-jquery-is-not-definedlog/#post-16072655)
 * Hello akinsylik,
    Yes the plugin is only tested up to WP 5.9.4. I shall test 
   it with WP 6 as apparently, as you say, jQuery is not imported automatically 
   by this version. Thanks if your fix works !
 *  Plugin Author [efreja](https://wordpress.org/support/users/efreja/)
 * (@efreja)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/verovio-errreferenceerror-jquery-is-not-definedlog/#post-16083010)
 * Hello akinsaylik,
    Just upgraded my WP 5.9.4 version to 6.0.2 and I don’t encounter
   the problem. However I don’t say there is no problem on a fresh install, but 
   I’d like to avoid reinstalling a fresh install just for testing that. I may apply
   your fix but I don’t see why a dependency would not be enough. Can you test for
   me replacing line 273 of music-sheet-viewer.php by:
 *  wp_enqueue_script (‘msv’, plugins_url(‘/js/msv.js’, __FILE__ ), array(**‘jquery’**),
   self::MSV_VERSION);
 * to see if it also fixes your issue?
    Thanks! Etienne
    -  This reply was modified 3 years, 6 months ago by [efreja](https://wordpress.org/support/users/efreja/).
    -  This reply was modified 3 years, 6 months ago by [efreja](https://wordpress.org/support/users/efreja/).
    -  This reply was modified 3 years, 6 months ago by [efreja](https://wordpress.org/support/users/efreja/).
    -  This reply was modified 3 years, 6 months ago by [efreja](https://wordpress.org/support/users/efreja/).
    -  This reply was modified 3 years, 6 months ago by [efreja](https://wordpress.org/support/users/efreja/).

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

The topic ‘Verovio err=ReferenceError: jQuery is not defined,log=’ is closed to 
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/music-sheet-viewer_050505.svg)
 * [Music Sheet Viewer](https://wordpress.org/plugins/music-sheet-viewer/)
 * [Support Threads](https://wordpress.org/support/plugin/music-sheet-viewer/)
 * [Active Topics](https://wordpress.org/support/plugin/music-sheet-viewer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/music-sheet-viewer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/music-sheet-viewer/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [efreja](https://wordpress.org/support/users/efreja/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/verovio-errreferenceerror-jquery-is-not-definedlog/#post-16083010)
 * Status: resolved