PHP notice: Trying to get property 'base' of non-object in [...]/plugins/inclusive-parents/inclusive-parents.php on line 94
Fatal error: Call to undefined function get_current_screen() in /wp-content/plugins/inclusive-parents/inclusive-parents.php on line 94
This happens when I click the “Customize” button (for theme customization).
It also happens when installing some other plugins from time to time.
]]>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.
]]>Just what the title says. The plugin looks like exactly what I need, but when I activated it I could no longer access any of the admin functions in WordPress. I had to rename the inclusive-parents folder through ftp to deactivate the plugin and get renewed control over my site.
]]>