PHPMailer issue after upgrade to WP 5.5/5.6
-
Hi all,
I hope to get your kindly support because I’m facing a strange problem on one of my site; I tried several tips after many hours spent reading posts and suggestions wthout success.After upgrading to WP 5.5 (and of course to 5.6) I’m getting error every time I try to use the PHPMailer function. If I rollback to WP 5.4.4 everything work well.
This is the error:
AH01215: PHP Fatal error: Cannot declare class PHPMailer\\PHPMailer\\PHPMailer, because the name is already in use in /web/htdocs/www.trakracer.it/home/wp-includes/PHPMailer/PHPMailer.php on line 32
I tried also to use a SMTP Mail plugin but still happens. From email logs, the email seems sent without problems but instead I don’t get it.
The issue is related to Woocommerce (4.8 installed) too. The customers are not able to finalize the order because they get stuck on checkout page, even the order is placed to the backend. They are also not able to recover password or doing anything related to email functions; the same thing happens to website’s admins.
The installed theme is Porto; PHP is 7.3.22.
I’ve another store with exactly the same plugins, hosting and PHP version and it works well with WP 5.6.Here’s site health info:
### wp-core ### version: 5.4.4 site_language: it_IT user_language: it_IT timezone: Europe/Rome permalink: /%category%/%postname%/ https_status: true user_registration: 0 default_comment_status: closed multisite: false user_count: 389 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /web/htdocs/www.trakracer.it/home wordpress_size: 3,17 GB (3406815890 bytes) uploads_path: /web/htdocs/www.trakracer.it/home/wp-content/uploads uploads_size: 602,02 MB (631259506 bytes) themes_path: /web/htdocs/www.trakracer.it/home/wp-content/themes themes_size: 35,43 MB (37147683 bytes) plugins_path: /web/htdocs/www.trakracer.it/home/wp-content/plugins plugins_size: 114,15 MB (119696526 bytes) database_size: 30,25 MB (31716897 bytes) total_size: 3,94 GB (4226636502 bytes) ### wp-dropins (1) ### advanced-cache.php: true ### wp-active-theme ### name: Porto Child (porto-child) version: 1.1 author: P-THEMES author_website: https://www.portotheme.com/ parent_theme: Porto (porto) theme_features: post-thumbnails, title-tag, editor-style, automatic-feed-links, woocommerce, menus, post-formats, html5, wp-block-styles, responsive-embeds, align-wide, editor-styles, editor-color-palette, widgets theme_path: /web/htdocs/www.trakracer.it/home/wp-content/themes/porto-child ### wp-parent-theme ### name: Porto (porto) version: 6.0.5 author: P-THEMES author_website: https://www.portotheme.com/ theme_path: /web/htdocs/www.trakracer.it/home/wp-content/themes/porto ### wp-themes-inactive (1) ### Twenty Twenty-One: version: 1.1, author: the WordPress team ### wp-plugins-active (23) ### Custom Product Tabs for WooCommerce: version: 1.7.6, author: YIKES, Inc. GetResponse for WordPress: version: 5.5.11, author: GetResponse Google Tag Manager for WordPress: version: 1.11.6, author: Thomas Geiger Loco Translate: version: 2.5.0, author: Tim Whitlock Maintenance: version: 4.01, author: WebFactory Ltd Payment Gateway Based Fees and Discounts for WooCommerce: version: 2.6.2, author: Tyche Softwares Porto Theme - Functionality: version: 2.0.4, author: P-Themes Quiz Maker: version: 8.6.2, author: Quiz Maker team SecuPress Free — WordPress Security: version: 1.4.13, author: SecuPress The SEO Framework: version: 4.1.3, author: The SEO Framework Team WooCommerce: version: 4.8.0, author: Automattic (latest version: 5.0.0) WooCommerce Conversion Tracking: version: 2.0.8, author: weDevs WooCommerce Conversion Tracking Pro: version: 1.0.5, author: weDevs WooCommerce Fattureincloud Premium: version: 2.1.6, author: Woofatture WooCommerce Stripe Gateway: version: 4.7.0, author: WooCommerce (latest version: 4.8.0) WPBakery Page Builder: version: 6.5.0, author: Michael M - WPBakery.com (latest version: 6.6) WP Downgrade | Specific Core Version: version: 1.2.2, author: Reisetiger WP Rocket: version: 3.8.5, author: WP Media WP Rocket | Deactivate WooCommerce Refresh Cart Fragments Cache: author: WP Rocket Support Team, version: (undefined) WP Server Stats: version: 1.6.10, author: Saumya Majumder, Acnam Infotech WPS Hide Login: version: 1.8.3, author: WPServeur, NicolasKulka, wpformation YITH Composite Products for WooCommerce Premium: version: 1.1.27, author: YITH YITH WooCommerce Frequently Bought Together Premium: version: 1.8.7, author: YITH ### wp-plugins-inactive (2) ### Classic Editor: version: 1.6, author: WordPress Contributors WP Popups Lite: version: 2.1.3.1, author: timersys ### wp-media ### image_editor: WP_Image_Editor_Imagick imagick_module_version: 1690 imagemagick_version: ImageMagick 6.9.10-68 Q16 x86_64 2020-04-01 https://imagemagick.org imagick_limits: imagick::RESOURCETYPE_AREA: 251 GB imagick::RESOURCETYPE_DISK: 9.2233720368548E+18 imagick::RESOURCETYPE_FILE: 49152 imagick::RESOURCETYPE_MAP: 251 GB imagick::RESOURCETYPE_MEMORY: 125 GB imagick::RESOURCETYPE_THREAD: 32 gd_version: bundled (2.1.0 compatible) ghostscript_version: 9.25 ### wp-server ### server_architecture: Linux 3.10.0-862.14.4.el7.x86_64 x86_64 httpd_software: Apache php_version: 7.3.22 64bit php_sapi: cgi-fcgi max_input_variables: 10000 time_limit: 600 memory_limit: 512M max_input_time: 120 upload_max_size: 50M php_post_max_size: 50M curl_version: 7.72.0 OpenSSL/1.0.2k-fips suhosin: false imagick_availability: true htaccess_extra_rules: true ### wp-database ### extension: mysqli server_version: 5.7.32-35-log client_version: mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $ ### wp-constants ### WP_MAX_MEMORY_LIMIT: 512M WP_DEBUG: true WP_DEBUG_DISPLAY: false WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: true CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_LOCAL_DEV: undefined DB_CHARSET: utf8 DB_COLLATE: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable
Please help me!
Thanks in advanceThe page I need help with: [log in to see the link]
- The topic ‘PHPMailer issue after upgrade to WP 5.5/5.6’ is closed to new replies.