README instructions lead to Fatal PHP Error: Cannot declare class WP_Directive_Context
Closed this issue ยท 3 comments
When using either installation method described in the README, I get this error and the environment setup fails:
Fatal error: Cannot declare class WP_Directive_Context, because the name is already in use in /var/www/html/wp-content/plugins/block-interactivity-experiments/src/directives/class-wp-directive-context.php on line 27
You're right. We need to migrate this project so it starts using the Interactivity API from Gutenberg. It's broken at the moment due to a conflict between the two Interactivity API versions (from Gutenberg and from the WP Directives plugin).
I've added a warning to the Readme to instruct people to use the Getting Started guide instead.
Would be great if this project could be updated to give noobs like me a chance to more comprehensively adopt the API (compared to the toggle button from the Getting Started intro). Thanks.
ATM every interested will receive the error message This plugin requires the WP Directives plugin to be installed and activated.
when trying to activate the WP Movies plugin.
And finally land here after trying to use block-interactivity-experiments, because of this Fatal error: Cannot declare class WP_Directive_Context, because the name is already in use in (...)/app/public/wp-content/plugins/block-interactivity-experiments/src/directives/class-wp-directive-context.php on line 27
.