Title: PHP Notice
Last modified: August 20, 2016

---

# PHP Notice

 *  Resolved [davemac](https://wordpress.org/support/users/davemac/)
 * (@davemac)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/php-notice-5/)
 * Not a biggy, but with debug on I am getting:
 * Notice: Undefined variable: weight in /wp-content/plugins/woocommerce-variation-
   details-on-page-product/wc-attributes-on-page.php on line 80
 * Is the solution as simple as defining $weight ?
 * [http://wordpress.org/extend/plugins/woocommerce-variation-details-on-page-product/](http://wordpress.org/extend/plugins/woocommerce-variation-details-on-page-product/)

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

 *  Plugin Author [Marco Pereirinha](https://wordpress.org/support/users/pereirinha/)
 * (@pereirinha)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/php-notice-5/#post-3480652)
 * Hi davemac:
 * Sorry about that. I went look the code and notice that there was some trash within.
   This is due to recent code review. I simply forgot to clean up this part of the
   code.
 * Will update ASAP. After that, please report if the issue has gone.
 * Thank you for pointing this issue.
 *  Thread Starter [davemac](https://wordpress.org/support/users/davemac/)
 * (@davemac)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/php-notice-5/#post-3480704)
 * Thank you for the quick response, much appreciated.
 * Also, with debug on I am also getting notices when I go plugin settings page 
   in WooCommerce:
 * Notice: Undefined property: MP_WC_Variation_Details_On_Page_Product_Settings::
   $id in /wp-content/plugins/woocommerce/classes/class-wc-settings-api.php on line
   108
 * Notice: Undefined property: MP_WC_Variation_Details_On_Page_Product_Settings::
   $id in /wp-content/plugins/woocommerce/classes/class-wc-settings-api.php on line
   361
 * Notice: Undefined property: MP_WC_Variation_Details_On_Page_Product_Settings::
   $id in /wp-content/plugins/woocommerce/classes/class-wc-settings-api.php on line
   365
 * Notice: Undefined property: MP_WC_Variation_Details_On_Page_Product_Settings::
   $id in /wp-content/plugins/woocommerce/classes/class-wc-settings-api.php on line
   365
 * Just made a PayPal donation as well, thanks for the great work.
 *  Plugin Author [Marco Pereirinha](https://wordpress.org/support/users/pereirinha/)
 * (@pereirinha)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/php-notice-5/#post-3480710)
 * Hi Dave:
 * First of all, thank you for your donation. It gave me the necessary boost to 
   go on further development. In a near future there will be a new version where
   you can choose where to place product details instead present static location.
 * About these errors, i’m inclined to say that there might have been some recent
   changes on WooCommerce Settings API, as they don’t refer `id` property on that
   class. Note that there is no reference to it on [documentation](http://wcdocs.woothemes.com/apidocs/class-WC_Settings_API.html)
   and I can’t recall if I faced this issue when on development.
 * Once again, thank for pointed that out. A small update should be released soon
   to solve this.
 * Just hope that users don’t get mad on me for this recently almost daily updates.
   🙂

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/woocommerce-variation-details-on-
   page-product_717534.svg)
 * [WooCommerce Variation Details on Page Product](https://wordpress.org/plugins/woocommerce-variation-details-on-page-product/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-variation-details-on-page-product/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-variation-details-on-page-product/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-variation-details-on-page-product/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-variation-details-on-page-product/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-variation-details-on-page-product/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Marco Pereirinha](https://wordpress.org/support/users/pereirinha/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/php-notice-5/#post-3480710)
 * Status: resolved