• Resolved akinsaylik

    (@akinsaylik)


    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

    (@efreja)

    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

    (@efreja)

    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 2 years, 1 month ago by efreja.
    • This reply was modified 2 years, 1 month ago by efreja.
    • This reply was modified 2 years, 1 month ago by efreja.
    • This reply was modified 2 years, 1 month ago by efreja.
    • This reply was modified 2 years, 1 month ago by 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.