Hi there, i am experiencing the same error, it’s because when you click on the new post button from the posts list page or the admin header the query string ?post_type=post is not appended to /wp-admin/post-new.php.
'product' === wp_unslash( $_GET['post_type'] )
The above from line 320 of /wp-content/plugins/woocommerce/includes/tracks/events/class-wc-products-tracking.php
isset($_GET['post_type']) && 'product' === wp_unslash( $_GET['post_type'] )
I am running my site on PHP8.025
You can see that there is an isset check in the previous if statement on line 310.
-
This reply was modified 3 years, 6 months ago by plexus77.
Thanks Samir for the quick response.
Cheers,
Morgan