Title: Fatal error when installing thru the WP-CLI
Last modified: May 6, 2025

---

# Fatal error when installing thru the WP-CLI

 *  [mister pc](https://wordpress.org/support/users/m1st3rpc/)
 * (@m1st3rpc)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/fatal-error-when-installing-thru-the-wp-cli/)
 * Hi Jose,
 * Thanks again for these two great plugins, they should be automatically integrated
   inside Elementor core !
    I met fatal errors when I tried to install and activate
   them thru the WP-CLI interface :
 * 1. wp plugin install [https://downloads.wordpress.org/plugin/freesoul-deactivate-plugins.zip](https://downloads.wordpress.org/plugin/freesoul-deactivate-plugins.zip)
   works fine.
 * 2. wp plugin activate freesoul-deactivate-plugins leads to an error :
    Fatal 
   error: Uncaught Error: Call to undefined function eos_dp_get_option() in /home/
   user/www/domain.com/htdocs/wp-content/plugins/freesoul-deactivate-plugins/fdp-
   load.php:197 Stack trace: #0 /home/user/www/domain.com/htdocs/wp-content/plugins/
   freesoul-deactivate-plugins/plugin-activation.php(49): eos_dp_update_plugins_slugs_names()#
   1 /home/user/www/domain.com/htdocs/wp-content/plugins/freesoul-deactivate-plugins/
   fdp-load.php(114): require(‘/home/blan0851/…’) #2 /home/user/www/domain.com/htdocs/
   wp-includes/class-wp-hook.php(324): eos_dp_initialize_plugin() #3 /home/user/
   www/domain.com/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()#
   4 /home/user/www/domain.com/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()#
   5 /home/user/www/domain.com/htdocs/wp-admin/includes/plugin.php(703): do_action()#
   6 phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.
   php(382): activate_plugin() #7 [internal function]: Plugin_Command->activate()#
   8 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.
   php(100): call_user_func() #9 [internal function]: WP_CLI\Dispatcher\CommandFactory::
   WP_CLI\Dispatcher\{closure}() #10 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/
   php/WP_CLI/Dispatcher/Subcommand.php(497): call_user_func() #11 phar:///usr/local/
   bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(441): WP_CLI\Dispatcher\Subcommand-
   >invoke() #12 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.
   php(464): WP_CLI\Runner->run_command() #13 phar:///usr/local/bin/wp/vendor/wp-
   cli/wp-cli/php/WP_CLI/Runner.php(1296): WP_CLI\Runner->run_command_and_exit()#
   14 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.
   php(28): WP_CLI\Runner->start() #15 phar:///usr/local/bin/wp/vendor/wp-cli/wp-
   cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process() #16 phar:///
   usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap() #
   17 phar:///usr/local/bin/wp/php/boot-phar.php(20): include(‘phar:///usr/loc…’)#
   18 /usr/local/bin/wp(4): include(‘phar:///usr/loc…’) #19 {main}
 * 3. wp plugin install [https://downloads.wordpress.org/plugin/editor-cleanup-for-elementor.0.0.6.zip](https://downloads.wordpress.org/plugin/editor-cleanup-for-elementor.0.0.6.zip)
   works fine.
 * 4. wp plugin activate editor-cleanup-for-elementor also leads to a fatal error:
   
   Fatal error: Uncaught Error: Undefined constant “FDP_ECFE_PLUGIN_DIR” in /home/
   user/www/domain.com/htdocs/wp-content/plugins/editor-cleanup-for-elementor/editor-
   cleanup-for-elementor.php:57 Stack trace: #0 /home/user/www/domain.com/htdocs/
   wp-includes/class-wp-hook.php(324): eos_dp_ecfe_initialize_plugin() #1 /home/
   user/www/domain.com/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()#
   2 /home/user/www/domain.com/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()#
   3 /home/user/www/domain.com/htdocs/wp-admin/includes/plugin.php(703): do_action()#
   4 phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.
   php(382): activate_plugin() #5 [internal function]: Plugin_Command->activate()#
   6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.
   php(100): call_user_func() #7 [internal function]: WP_CLI\Dispatcher\CommandFactory::
   WP_CLI\Dispatcher\{closure}() #8 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/
   php/WP_CLI/Dispatcher/Subcommand.php(497): call_user_func() #9 phar:///usr/local/
   bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(441): WP_CLI\Dispatcher\Subcommand-
   >invoke() #10 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.
   php(464): WP_CLI\Runner->run_command() #11 phar:///usr/local/bin/wp/vendor/wp-
   cli/wp-cli/php/WP_CLI/Runner.php(1296): WP_CLI\Runner->run_command_and_exit()#
   12 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.
   php(28): WP_CLI\Runner->start() #13 phar:///usr/local/bin/wp/vendor/wp-cli/wp-
   cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process() #14 phar:///
   usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap() #
   15 phar:///usr/local/bin/wp/php/boot-phar.php(20): include(‘phar:///usr/loc…’)#
   16 /usr/local/bin/wp(4): include(‘phar:///usr/loc…’) #17 {main}
 * Curiously, I managed to activate them thru the WordPress dashboard (after these
   errors occurred). Maybe they just happen during plugin initializations.
 * Hope this helps to better enforce their code 😉
 * Arnaud BeLO.

The topic ‘Fatal error when installing thru the WP-CLI’ is closed to new replies.

 * ![](https://ps.w.org/editor-cleanup-for-elementor/assets/icon-256x256.png?rev
   =2847505)
 * [Editor Cleanup For Elementor: clean up and solve plugin conflicts with the Elementor editor](https://wordpress.org/plugins/editor-cleanup-for-elementor/)
 * [Support Threads](https://wordpress.org/support/plugin/editor-cleanup-for-elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/editor-cleanup-for-elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/editor-cleanup-for-elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/editor-cleanup-for-elementor/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [mister pc](https://wordpress.org/support/users/m1st3rpc/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/fatal-error-when-installing-thru-the-wp-cli/)
 * Status: not resolved