Title: Error message for required fields
Last modified: July 17, 2024

---

# Error message for required fields

 *  Resolved [soporteaeuroweb](https://wordpress.org/support/users/soporteaeuroweb/)
 * (@soporteaeuroweb)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-message-for-required-fields/)
 * I have configured a required name field, when the customer does not fill out 
   the field and clicks to buy, no error message appears.
 * How can I solve that?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-message-for-required-fields%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [AndreeaR](https://wordpress.org/support/users/andreearadacina21/)
 * (@andreearadacina21)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-message-for-required-fields/#post-17896087)
 * Hey [@soporteaeuroweb](https://wordpress.org/support/users/soporteaeuroweb/),
 * Thank you for using PPOM and for reaching out!
 * I tested this behavior on my website, but didn’t encounter the same issue – [https://vertis.d.pr/i/GpnpuH](https://vertis.d.pr/i/GpnpuH).
    - Ensure you are using the latest versions of PPOM Free and Pro. More details
      about updating to the latest version can be found [here](https://docs.themeisle.com/article/75-how-to-update-to-the-latest-version).
    - Make sure you have installed a recent version of PHP.
 * If the issue persists, please share screenshots with the configuration you made.
 *  Thread Starter [soporteaeuroweb](https://wordpress.org/support/users/soporteaeuroweb/)
 * (@soporteaeuroweb)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-message-for-required-fields/#post-17896433)
 * Hello
 * Yes, I am using the latest version. I have PHP version 8.0.30.
 * What configuration screenshots do you need?
 * Thank you
 *  Plugin Support [AndreeaR](https://wordpress.org/support/users/andreearadacina21/)
 * (@andreearadacina21)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-message-for-required-fields/#post-17898012)
 * Hey [@soporteaeuroweb](https://wordpress.org/support/users/soporteaeuroweb/),
 * First, please follow our troubleshooting guide to see if there is a plugin conflict
   affecting your products – [https://docs.themeisle.com/article/1112-theme-doesnt-work-as-expected-troubleshooting-guide](https://docs.themeisle.com/article/1112-theme-doesnt-work-as-expected-troubleshooting-guide).
 * If the issue persists, here is what I need to see:
    - A screenshot of the meta group
    - Screenshot of the field’s configuration, where I can see the error message
    - URL of the product where the issue is present
 *  Thread Starter [soporteaeuroweb](https://wordpress.org/support/users/soporteaeuroweb/)
 * (@soporteaeuroweb)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-message-for-required-fields/#post-17898539)
 * Hello
 * The plugin that gives critical error from time to time is yours. I deactivate
   it and the website works again.
 * Attached is a screenshot of the configuration with the required field marked.
   But when someone leaves that field empty and purchases, no notice appears.
 * > [View post on imgur.com](https://imgur.com/a/r2uof18)
 * It happens in all products.
 *  Thread Starter [soporteaeuroweb](https://wordpress.org/support/users/soporteaeuroweb/)
 * (@soporteaeuroweb)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-message-for-required-fields/#post-17900573)
 * Hello
 * This is the error we get
 * Detalles del error ================== Se ha producido un error del tipo E_ERROR
   en la línea 281 del archivo /home/gafasdesolpers43/public_html/wp-content/plugins/
   woocommerce-product-addon/inc/prices.php. Mensaje de error: Uncaught TypeError:
   stripcslashes(): Argument #1 ($string) must be of type string, array given in/
   home/gafasdesolpers43/public_html/wp-content/plugins/woocommerce-product-addon/
   inc/prices.php:281 Stack trace: #0 /home/gafasdesolpers43/public_html/wp-content/
   plugins/woocommerce-product-addon/inc/prices.php(281): stripcslashes(Array) #
   1 /home/gafasdesolpers43/public_html/wp-content/plugins/woocommerce-product-addon/
   inc/prices.php(27): ppom_get_field_prices(Array, 4342, 52, 4348, Array) #2 /home/
   gafasdesolpers43/public_html/wp-includes/class-wp-hook.php(326): ppom_price_controller(
   Array, Array) #3 /home/gafasdesolpers43/public_html/wp-includes/plugin.php(205):
   WP_Hook->apply_filters(Array, Array) #4 /home/gafasdesolpers43/public_html/wp-
   content/plugins/woocommerce/includes/class-wc-cart-session.php(207): apply_filters(‘
   woocommerce_get…’, Array, Array, ‘467518091c767eb…’) #5 /home/gafasdesolpers43/
   public_html/wp-includes/class-wp-hook.php(324): WC_Cart_Session->get_cart_from_session(”)#
   6 /home/gafasdesolpers43/public_html/wp-includes/class-wp-hook.php(348): WP_Hook-
   >apply_filters(NULL, Array) #7 /home/gafasdesolpers43/public_html/wp-includes/
   plugin.php(517): WP_Hook->do_action(Array) #8 /home/gafasdesolpers43/public_html/
   wp-settings.php(717): do_action(‘wp_loaded’) #9 /home/gafasdesolpers43/public_html/
   wp-config.php(80): require_once(‘/home/gafasdeso…’) #10 /home/gafasdesolpers43/
   public_html/wp-load.php(50): require_once(‘/home/gafasdeso…’) #11 /home/gafasdesolpers43/
   public_html/wp-admin/admin-ajax.php(22): require_once(‘/home/gafasdeso…’) #12{
   main} thrown
 *  Plugin Support [AndreeaR](https://wordpress.org/support/users/andreearadacina21/)
 * (@andreearadacina21)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-message-for-required-fields/#post-17902005)
 * Hi [@soporteaeuroweb](https://wordpress.org/support/users/soporteaeuroweb/),
 * Thank you for sharing the details!
 * I checked your website again and couldn’t encounter the same problem – [https://vertis.d.pr/i/TNQRsX](https://vertis.d.pr/i/TNQRsX).
 * Please let me know if the issue persists!
 *  Thread Starter [soporteaeuroweb](https://wordpress.org/support/users/soporteaeuroweb/)
 * (@soporteaeuroweb)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-message-for-required-fields/#post-17904499)
 * Hello
 * Yes, the problem persists.
 * Detalles del error ================== Se ha producido un error del tipo E_ERROR
   en la línea 281 del archivo /home/gafasdesolpers43/public_html/wp-content/plugins/
   woocommerce-product-addon/inc/prices.php. Mensaje de error: Uncaught TypeError:
   stripcslashes(): Argument #1 ($string) must be of type string, array given in/
   home/gafasdesolpers43/public_html/wp-content/plugins/woocommerce-product-addon/
   inc/prices.php:281 Stack trace: #0 /home/gafasdesolpers43/public_html/wp-content/
   plugins/woocommerce-product-addon/inc/prices.php(281): stripcslashes(Array) #
   1 /home/gafasdesolpers43/public_html/wp-content/plugins/woocommerce-product-addon/
   inc/prices.php(27): ppom_get_field_prices(Array, 4342, 52, 4348, Array) #2 /home/
   gafasdesolpers43/public_html/wp-includes/class-wp-hook.php(326): ppom_price_controller(
   Array, Array) #3 /home/gafasdesolpers43/public_html/wp-includes/plugin.php(205):
   WP_Hook->apply_filters(Array, Array) #4 /home/gafasdesolpers43/public_html/wp-
   content/plugins/woocommerce/includes/class-wc-cart-session.php(207): apply_filters(‘
   woocommerce_get…’, Array, Array, ‘467518091c767eb…’) #5 /home/gafasdesolpers43/
   public_html/wp-includes/class-wp-hook.php(324): WC_Cart_Session->get_cart_from_session(”)#
   6 /home/gafasdesolpers43/public_html/wp-includes/class-wp-hook.php(348): WP_Hook-
   >apply_filters(NULL, Array) #7 /home/gafasdesolpers43/public_html/wp-includes/
   plugin.php(517): WP_Hook->do_action(Array) #8 /home/gafasdesolpers43/public_html/
   wp-settings.php(722): do_action(‘wp_loaded’) #9 /home/gafasdesolpers43/public_html/
   wp-config.php(80): require_once(‘/home/gafasdeso…’) #10 /home/gafasdesolpers43/
   public_html/wp-load.php(50): require_once(‘/home/gafasdeso…’) #11 /home/gafasdesolpers43/
   public_html/wp-admin/admin-ajax.php(22): require_once(‘/home/gafasdeso…’) #12{
   main} thrown
 *  Plugin Support [AndreeaR](https://wordpress.org/support/users/andreearadacina21/)
 * (@andreearadacina21)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-message-for-required-fields/#post-17907510)
 * Hi [@soporteaeuroweb](https://wordpress.org/support/users/soporteaeuroweb/),
 * Thank you for sharing!
 * Unfortunately, the issue is not replicable on a fresh instance. As I previously
   shared, I can also see the error message on your website under certain circumstances–
   [https://vertis.d.pr/i/t703eQ](https://vertis.d.pr/i/t703eQ).
 * In this case, please make sure you clear the cache – [https://docs.themeisle.com/article/1526-how-to-clear-the-cache-in-wordpress](https://docs.themeisle.com/article/1526-how-to-clear-the-cache-in-wordpress),
   switch to a different theme, disable all plugins except for PPOM and WooCommerce
   and see if the issue persists.

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

The topic ‘Error message for required fields’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-product-addon/assets/icon-256x256.gif?rev=3186763)
 * [PPOM - Product Addons & Custom Fields for WooCommerce](https://wordpress.org/plugins/woocommerce-product-addon/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-product-addon/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-product-addon/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-product-addon/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-product-addon/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-product-addon/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [AndreeaR](https://wordpress.org/support/users/andreearadacina21/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/error-message-for-required-fields/#post-17907510)
 * Status: resolved