Notice: Undefined index
-
Getting this error “Notice: Undefined index: in /plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 396“.
Seems to be related to the explode function of the string $taxonomy. In my case the $taxonomy is empty and therefore the function fails. Solved it my wrapping it in a conditional.
if ( !empty( $taxonomy ) ) { $trnsl_attr_values = explode( '|', $unserialized_trnsl_product_attributes[ $taxonomy ][ 'value' ] ); }
Don’t know if this is a correct fix but please look into it for future versions.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Notice: Undefined index’ is closed to new replies.