Title: Breaks WP-CLI
Last modified: June 24, 2020

---

# Breaks WP-CLI

 *  [Austin Ginder](https://wordpress.org/support/users/austinginder/)
 * (@austinginder)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/breaks-wp-cli/)
 * I have “mb YTPlayer PLUS for background videos” v3.4.8 installed and it’s not
   compatible with WordPress’ CLI (WP-CLI). Over SSH when I try basic commands link“
   wp option get home” it results in the following PHP fatal error.
 * PHP Fatal error: Uncaught Error: Call to a member function get_lic_domain() on
   null in /www/public/wp-content/plugins/wp-ytplayer-plus/inc/extra.php:22
    Stack
   trace: #0 /www/public/wp-includes/class-wp-hook.php(287): WP_CLI\Runner->{closure}()#
   1 /www/public/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters() #2/
   www/public/wp-includes/plugin.php(478): WP_Hook->do_action() #3 /www/public/wp-
   settings.php(540): do_action() #4 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/
   php/WP_CLI/Runner.php(1237): require(‘/www/pennmanor_…’) #5 phar:///usr/local/
   bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1158): WP_CLI\Runner->load_wordpress()#
   6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.
   php(23): WP_CLI\Runner->start() #7 phar:///usr/local/bin/wp/vendor/wp-cli/wp-
   cli/php/bootstrap.php(74): WP_CLI\Bootstrap\LaunchRunner->process() #8 phar:///
   usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\bootstrap() #
   9 p in /www/public/wp-content/plugins/wp-ytplayer-plus/inc/extra.php on line 
   22 Fatal error: Uncaught Error: Call to a member function get_lic_domain() on
   null in /www/public/wp-content/plugins/wp-ytplayer-plus/inc/extra.php:22 Stack
   trace: #0 /www/public/wp-includes/class-wp-hook.php(287): WP_CLI\Runner->{closure}()#
   1 /www/public/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters() #2/
   www/public/wp-includes/plugin.php(478): WP_Hook->do_action() #3 /www/public/wp-
   settings.php(540): do_action() #4 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/
   php/WP_CLI/Runner.php(1237): require(‘/www/pennmanor_…’) #5 phar:///usr/local/
   bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1158): WP_CLI\Runner->load_wordpress()#
   6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.
   php(23): WP_CLI\Runner->start() #7 phar:///usr/local/bin/wp/vendor/wp-cli/wp-
   cli/php/bootstrap.php(74): WP_CLI\Bootstrap\LaunchRunner->process() #8 phar:///
   usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\bootstrap() #
   9 p in /www/public/wp-content/plugins/wp-ytplayer-plus/inc/extra.php on line 
   22 Error: There has been a critical error on your website.Learn more about debugging
   in WordPress. There has been a critical error on your website.
 * I was able to work around this issues by changing file “wp-content/plugins/wp-
   ytplayer-plus/inc/extra.php” from:
 *     ```
       add_action("init", function(){
               global $ytp_xxx, $is_in_development, $ytp_core, $lic_domain;
       ```
   
 * to the following:
 *     ```
       add_action("init", function(){
               if ( defined( 'WP_CLI' ) && WP_CLI ) {
                       return;
               }
               global $ytp_xxx, $is_in_development, $ytp_core, $lic_domain;
       ```
   
 * Can you add this fix to your plugin? Being able to use WP-CLI is fairly critical
   for my site.

The topic ‘Breaks WP-CLI’ is closed to new replies.

 * ![](https://ps.w.org/wpmbytplayer/assets/icon.svg?rev=1544312)
 * [mb.YTPlayer for background videos](https://wordpress.org/plugins/wpmbytplayer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpmbytplayer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpmbytplayer/)
 * [Active Topics](https://wordpress.org/support/plugin/wpmbytplayer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpmbytplayer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpmbytplayer/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Austin Ginder](https://wordpress.org/support/users/austinginder/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/breaks-wp-cli/)
 * Status: not resolved