Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

WP Cli Failing Executing commands after activating plugin. #6

Open
Kudratullah opened this issue Sep 30, 2021 · 0 comments
Open

WP Cli Failing Executing commands after activating plugin. #6

Kudratullah opened this issue Sep 30, 2021 · 0 comments

Comments

@Kudratullah
Copy link

WP Cli fails with the error below as first argument of class_exists needs to be a string in src/App/Cli/Example.php#L38.

Error: Test Plugin 1.0.0 › Fatal ErrorPlugin initialize failed. Could not load class "TestPlugin\App\Cli\Example".

The "init" method is probably missing or try a `composer dumpautoload -o` to refresh the autoloader.

https://github.com/wp-strap/wordpress-plugin-boilerplate/blob/3f02a0e85eea155ad7fbece85a6abe52ec3a9629/src/App/Cli/Example.php#L31-L41

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant