Support » Plugin: MainWP Dashboard » JS console errors – MainWP v4

  • Resolved pixelbrad

    (@pixelbrad)


    Hello,

    I’ve upgraded to MainWP Dashboard v4, following the handy upgrade guide/faq. After upgrading, and after transitioning to v4 extensions, I’m seeing a couple of JS console errors come up on numerous pages within the MainWP dashboard.

    The console errors are being generated by one of the scripts in the extension MainWP Client Reports: /wp-content/plugins/mainwp-client-reports-extension/js/mainwp-reporting.js?ver=1.4

    The console errors are:

    Uncaught TypeError: jQuery(...).tooltip is not a function
        at mainwp-reporting.js?ver=1.4:854
    Uncaught TypeError: jQuery(...).datepicker is not a function
        at HTMLDocument.<anonymous> (mainwp-reporting.js?ver=1.4:3)
        at i (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-mouse,jquery-ui-resizable,jquery-u&load[]=i-draggable,jquery-ui-button,jquery-ui-dialog,zxcvbn-async&ver=d2a437fb1538cae52f14c27c678cdec0:2)
        at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-mouse,jquery-ui-resizable,jquery-u&load[]=i-draggable,jquery-ui-button,jquery-ui-dialog,zxcvbn-async&ver=d2a437fb1538cae52f14c27c678cdec0:2)
        at Function.ready (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-mouse,jquery-ui-resizable,jquery-u&load[]=i-draggable,jquery-ui-button,jquery-ui-dialog,zxcvbn-async&ver=d2a437fb1538cae52f14c27c678cdec0:2)
        at HTMLDocument.J (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-mouse,jquery-ui-resizable,jquery-u&load[]=i-draggable,jquery-ui-button,jquery-ui-dialog,zxcvbn-async&ver=d2a437fb1538cae52f14c27c678cdec0:2)

    This isn’t exactly causing me any trouble, but just thought you should be aware.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Actually, it does seem to be causing some trouble. With the extension activated, and with those console errors present, there are certain things I cannot do within the dashboard, such as viewing the table of all of my sites (they simply won’t load).

    These errors occur after updating if you are using cached versions of the javascript files from the previous version. It should clear up if you clear your browser and/or server cache, as noted in this post.

    Interesting. I had done a hard refresh (clears cache) a couple of times after the whole upgrade process and was still seeing those errors. One more hard refresh and they’ve all but cleared up now.

    I didn’t think that post you linked was relevant to me. But it does touch on a broader issue. If JavaScript breaks in the MWP Dashboard, the dashboard becomes border-line useless, since so many aspects of the dashboard rely on JavaScript to function.

    Marking this as resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.