• Resolved jaripp

    (@jaripp)


    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)
  • Hi @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 to answer these questions.?This forum is meant only for free plugin queries.

    Thank You

    Plugin Author Nitesh

    (@nitesh_singh)

    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.