• Hello,

    when I am editing a post javascript is not working anymore (so mouse over menus etc do not work anymore in the backend). Chrome Dev Tools (F12) show me the following:

    Uncaught TypeError: $jSpark(...).sparkline is not a function
        at HTMLDocument.<anonymous> (post.php?post=22341&action=edit&lang=de:651)
        at i (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,backbone,jquery-u&load[]=i-progressbar,jquery-ui-resizable,jquery-ui-draggable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,wp-pointer,jquery-ui-&load[]=menu,wp-a11y,jquery-ui-autocomplete,wp-util,moxiejs,plupload&ver=4394fe1b1cdc65799dfbc474a5ccb5d9:2)
        at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,backbone,jquery-u&load[]=i-progressbar,jquery-ui-resizable,jquery-ui-draggable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,wp-pointer,jquery-ui-&load[]=menu,wp-a11y,jquery-ui-autocomplete,wp-util,moxiejs,plupload&ver=4394fe1b1cdc65799dfbc474a5ccb5d9:2)
        at Function.ready (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,backbone,jquery-u&load[]=i-progressbar,jquery-ui-resizable,jquery-ui-draggable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,wp-pointer,jquery-ui-&load[]=menu,wp-a11y,jquery-ui-autocomplete,wp-util,moxiejs,plupload&ver=4394fe1b1cdc65799dfbc474a5ccb5d9:2)
        at HTMLDocument.K (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,backbone,jquery-u&load[]=i-progressbar,jquery-ui-resizable,jquery-ui-draggable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,wp-pointer,jquery-ui-&load[]=menu,wp-a11y,jquery-ui-autocomplete,wp-util,moxiejs,plupload&ver=4394fe1b1cdc65799dfbc474a5ccb5d9:2)

    I searched for “$jSpark” and “sparkline” and only found it in the WP-Piwik plugin.

    It looks like something is breaking something here. ??

    If I can provide any further information, I am happy to provide it.

    Thank you for your help,
    cheers,
    Martin

    • This topic was modified 6 years, 8 months ago by msebald.
Viewing 1 replies (of 1 total)
  • Plugin Author braekling

    (@braekling)

    Hm, looks like jSpark is not loaded correctly or the script is executed before it was loaded… Can you check if following line appears in your page’s source?

    <link rel='stylesheet' id='wp-piwik-css' href='https://www.braekling.de/wp-content/plugins/wp-piwik/css/wp-piwik-spark.css?ver=1.0.19' type='text/css' media='all' />

    Are you using a caching or minify plugins to optimize JavaScript files? Maybe it’s missing there?

Viewing 1 replies (of 1 total)
  • The topic ‘Uncaught TypeError: $jSpark(…).sparkline is not a function’ is closed to new replies.