Title: Saving Product Bug
Last modified: February 4, 2018

---

# Saving Product Bug

 *  Resolved [Chris – On the Grid Web Design LLC](https://wordpress.org/support/users/falcon13/)
 * (@falcon13)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/saving-product-bug/)
 * This is something you’ll see if debug mode is on. When saving a product without
   a custom field a warning notice appears about the invalid index “asp_product_custom_field”.
   The notice prevents the page from showing, even though everything worked with
   saving the changes.
 * Here’s the fix, change line 153 in the main file – accept-stripe-payments.php–
   to:
 *  if (!empty($_POST[‘asp_product_custom_field’]))
    update_post_meta($post_id, ‘
   asp_product_custom_field’, sanitize_text_field($_POST[‘asp_product_custom_field’]));
    -  This topic was modified 8 years, 3 months ago by [Chris - On the Grid Web Design LLC](https://wordpress.org/support/users/falcon13/).

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

 *  Plugin Contributor [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * (@alexanderfoxc)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/saving-product-bug/#post-9936904)
 * Hi [@falcon13](https://wordpress.org/support/users/falcon13/).
 * Yep, can confirm that notice is present. It haven’t blocked the page load for
   me though, but that’s probably because I made all warnings to be written to log
   file rather than displayed.
 * I’ve fixed this and next plugin version (which is coming shortly) will include
   this fix.
 * Thank you for reporting, Chris.
 *  Plugin Author [mra13](https://wordpress.org/support/users/mra13/)
 * (@mra13)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/saving-product-bug/#post-9937504)
 * The new version should fix this.

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

The topic ‘Saving Product Bug’ is closed to new replies.

 * ![](https://ps.w.org/stripe-payments/assets/icon-128x128.png?rev=2705524)
 * [Accept Stripe Payments](https://wordpress.org/plugins/stripe-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stripe-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stripe-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/stripe-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stripe-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stripe-payments/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [mra13](https://wordpress.org/support/users/mra13/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/saving-product-bug/#post-9937504)
 * Status: resolved