WordPress Toolkit fails to uninstall plugin when proc_open, proc_close are disabled in PHP config
It looks like WordPress Toolkit has several severe bugs.
You can't install WordPress on PHP 8.x with mail disabled via disabled_functions in PHP.
It also can't uninstall WordPress plugins when you have proc_open disabled via disabled_functions in PHP.
While uninstalling a plugin:
While installing WordPress:
WordPress plugins were removed with errors:
Installation "My Blog": Error: Cannot do 'launch': The PHP functions `proc_open()` and/or `proc_close()` are disabled. Please check your PHP ini directive `disable_functions` or suhosin settings.
While installing WordPress:
WordPress was installed with errors:
Fatal error: Uncaught Error: Call to undefined function PHPMailer\PHPMailer\mail() in /home/examplecpuser/de0602.example.com/wp-includes/PHPMailer/PHPMailer.php:874
Stack trace:
#0 /home/examplecpuser/de0602.example.com/wp-includes/PHPMailer/PHPMailer.php(1902): PHPMailer\PHPMailer\PHPMailer->mailPassthru()
#1 /home/examplecpuser/de0602.example.com/wp-includes/PHPMailer/PHPMailer.php(1642): PHPMailer\PHPMailer\PHPMailer->mailSend()
#2 /home/examplecpuser/de0602.example.com/wp-includes/PHPMailer/PHPMailer.php(1473): PHPMailer\PHPMailer\PHPMailer->postSend()
#3 /home/examplecpuser/de0602.example.com/wp-includes/pluggable.php(542): PHPMailer\PHPMailer\PHPMailer->send()
#4 /home/examplecpuser/de0602.example.com/wp-admin/includes/upgrade.php(619): wp_mail()
#5 /home/examplecpuser/de0602.example.com/wp-admin/includes/upgrade.php(117): wp_new_blog_notification()
#6 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/core-command/src/Core_Command.php(618): wp_install()
#7 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/core-command/src/Core_Command.php(401): Core_Command->do_install()
#8 [internal function]: Core_Command->install()
#9 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func()
#10 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}()
#11 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(491): call_user_func()
#12 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(399): WP_CLI\Dispatcher\Subcommand->invoke()
#13 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(422): WP_CLI\Runner->run_command()
#14 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1214): WP_CLI\Runner->run_command_and_exit()
#15 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner->start()
#16 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/bootstrap.php(77): WP_CLI\Bootstrap\LaunchRunner->process()
#17 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\bootstrap()
#18 /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...')
#19 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/wpt-wp-cli.php(31): require_once('/usr/local/cpan...')
#20 Command line code(1): require('/usr/local/cpan...')
#21 {main}
thrown in /home/examplecpuser/de0602.example.com/wp-includes/PHPMailer/PHPMailer.php on line 874
Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.
-
Thank you for the link. I found it before opening this thread. It doesn't help. Asking users to switch to PHP 7.4 to install WordPress, is not a workaround at all. Even after if you switch to PHP 7.4, WP toolkit fails to uninstall plugin when you have proc_open or proc_close in disabled_functions: Error: Cannot do 'launch': The PHP functions `proc_open()` and/or `proc_close()` are disabled. Please check your PHP ini directive `disable_functions` or suhosin settings.
WP Toolkit seems to be having this issue since April 2019. It is frustrating seeing this issue hasn't been fixed yet.This issue is described in the following article. Can you let me know if it helps?
0 -
@Dhrupodi - I've reached out to the WordPress Toolkit team to see if I can get some more details on this. I'll let you know what I find out. 0 -
@cPRex, thanks a lot. Please let me know when you have any updates. 0 -
Update - This is scheduled to be fixed in WordPress Toolkit 5.9.2 once that is released. 0 -
@cPRex Thanks a ton for the good news! It would be amazing and a great deal of help having these issues fixed! 0 -
@cPRex, I was hoping if you have any update regarding the mail() issue. WordPress Toolkit still cannot install WordPress on PHP 8.x when mail() is disabled via disabled_function. It is certainly doable as third party WP installers install WordPress without any issue. But due to this issue, WP Toolkit has become a common source of misunderstanding, and in some cases, cancellation from users. 0 -
@Dhrupodi - let me reach out to the team and I'll let you know what I find! 0 -
In case that wasn't clear, it will likely be tomorrow or Wednesday before I hear something from them about that specific detail. 0 -
Update - This is scheduled to be fixed in WordPress Toolkit 5.9.2 once that is released.
Thank goodness!0 -
The WordPress Toolkit team confirmed they have an internal case opened about the PHP mail function issue. Since it's with that specific Plesk team I don't have a way to share the link here, but it is something they are working on and plan to resolve. 0 -
@cPRex, thank you for the update. It is good to know that a case number was assigned. Would it be possible to share the case number, or would it be possible to guess when it might be complete? 0 -
I wish cPanel created its own WP installer as a cPanel plugin instead of porting it from Plesk. What Plesk has is a wrapper around wp-cli. 0 -
I mean, I can share the case number, but I'm not sure it's going to be of much help: EXTWPTOOLK-8757 If you've seen my other posts, I never provide ETAs of any type. It just sets up expectations that may never be met, so I don't have any type of guess as to when this will be resolved. 0 -
I wish cPanel created its own WP installer as a cPanel plugin instead of porting it from Plesk. What Plesk has is a wrapper around wp-cli.
+10 -
@cPRex the issue has not been solved yet. Would it be possible to follow up with the devs about the fix? 0 -
Let me check! 0 -
I spoke with the WordPress Toolkit team and while the issue isn't resolved, there is a workaround. You can disable the initial email from WordPress by adjusting/adding [QUOTE] sendWordPressInstalledNativeEmail = false
in config.ini. Let me know if that helps!0 -
@cPRex that helped. I tested it on a dev server, and it worked as intended. One other thing. Is there a way to disable automatic scanning by WP Toolkit? When you access WP Toolkit from cPanel and WHM, it automatically scans and imports al WP installs it finds, even the ones that are installed by other means. Is there a way to disable automatic scan and import? 0 -
@Dhrupodi - I'm not able to reproduce this behavior on a test machine, and according to the documentation that shouldn't be happening: "All WordPress installations added using the WP Toolkit or through the Applications page appear in WP Toolkit automatically; those installed manually need to be attached to WP Toolkit." This is from the 0 -
those installed manually need to be attached to WP Toolkit.
Thanks a lot for pointing it out. It's been a long time since I used the WP toolkit due to the issues mentioned in this thread. My remarks were based on my memory, and I clearly missed the changelog. I tested on an RND install and can confirm that WP Toolkit does not automatically import external installs.0 -
@cPRex, my bad. I was too early to comment. WP Toolkit automatically imported the WP install overnight. So, it is still very much an issue. 0 -
Can you create a ticket with us so we can investigate this behavior? 0
Please sign in to leave a comment.
Comments
23 comments