• Resolved Micha

    (@michaing)


    I just applied the update released a few minutes ago and since them face fatal errors on several actions, like viewing the user list or deleting comments:

    Jan 13 10:43:34 domain.com php[2558815]: 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" in /var/www/blog/wp-includes/class-wp-hook.php:308
    Jan 13 10:43:34 domain.com php[2558815]: Stack trace:
    Jan 13 10:43:34 domain.com php[2558815]: #0 /var/www/blog/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    Jan 13 10:43:34 domain.com php[2558815]: #1 /var/www/blog/wp-includes/plugin.php(517): WP_Hook->do_action()
    Jan 13 10:43:34 domain.com php[2558815]: #2 /var/www/blog/wp-includes/comment.php(1506): do_action()
    Jan 13 10:43:34 domain.com php[2558815]: #3 /var/www/blog/wp-admin/edit-comments.php(91): wp_delete_comment()
    Jan 13 10:43:34 domain.com php[2558815]: #4 {main}
    Jan 13 10:43:34 domain.com php[2558815]:   thrown in /var/www/blog/wp-includes/class-wp-hook.php on line 308
    Jan 13 10:44:20 domain.com php[2558813]: PHP Fatal error:  Uncaught Error: Call to undefined function WordfenceLS\ctype_digit() in /var/www/blog/wp-content/plugins/wordfence/modules/login-security/classes/controller/users.php:534
    Jan 13 10:44:20 domain.com php[2558813]: Stack trace:
    Jan 13 10:44:20 domain.com php[2558813]: #0 /var/www/blog/wp-includes/class-wp-hook.php(308): WordfenceLS\Controller_Users->_manage_users_custom_column()
    Jan 13 10:44:20 domain.com php[2558813]: #1 /var/www/blog/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    Jan 13 10:44:20 domain.com php[2558813]: #2 /var/www/blog/wp-admin/includes/class-wp-users-list-table.php(618): apply_filters()
    Jan 13 10:44:20 domain.com php[2558813]: #3 /var/www/blog/wp-admin/includes/class-wp-users-list-table.php(410): WP_Users_List_Table->single_row()
    Jan 13 10:44:20 domain.com php[2558813]: #4 /var/www/blog/wp-admin/includes/class-wp-list-table.php(1444): WP_Users_List_Table->display_rows()
    Jan 13 10:44:20 domain.com php[2558813]: #5 /var/www/blog/wp-admin/includes/class-wp-list-table.php(1371): WP_List_Table->display_rows_or_placeholder()
    Jan 13 10:44:20 domain.com php[2558813]: #6 /var/www/blog/wp-admin/users.php(655): WP_List_Table->display()
    Jan 13 10:44:20 domain.com php[2558813]: #7 {main}
    Jan 13 10:44:20 domain.com php[2558813]:   thrown in /var/www/blog/wp-content/plugins/wordfence/modules/login-security/classes/controller/users.php on line 534

    Bad is that even downgrading to v2.7.1 does not solve the issue (I assured all caches were cleared). Probably some database change is responsible?

    I use PHP v8.1.12 and MariaDB v10.6.11.

    • This topic was modified 1 year, 6 months ago by Micha.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Micha

    (@michaing)

    Ah sorry, not an issue of this plugin, but the update seems to have been just a trigger for some issue in combination with Wordfence and W3 Total Cache.

    Plugin Contributor Faisal Alvi

    (@faisal03)

    @michaing thank you for reaching out. At first glance, this error does not seem to be related to the most recent version v2.7.2 of Simple Local Avatars. However, I would love to help you as much as I can.

    I have checked with PHP 8 and I have not seen that error. I am still checking in other WordPress instances. Meanwhile, can you please check to see if the same error occurs in another site with v2.7.2?

    Plugin Contributor Faisal Alvi

    (@faisal03)

    Ah sorry, not an issue of this plugin, but the update seems to have been just a trigger for some issue in combination with Wordfence and W3 Total Cache.

    It’s fantastic that you figured it out!

    • This reply was modified 1 year, 6 months ago by Faisal Alvi.
    Thread Starter Micha

    (@michaing)

    For completeness: It was Wordfence requiring the PHP ctype module since v7.8.0. I updated Wordfence shortly after it’s release >1 month ago, so not sure why I faced the issue just today right after updating Simple Local Avatars, but I guess W3 Total Cache and/or the OPcache itself have something to do with it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘v2.7.2 thows TypeError with PHP 8.1’ is closed to new replies.