Its really easy to reproduce, just run any WP CLI command.
Example:
[13:37][[email protected] public]# wp plugin install responsive-menu --activate
Installing Responsive Menu – Create Mobile-Friendly Menu (4.1.10)
Downloading installation package from https://downloads.www.ads-software.com/plugin/responsive-menu.4.1.10.zip...
Unpacking the package...
Installing the plugin...
Clearing PHP OPcache opcode cache failed.
Plugin installed successfully.
Activating 'responsive-menu'...
Plugin 'responsive-menu' activated.
Success: Installed 1 of 1 plugins.
[13:37][[email protected] public]# wp user list
PHP Fatal error: Uncaught Error: Call to undefined function wp_generate_password() in /home/nginx/domains/learn-wpo.com/public/wp-admin/includes/file.php:677
Stack trace:
#0 /home/nginx/domains/learn-wpo.com/public/wp-admin/includes/class-wp-filesystem-ftpext.php(138): wp_tempnam()
#1 /home/nginx/domains/learn-wpo.com/public/wp-content/plugins/responsive-menu/v4.0.0/inc/classes/class-theme-manager.php(436): WP_Filesystem_FTPext->get_contents()
#2 /home/nginx/domains/learn-wpo.com/public/wp-content/plugins/responsive-menu/v4.0.0/inc/classes/class-theme-manager.php(850): RMP\Features\Inc\Theme_Manager->get_themes_from_uploads()
#3 /home/nginx/domains/learn-wpo.com/public/wp-content/plugins/responsive-menu/responsive-menu.php(170): RMP\Features\Inc\Theme_Manager->get_menu_active_themes()
#4 /home/nginx/domains/learn-wpo.com/public/wp-content/plugins/responsive-menu/responsive-menu.php(185): rm_includes_menu_theme_template()
#5 /home/nginx/domains/learn-wpo.com/public/wp-settings.php(418): include_once('/home/nginx/dom...')
#6 ph in /home/nginx/domains/learn-wpo.com/public/wp-admin/includes/file.php on line 677
Fatal error: Uncaught Error: Call to undefined function wp_generate_password() in /home/nginx/domains/learn-wpo.com/public/wp-admin/includes/file.php:677
Stack trace:
#0 /home/nginx/domains/learn-wpo.com/public/wp-admin/includes/class-wp-filesystem-ftpext.php(138): wp_tempnam()
#1 /home/nginx/domains/learn-wpo.com/public/wp-content/plugins/responsive-menu/v4.0.0/inc/classes/class-theme-manager.php(436): WP_Filesystem_FTPext->get_contents()
#2 /home/nginx/domains/learn-wpo.com/public/wp-content/plugins/responsive-menu/v4.0.0/inc/classes/class-theme-manager.php(850): RMP\Features\Inc\Theme_Manager->get_themes_from_uploads()
#3 /home/nginx/domains/learn-wpo.com/public/wp-content/plugins/responsive-menu/responsive-menu.php(170): RMP\Features\Inc\Theme_Manager->get_menu_active_themes()
#4 /home/nginx/domains/learn-wpo.com/public/wp-content/plugins/responsive-menu/responsive-menu.php(185): rm_includes_menu_theme_template()
#5 /home/nginx/domains/learn-wpo.com/public/wp-settings.php(418): include_once('/home/nginx/dom...')
#6 ph in /home/nginx/domains/learn-wpo.com/public/wp-admin/includes/file.php on line 677
Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.
[13:37][[email protected] public]#