get_current_page() is undefined – quick FIX
-
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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘get_current_page() is undefined – quick FIX’ is closed to new replies.