Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Fatal error when using wp-cli

$
0
0

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?


Viewing all articles
Browse latest Browse all 59525

Trending Articles