• Resolved soporteaeuroweb

    (@soporteaeuroweb)


    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 to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support AndreeaR

    (@andreearadacina21)

    Hey @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.

    • Ensure you are using the latest versions of PPOM Free and Pro. More details about updating to the latest version can be found here.
    • 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

    (@soporteaeuroweb)

    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

    (@andreearadacina21)

    Hey @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.

    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

    (@soporteaeuroweb)

    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.

    It happens in all products.

    Thread Starter soporteaeuroweb

    (@soporteaeuroweb)

    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

    (@andreearadacina21)

    Hi @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.

    Please let me know if the issue persists!

    Thread Starter soporteaeuroweb

    (@soporteaeuroweb)

    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

    (@andreearadacina21)

    Hi @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.

    In this case, please make sure you clear the cache – 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.