PHP 8.0 fatal on post edit screen
-
Hello ??
There is a fatal error triggered on edit post screen with PHP8.0 :
PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, non-static method PNV::delete_post() cannot be called statically
I managed to fix it by replacing line 151 :public function delete_post( $post_id ) {
by :public static function delete_post( $post_id ) {
- The topic ‘PHP 8.0 fatal on post edit screen’ is closed to new replies.