WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Variation Details on Page Product
[resolved] PHP Notice (4 posts)

  1. davemac
    Member
    Posted 1 year ago #

    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/

  2. pereirinha
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. davemac
    Member
    Posted 1 year ago #

    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.

  4. pereirinha
    Member
    Plugin Author

    Posted 1 year ago #

    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 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. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.