Revoking Application Password Promotes Fatal PHP error

I was not able to revoke an application password. After activating debug log, I got followiing Stack-Trace:
[29-Oct-2026 12:11:02 UTC] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, int given in /wp-content/plugins/mainwp-child/modules/changes-logs/classes/class-changes-handle-wp-user-profile.php:106
Stack trace:
#0 /kurse/wp-content/plugins/mainwp-child/modules/changes-logs/classes/class-changes-handle-wp-user-profile.php(106): count(1793275862)
#1 /kurse/wp-includes/class-wp-hook.php(353): MainWP\Child\Changes\Changes_Handle_WP_User_Profile::callback_change_application_password_added(‘38277’, 6, ‘last_login’, 1793275862)
#2 /kurse/wp-includes/class-wp-hook.php(377): WP_Hook->apply_filters(NULL, Array)
#3 /kurse/wp-includes/plugin.php(523): WP_Hook->do_action(Array)
#4 /kurse/wp-includes/meta.php(306): do_action(‘update_user_met…’, ‘38277’, 6, ‘last_login’, 1793275862)
#5 /kurse/wp-includes/user.php(1326): update_metadata(‘user’, 6, ‘last_login’, 1793275862, ‘’)
#6 /kurse/wp-content/plugins/wp-force-logout/includes/class-wp-force-logout-process.php(245): update_user_meta(6, ‘last_login’, 1793275862)
#7 /kurse/wp-includes/class-wp-hook.php(353): WP_Force_Logout_Process->update_last_login(‘’)
#8 /kurse/wp-includes/class-wp-hook.php(377): WP_Hook->apply_filters(NULL, Array)
#9 /kurse/wp-includes/plugin.php(523): WP_Hook->do_action(Array)
#10 /kurse/wp-settings.php(779): do_action(‘init’)
#11 /kurse/wp-config.php(89): require_once(‘/www/htdocs/w01…’)
#12 /kurse/wp-load.php(50): require_once(‘/www/htdocs/w01…’)
#13 /kurse/wp-blog-header.php(13): require_once(‘/www/htdocs/w01…’)
#14 /kurse/index.php(17): require(‘/www/htdocs/w01…’)
#15 {main}
thrown in /wp-content/plugins/mainwp-child/modules/changes-logs/classes/class-changes-handle-wp-user-profile.php on line 106

I’ve temporarily disabled mainwp-child as workaround, but I think it needs to be fixed (everything up to date WP 7.1.4).

Best Regards!
Stefan

Hey @Stim

Welcome to the MainWP community!

Thanks for sharing the stack trace. We confirmed a bug in MainWP Child’s activity logging. It incorrectly treats the last-login update from WP Force Logout as application-password data, causing the fatal error.

We’ll have this fixed in an upcoming release.

Hey @Stim

A fix for this issue was included in version 6.4.1 of the MainWP Child plugin.

Thanks again for reporting this to us.