Tagged: Fatal Error
- AuthorPosts
- January 16, 2023 at 9:36 am #76149DavidGuest
I’ve recently updated W3TC plugin to 2.2.11 but am getting repeated errors in my Apache log when editing/submitting responses to comments:
[Sat Jan 14 17:00:20.764583 2023] [proxy_fcgi:error] [pid 226667] [client *.*.*.*:50678] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class W3TC\\Util_AttachToActions does not have a method “on_comment_status” [snip … lots of additional stuff about the stack trace]
I’ve cleared the cache, restarted Apache etc. I started noticing this error with W3TC 2.2.10 in the last week.
Wordpress and PHP 8.2 fully patched and up-to-date.
Thank you
January 16, 2023 at 9:37 am #76296Marko VasiljevicKeymasterHello David,
I am sorry about the issue you are experiencing and I am happy to help!
We are aware of this and this will be fixed in the next W3 Total Cache release.
As a temporary fix please comment out line 33 of Util_AttachToActions.php//add_action( ‘wp_set_comment_status’, array( $o, ‘on_comment_status’ ), 0, 2 );
Let me know if this helps!
Thanks!
- AuthorPosts
- The topic ‘W3TC PHP Fatal error: Uncaught TypeError’ is closed to new replies.