PHP Warning
-
Hi! My host wants to get rid of all unnecessary php warnings. There is one warning triggered by UAW plugin.
Message:
Undefined variable $noticesLocation:
wp-content/plugins/woocommerce/templates/notices/error.php:22
wc_get_template()
wp-content/plugins/woocommerce/includes/wc-core-functions.php:364
wc_get_template_html()
wp-content/plugins/ultimate-woocommerce-auction-pro/includes/class-uwa-scripts.php:149Somewhere in WC code wc_get_template was used like this and I tested to replace the messages array with notices array (in ultimate-woocommerce-auction-pro/includes/class-uwa-scripts.php:149) and it seemed to work.
wc_get_template("notices/{$notice_type}.php", array( 'messages' => array( $message ), // @deprecated 3.9.0 'notices' => array( array( 'notice' => $message, 'data' => $data, ), ), ) );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP Warning’ is closed to new replies.