Fatal error when using wp-cli
-
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:17Adding this in
twofas.phpsolves the problem:if (php_sapi_name() === 'cli') { return; }Could this be fixed?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Fatal error when using wp-cli’ is closed to new replies.