Title: PHP Warning
Last modified: November 6, 2022

---

# PHP Warning

 *  Resolved [jaripp](https://wordpress.org/support/users/jaripp/)
 * (@jaripp)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-warning-381/)
 * Hi! My host wants to get rid of all unnecessary php warnings. There is one warning
   triggered by UAW plugin.
 * **Message:**
    Undefined variable $notices
 * **Location:**
    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:149
 * Somewhere 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)

 *  [payalrajyaguru](https://wordpress.org/support/users/payalrajyaguru/)
 * (@payalrajyaguru)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-warning-381/#post-16181370)
 * Hi [@jaripp](https://wordpress.org/support/users/jaripp/),
 * You are using the Ultimate WooCommerce Auction Pro plugin on your site. We have
   checked the error message you shared. The first two errors come from the WooCommerce
   plugin. The third error comes from the Ultimate WooCommerce Auction Pro plugin.
 * 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:149
 * We have tested the Pro plugin on our server. We are not able to reproduce this
   error on our server. How did you get this error? Please list out the test steps
   to reproduce this error.
 * 1. Could you please share WooCommerce System Report? It can be found – in WP 
   Admin > WooCommerce > Status > Get System Report.
 * This will help us analyze the WordPress setup that you are running and will give
   us an idea if WP and related software used are using the latest version or not.
 * 2. Could you also share which theme you are using and share its zip if it is 
   paid so that we can install and test it in-house?
 * You are a PRO customer. So, please use this [contact form](https://docs.auctionplugin.net/#contact)
   to answer these questions. This forum is meant only for free plugin queries.
 * Thank You
 *  Plugin Author [Nitesh](https://wordpress.org/support/users/nitesh_singh/)
 * (@nitesh_singh)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-warning-381/#post-16218437)
 * This query was meant for PRO version and user has been requested for that.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Warning’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-woocommerce-auction/assets/icon-256x256.gif?rev
   =2682280)
 * [Ultimate Auction for WooCommerce - Excellent WP Auction Plugin](https://wordpress.org/plugins/ultimate-woocommerce-auction/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-woocommerce-auction/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-woocommerce-auction/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-woocommerce-auction/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-woocommerce-auction/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-woocommerce-auction/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Nitesh](https://wordpress.org/support/users/nitesh_singh/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/php-warning-381/#post-16218437)
 * Status: resolved