Fatal error: Call to undefined function get_current_screen()
-
Hello,
I recognized a failure at exporting WooCommerce Product Variations with the Product CSV Import Suite, when the “Inclusive Parents” plugin is activated: Only the First line with the table head is exported. When activating WP_DEBUG in wp-config.php, it says in line 2 and 3:
<br /> <b>Fatal error</b>: Call to undefined function get_current_screen() in <b>/[…]/wp-content/plugins/inclusive-parents/inclusive-parents.php</b> on line <b>75</b><br />
After a little bit of research I found this and added this in line 74:
require_once(ABSPATH . 'wp-admin/includes/screen.php');
After this change the export works fine, even though (only with activated debug) it adds between every product variation row:
<br /> <b>Notice</b>: Trying to get property of non-object in <b>/[…]/wp-content/plugins/inclusive-parents/inclusive-parents.php</b> on line <b>75</b><br />
Is it possible to fix this in an update, so that also this Notice gets away?
Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Fatal error: Call to undefined function get_current_screen()’ is closed to new replies.