• Resolved rkl122

    (@rkl122)


    After using the recommended shortcode, I’m getting this message: “Warning: sizeof(): Parameter must be an array or an object that implements Countable in /xxxxxx/xxxxxx/public_html/wp-content/plugins/woocommerce-cross-sell-products-display/woocommerce-cross-sell-products-display.php on line 54”

    Using latest WP, WC, ElementorPro, and PHP 7.1. I am not a PHP coder. Any ideas about how to fix?

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author logicfire

    (@logicfire)

    Hi rkl122,
    I have made an update to the plugin.

    Thanks
    🙂

    Thread Starter rkl122

    (@rkl122)

    Hi LogicFire, Thank you for the quick fix and response! No more warning message. (I’ll look at your code to see how you did it, since I’m trying to learn PHP.)

    Additionally, the problem I was having with the title string – mentioned in a neighboring thread – is gone. Thank you. As regards the product_id issue mentioned in that thread, I’m still not using it in the shortcode invocation, but getting the output I want. Will continue to test, and may have a comment about this for that other thread.

    Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning on “sizeof() parameter”’ is closed to new replies.