FailedToExecuteWpCliCommand
-
WordPress 6.7.1
Woocommerce 9.4.3
DLM 1.7.1
Also, using Docket Cache pluginError log:Updates were not installed for the following items:
1. Website "mysite" (https://mysite): Failed to reset cache for the instance #3: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function IdeoLogix\DigitalLicenseManager\Abstracts\AbstractTool::__construct(), 0 passed in public_html/wp-content/plugins/digital-license-manager/includes/Integrations/WooCommerce/Controller.php on line 280 and exactly 1 expected in public_html/wp-content/plugins/digital-license-manager/includes/Abstracts/AbstractTool.php:58 Stack trace: #0 public_html/wp-content/plugins/digital-license-manager/includes/Integrations/WooCommerce/Controller.php(280): IdeoLogix\DigitalLicenseManager\Abstracts\AbstractTool->__construct() #1 public_html/wp-includes/class-wp-hook.php(324): IdeoLogix\DigitalLicenseManager\Integrations\WooCommerce\Controller->registerCommands() #2 public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #3 public_html/wp-content/plugins/digital-license-manager/includes/Controllers/Commands.php(49): apply_filters() #4 public_html/wp-content/plugins/digital-license-manager/includes/Boot.php(588): IdeoLogix\DigitalLicenseManager\Controllers\Commands->__construct() #5 public_html/wp-content/plugins/digital-license-manager/includes/Boot.php(565): IdeoLogix\DigitalLicenseManager\Boot->initControllers() #6 public_html/wp-includes/class-wp-hook.php(324): IdeoLogix\DigitalLicenseManager\Boot->onWpInit() #7 public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #8 public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #9 public_html/wp-settings.php(704): do_action() #10 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1395): require('...') #11 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1314): WP_CLI\Runner->load_wordpress() #12 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start() #13 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process() #14 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap() #15 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/boot-fs.php(17): require_once('/usr/local/cpan...') #16 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/wpt-wp-cli.php(31): require_once('/usr/local/cpan...') #17 Command line code(1): require('/usr/local/cpan...') #18 {main} thrown in public_html/wp-content/plugins/digital-license-manager/includes/Abstracts/AbstractTool.php on line 58 Fatal error: Uncaught ArgumentCountError: Too few arguments to function IdeoLogix\DigitalLicenseManager\Abstracts\AbstractTool::__construct(), 0 passed in public_html/wp-content/plugins/digital-license-manager/includes/Integrations/WooCommerce/Controller.php on line 280 and exactly 1 expected in public_html/wp-content/plugins/digital-license-manager/includes/Abstracts/AbstractTool.php:58 Stack trace: #0 public_html/wp-content/plugins/digital-license-manager/includes/Integrations/WooCommerce/Controller.php(280): IdeoLogix\DigitalLicenseManager\Abstracts\AbstractTool->__construct() #1 public_html/wp-includes/class-wp-hook.php(324): IdeoLogix\DigitalLicenseManager\Integrations\WooCommerce\Controller->registerCommands() #2 public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #3 public_html/wp-content/plugins/digital-license-manager/includes/Controllers/Commands.php(49): apply_filters() #4 public_html/wp-content/plugins/digital-license-manager/includes/Boot.php(588): IdeoLogix\DigitalLicenseManager\Controllers\Commands->__construct() #5 public_html/wp-content/plugins/digital-license-manager/includes/Boot.php(565): IdeoLogix\DigitalLicenseManager\Boot->initControllers() #6 public_html/wp-includes/class-wp-hook.php(324): IdeoLogix\DigitalLicenseManager\Boot->onWpInit() #7 public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #8 public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #9 public_html/wp-settings.php(704): do_action() #10 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1395): require('...') #11 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1314): WP_CLI\Runner->load_wordpress() #12 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start() #13 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process() #14 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap() #15 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/boot-fs.php(17): require_once('/usr/local/cpan...') #16 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/wpt-wp-cli.php(31): require_once('/usr/local/cpan...') #17 Command line code(1): require('/usr/local/cpan...') #18 {main} thrown in public_html/wp-content/plugins/digital-license-manager/includes/Abstracts/AbstractTool.php on line 58 Error: На сайте возникла критическая ошибка.Узнайте больше про решение проблем с WordPress. На сайте возникла критическая ошибка. [error]FailedToExecuteWpCliCommand: exit status 1[/error]""CHatGPT thoughts on that:
The error log indicates a critical issue with theDigital License Manager
WordPress plugin, specifically related to the way it instantiates a class from its codebase. Here’s a breakdown of what is happening and how to fix it:What is happening:
- Error Description:
- The
AbstractTool
class’s constructor (__construct
) is defined to expect exactly one argument, but it is being called without any arguments. - This mismatch occurs in the
Controller.php
file at line 280, where theAbstractTool
constructor is being invoked.
- The
- Key Details:
- File causing the issue:
public_html/wp-content/plugins/digital-license-manager/includes/Integrations/WooCommerce/Controller.php
- Specific line:
280
- The error originates from the
registerCommands
method, which tries to instantiateAbstractTool
incorrectly.
- File causing the issue:
- Stack Trace Overview:
- The issue propagates through various plugin files, leading to a fatal error. It breaks WordPress execution, causing the site or specific features (like updating) to fail.
How to Fix It:
1. Validate the
AbstractTool
Constructor:- Open the file:
public_html/wp-content/plugins/digital-license-manager/includes/Abstracts/AbstractTool.php
. - Check the
__construct
method on line 58 to identify the required parameter. For example:phpCopy codepublic function __construct($requiredArgument) { // Constructor code }
- This tells you what argument is expected.
2. Fix the Instantiation in
Controller.php
:- Open the file:
public_html/wp-content/plugins/digital-license-manager/includes/Integrations/WooCommerce/Controller.php
. - Navigate to line 280 where
AbstractTool
is instantiated. - Modify the instantiation to pass the required argument. For example:phpCopy code
$tool = new AbstractTool($requiredArgument);
- Replace
$requiredArgument
with the appropriate value or variable based on the plugin’s documentation or logic.
- Error Description:
- You must be logged in to reply to this topic.