Replies: 0
Hi,
With 2fas plugin installed a Fatal Error is thrown when using wp cli. The same error is thrown with every command.
Fatal error: Uncaught Error: Class 'TwoFAS\TwoFAS\Http\Action_Index' not found in /<path-to-wordpress-install>/wp-content/plugins/2fas/routes.php:17
Adding this in twofas.php solves the problem:
if (php_sapi_name() === 'cli') {
return;
}
Could this be fixed?