Fatal error: Cannot declare class WPConfigTransformer
-
Hi guys, thanks for your efforts. I want to give your plugin a try but the first thing i get is a fatal error, when using your plugin along with WP-CLI, and running some WP-CLI command like
$ wp plugin list
Fatal error: Cannot declare class WPConfigTransformer, because the name is already in use in /opt/wordpress/wp-content/plugins/disable-automatic-updates-and-theme-editors/library/wp-config-transformer/src/WPConfigTransformer.php on line 6
As you are loading a local copy of the WPConfigTransformer class in the global namespace, it probably conflicts with the WPConfigTransformer class of the WP-CLI. Maybe it would be better, to move your class to a specific namespace?
- The topic ‘Fatal error: Cannot declare class WPConfigTransformer’ is closed to new replies.