fatal error php 8.0 | WordPress.org

[ad_1]

Hello,

I have upgraded to php 8.0 since my hosting does not allow me to use 7.4 anymore and I have a issue that crashes the checkout (you can’t place order).

PHP Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /www/xxx/public/wp-content/plugins/wc-pickup-store/includes/admin/wps-admin.php:132

The good news is that if you upgrade to php 8.1, the error seems to solve by itself, but I am pretty sure there are more people who will need to upgrade soon and hope they will upgrade to a newer version OR this will get fixed in the meantime!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer