Hi @capuderg!
I have a more technical description for the error regarding this topic.
The error occurs after updating to WordPress 5.5, the error occurs on line 13 within the class-smtp.php file in the wp-includes directory.
require __DIR__ . '/PHPMailer/SMTP.php';
It appears that the PHPMailer\PHPMailer\SMTP class (a dependency within your project) is required twice on the site (once in the class-smtp.php file and once within your plugin). This gives a fatal error on php witch results in a sitecrash.
A temporary fix is to comment out line 13 within the class-smtp.php file within your wp-includes folder and temporary disable the plugin until a fix is released.
Below I have some logs to share:
Error log:
PHP Fatal error: Uncaught Error: Call to undefined function _deprecated_file() in /var/www/festivalcaravans.nl/html/wp-includes/class-smtp.php:6
Stack trace:
#0 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1197) : eval()'d code(84): require_once()
#1 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1197): eval()
#2 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1158): WP_CLI\Runner->load_wordpress()
#3 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner->start()
#4 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(74): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
#5 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\bootstrap()
#6 phar:///usr/local/bin/wp/php/boot-phar.php(11): include('phar:///usr/loc...')
#7 /usr/local/bin/wp(4): include('phar:///usr/loc...')
#8 {main}
thrown in /var/www/festivalcaravans.nl/html/wp-includes/class-smtp.php on line 6
NGINX log:
2020/09/02 15:28:24 [error] 32122#32122: *173790 FastCGI sent in stderr: "PHP message: PHP Fatal error: Cannot declare class PHPMailer\PHPMailer\SMTP, because the name is already in use in /var/www/festivalcaravans.nl/html/wp-includes/PHPMailer/SMTP.php on line 30" while reading response header from upstream, client: 37.74.20.177, server: festivalcaravans.nl, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm.sock:", host: "festivalcaravans.nl", referrer: "https://festivalcaravans.nl/"
Hope it helps! If you have any questions, feel free to contact me!
Greetings,
Wessel
-
This reply was modified 4 years, 7 months ago by
vrolyx.
-
This reply was modified 4 years, 7 months ago by
vrolyx.
-
This reply was modified 4 years, 7 months ago by
vrolyx.
-
This reply was modified 4 years, 7 months ago by
vrolyx.