• Resolved maxellinger

    (@maxellinger)


    Hey Woo,

    When I try to add a single product block, it triggers a server error in WooCommerce:

    PHP Fatal error: Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, bool given in /nas/content/live/prcno/wp-content/plugins/woocommerce/includes/class-wc-brands.php:175

    Screenshot attached.

    Happy to help debug!

Viewing 1 replies (of 1 total)
  • Plugin Support Moses M. (woo-hc)

    (@mosesmedh)

    Hi @maxellinger,

    Thank you for sharing the screenshot and error notice. I attempted to replicate the issue on my end but couldn’t, which likely indicates a conflict specific to your setup.

    To help identify the root cause, please try disabling all plugins on your site except for WooCommerce, and switch your theme to the Storefront theme. Then, test again to see if the error persists.

    Additionally, could you clarify which page you’re trying to add the single product block to? From the screenshot, it seems there’s a list of products at the top. The single product block is designed to display one specific product for users to purchase directly. Could you explain what you’re trying to achieve by placing the block in that location?

    I look forward to your response.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.