• Resolved zluke

    (@zluke)


    Plugin doesn’t work with the latest versions of wordpress and woocommerce, with error:

    PHP Fatal error: Uncaught Error: Call to undefined function get_current_screen() in .../wp-content/plugins/woo-default-attributes/admin/class-wdat-admin.php:98

    A quick fix is to add
    if ( ! function_exists( 'get_current_screen' ) ) return;

    before line 98 in /wp-content/plugins/woo-default-attributes/admin/class-wdat-admin.php where get_current_screen() is called

    This checks the function exists before trying to call it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Kuuak

    (@kuuak)

    Hello zluke,

    Thanks for this quick fix.
    However, I tested the plugin with the latest WordPress & Woocommerce versions and I do not get this error.

    Do you have maybe more info regarding the versions used and maybe the context of the error (when does it happen) ?

    thanks for your feedback

    Plugin Author Kuuak

    (@kuuak)

    Thanks @zluke, bug fixed with release v1.0.3

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘get_current_page() is undefined – quick FIX’ is closed to new replies.