May 6, 2025 Advisory: There was a known issue in WooCommerce core that can cause fatal errors on some sites using block themes. The issue was related to a malformed response from the Woo Block Patterns API, which may result in a bad cached value.
How can I tell if this affects me? If your store admin panel or store front-end are displaying Uncaught Error: strpos(): Argument #1 ($haystack) must be of type string, null given
, or you’re unable to access your store or admin area completely, you may be impacted by this issue.
How can I fix this?: This issue has been fixed in WooCommerce 9.8.4. Please update your site.
WordPress sites occasionally go down; this guide is meant to help you get started with troubleshooting. This is when your site can no longer load or respond properly to requests due to an error.
How do I know if my site is down?
↑ Back to topYou may be seeing any of the following:
- White screen displaying an error message (usually a critical or fatal error),
- White screen displaying no text at all (this is known as the “White Screen of Death” or WSOD).
How do I troubleshoot my site?
↑ Back to topFirst, identify the error. If an error is already showing directly on the page, copy/paste it to a safe place for troubleshooting later. Otherwise, there are a few ways to find out more information:
- Check the site admin email. WordPress may have sent a debug email when the fatal error occurred which contains the error details.
- Check PHP logs. These can be accessed through most hosting service’s control panel or via File Transfer Protocol (FTP). If you aren’t sure, check with your host for more information.
- Enable debug mode. WordPress has a debug mode which displays the error message instead of a blank page; see Debugging in WordPress for more information. Note that you’ll want to disable debug mode once you’ve solved the problem.
Next, search for solutions or seek help. Once you know what the error is, there are a variety of next steps to choose from:
- Starting with an online search may help you diagnose the issue, but be careful when following advice you find on the internet — especially if it advises technical fixes or database changes you don’t fully understand.
- If the error indicates a recently added or updated plugin/extension, you can try manually removing it. If you aren’t sure how, check with your host for help. If that brings your site back online, consider contacting the plugin’s developer about the error.
- If the issue appears to be related to WooCommerce core or one of our extensions, check the forums or contact support.
Once your site is back online, many problems are caused by conflicts which can help you narrow down the root issue. Once your site is fully backed up, consider reviewing our conflict testing guide.
More about common errors
↑ Back to topCheck out our Troubleshoot PHP errors article for more general information on errors pertaining to WooCommerce.
If you’d like to know more about the different PHP and other errors affecting WordPress, check out Common WordPress errors in WordPress.org’s Advanced Administration Handbook.