PHP 8.1 compatibility issues
-
I got a fatal error from TablePress when updating my server PHP to 8.0 or 8.1. Disabling TablePress resolved the issue. Seems to have something to do with the shortcode hook callback:
Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, non-static method inDivTablePress::indivtablepress_shortcode_atts() cannot be called statically in ../wp-includes/class-wp-hook.php:307
Since we use many TablePress tables on our website, I’ve had to revert it back to PHP 7.4. As I’m sure you know, PHP 7.4 will stop receiving security updates on 28 November 2022, at which point it will be unsuitable for use on a live site.
- The topic ‘PHP 8.1 compatibility issues’ is closed to new replies.