• Resolved wolfcry0

    (@wolfcry0)


    Hello, I’m testing out the plugin on our development site, but am getting an error when adding a product to cart:

    2022/09/19 13:25:10 [error] 416852#416852: \*367 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: sizeof(): Argument #1 ($value) must be of type Countable|array, string given in /home/***/web/dev.(replaced).com/public_html/wp-content/plugins/woocommerce-product-addons/includes/fields/class-product-addon-field-select.php:13
    Stack trace:
    #0 /home/***/web/dev.(replaced).com/public_html/wp-content/plugins/woocommerce-product-addons/includes/class-product-addon-cart.php(272): Product_Addon_Field_Select->validate()
    #1 /home/***/web/dev.(replaced).com/public_html/wp-includes/class-wp-hook.php(307): Product_Addon_Cart->validate_add_cart_item()
    #2 /home/***/web/dev.(replaced).com/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters()
    #3 /home/***/web/dev.(replaced).com/public_html/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(822): apply_filters()
    #4 /home/***/web/dev.(replaced).com/public_html/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(796): WC_Form_Handler::add_to_cart_handler_simple()
    #5 /hom" while reading response header from upstream, client: 172.25.1.50, server: dev.(replaced).com, request: "POST /shop/demo/ HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.0-fpm-dev.(replaced).com.sock:", host: "dev.(replaced).com", referrer: "https://dev.(replaced).com/shop/demo/"
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Sanesh Acowebs

    (@saneshacodez)

    Hi, Can you confirm that you’re asking about our Deposit plugin. Because the error is from “Woocommerce product addons” plugin. Thanks!

    Plugin Contributor Sanesh Acowebs

    (@saneshacodez)

    As we haven’t heard back from you further, we assume this issue has been resolved at your end and consider this ticket closed. Please don’t hesitate to get back to us if you require any further assistance or clarifications from our end in the future. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Potential error caused by PHP 8.0’ is closed to new replies.