• Resolved Jeff Starr

    (@specialk)


    Hello, the latest version of the plugin (4.4.6) causes a JavaScript error on the WP dashboard. To replicate:

    1. Install and activate WP Simple Pay
    2. Visit the dashboard @ /wp-admin/index.php
    3. View the error in the browser console

    Error:

    Cannot read properties of undefined (reading 'meta') /wp-includes/js/dist/core-data.min.js?ver=123abc...:2

    [ Screenshot ]

    Firefox console provides a bit more infos about the error:

    can't access property "meta", f is undefined /wp-includes/js/dist/core-data.min.js?ver=123abc...:2

    This error is causing problems with other plugins. Please let me know if more information is needed.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Spencer Finnell

    (@spencerfinnell)

    Hello Jeff,

    I’m sorry you are experiencing this issue, but unfortunately I am unable to reproduce it. Can you please let me know which version of WordPress you are using? Also, are you using the Gutenberg plugin? If so, which version of that?

    Thread Starter Jeff Starr

    (@specialk)

    WordPress 6.0.

    I will do further testing and report back with specifics.

    Thanks for response.

    Thread Starter Jeff Starr

    (@specialk)

    Turns out the error happens when Classic Widgets is active. So same steps as above, but also enable Classic Widgets.

    Plugin Author Spencer Finnell

    (@spencerfinnell)

    Hello Jeff,

    Thank you very much for the information. That is helpful. A team member was able to reproduce the issue using the Classic Widgets plugin, but I am still unable to reliably reproduce the reported error in my environment.

    We are continuing to investigate this issue and will update you when we have further information.

    If you continue to see the JavaScript error and it causes a conflict with other dashboard widgets, you can use the following PHP code snippet to temporarily prevent the WP Simple Pay widget from loading:

    https://gist.github.com/spencerfinnell/e0baa51bdc6e3c661adfc7876143b0a9

    See: https://docs.wpsimplepay.com/articles/adding-custom-code/

    We apologize for the inconvenience this is causing.

    Thread Starter Jeff Starr

    (@specialk)

    Thanks @spencerfinnell, disabling the widget works for now.

    Plugin Author Spencer Finnell

    (@spencerfinnell)

    Hello @specialk, sorry for the delayed follow up, I’ve been out of the office.

    We have been able to reproduce this (although only sporadically) enough to hunt down the cause. We’ll be sure to include a fix in the next release of the plugin.

    Thank you again for the report and your patience while it is resolved.

    Thread Starter Jeff Starr

    (@specialk)

    That is great news, thanks again for your help. Looking forward to the update.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘JavaScript error on dashboard’ is closed to new replies.