Fatal Error with PHP 8.x
-
In /extended-post-status/admin/class-extended-post-status-admin.php the value of $term_meta may be Boolean and not an Array. This causes the following critical error (site stops). This might have been a warning in prior PHP, but now it’s fatal.
The solution is to add
if(is_array($term_meta) && ...
before all of the checks for values in the array. It’s a simple change. I have not looked to see why that value is a Boolean in the first place.I just installed and started to test this great plugin but I’m afraid I need to uninstall. I can’t take a chance that there are more gotchas that haven’t been tested yet. But I will install in another test environment later and try to help with this.
Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, bool given in /wp-content/plugins/extended-post-status/admin/class-extended-post-status-admin.php:197
- The topic ‘Fatal Error with PHP 8.x’ is closed to new replies.