Changing that line did not fix it. I am surprised that as WordPress plugin developers you have *no* experience with wp-cli?: https://wp-cli.org/
Do you use some other comparable command line tool?
Anyway, it doesn’t matter what command/operation I try, the same error output gets generated. Here is an example with the complete stack trace:
$ wp option get home
Fatal error: Uncaught Error: Call to a member function check_permission() on null in /home/cpaneluser/public_html/[domain.com]/wp-content/plugins/business-profile/includes/class-settings.php:538
Stack trace:
#0 /home/cpaneluser/public_html/[domain.com]/wp-includes/class-wp-hook.php(288): bpfwpSettings->load_settings_panel(”)
#1 /home/cpaneluser/public_html/[domain.com]/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
#2 /home/cpaneluser/public_html/[domain.com]/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#3 /home/cpaneluser/public_html/[domain.com]/wp-settings.php(523): do_action(‘init’)
#4 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1237): require(‘/home/cpaneluser…’)
#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/v in /home/cpaneluser/public_html/[domain.com]/wp-content/plugins/business-profile/includes/class-settings.php on line 538
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.