• 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.

    • This topic was modified 7 years, 12 months ago by Apfelbiss.
    • This topic was modified 7 years, 12 months ago by Apfelbiss.
Viewing 2 replies - 1 through 2 (of 2 total)
  • WP All Export also has an issue with this plugin:
    Fatal error: Call to undefined function get_current_screen() in /wp-content/plugins/wp-all-export-pro/wp-all-export-pro.php(240) : runtime-created function on line 1

    Also receiving this error when updating plugins and themes using Infinite WP.

    PHP Fatal error occurred: Uncaught Error: Call to undefined function get_current_screen()

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.