Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #76149
    David
    Guest

    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

    #76296

    Hello 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!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘W3TC PHP Fatal error: Uncaught TypeError’ is closed to new replies.