Version 2.0.8 throws fatal error in PHP 8.1

[ad_1]

After updating the WPCode plugin to its latest version, it throws the following fatal error:
[21-Feb-2023 14:34:27 UTC] PHP Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, array given in /home/MYSITE/public_html/wp-content/plugins/insert-headers-and-footers/includes/class-wpcode-error.php:90

When I go down from PHP 8.1 to 7.3 it works ok (so for now I’ve done that though I would prefer to run on 8.1).

Any suggestions?

 

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