Plugin hangs on first config without php-curl
-
Installing the plugin when php-curl is not installed will cause the plugin to hang on first load from configuration page. The problem is in s3.php.
Installing the plugin without php-curl installed, and going to configure it causes the page to hang. The error log shows that an undefined constant in s3.php is the issue.
PHP Fatal error: Uncaught Error: Undefined constant "BMI\\Plugin\\External\\CURL_SSLVERSION_TLSv1" in /var/www/html/wordpress/wp-content/plugins/backup-backup/includes/external/s3.php:43\nStack trace:\n#0 /var/www/html/wordpress/wp-content/plugins/backup-backup/includes/external/s3.php(524):The system is a Ubuntu 22.04 and running the latest WordPress 6.9 – but it also happens on 5.3
The standard php doesn’t define this constant. The minimum version really should be v1.2. Replacing this define with a constant (6) allows it to load because the defines are missing.
/* public $useSSLVersion = CURL_SSLVERSION_TLSv1; */
public $useSSLVersion = 6; /* CURL_SSLVERSION_TLSv1_2 */Installing php-curl provides the constants.
Is there a way for the plugin install to check if php-curl is installed?
The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.