PHP error on adding/updating Woocommerce product
-
I’m recently getting this error duw to which i’m unable to add or update a product in Woocommerce. I have the latest Version of woocommerce 2.3.7. If anyone has come across the similar issue then please do share how did you get over with this-
Notice: Undefined offset: 0 in .../public_html/wp-includes/capabilities.php on line 1119 Warning: Cannot modify header information - headers already sent by (output started at .../public_html/wp-includes/capabilities.php:1119) in .../public_html/wp-includes/pluggable.php on line 1178
I checked the code in capabilities.php at the mentioned line and it is-
$post = get_post( $args[0] );
But I’m not sure how to fix this. I checked adding a page or post and it works just fine. The problem however exists only with the products. Please help.
- The topic ‘PHP error on adding/updating Woocommerce product’ is closed to new replies.