WordPress error: “PHP Deprecated: File class-phpmailer.php is deprecate
-
Hi,
I am running a WordPress LEMP server with the following info:
Ubuntu Version:?20.04.6 LTS (Focal Fossa) (aarch64) for Raspberry Pi PHP Version: 7.4.3-4ubuntu2.19 Nginx Version: 1.25.1 Mainline MariaDb/Mysql Version: 15.1 Distrib 10.10.5-MariaDB, for debian-linux-gnu (aarch64) using readline 5.2 Wordpress Version: 6.2.2
I am using your Contact Form Manager plugin for WordPress. In my WordPress logs I am getting a single error that repeats EVERY MINUTE or so. In order to identify the plugin causing the error in the logs, I had to deactivate each plugin one-by-one, and see which ones caused the errors to stop appearing in my logs when running the command “
tail -f /var/log/wordpress/wordpress.php.error.log
“. The errors stopped appearing when Contact Form Manager was deactivated. So the errors are definitely coming from your plugin.Below are the WordPress Error Logs being caused by your Contact Form plugin:
[14-Jul-2023 16:54:34 UTC] PHP Deprecated: File class-phpmailer.php is <strong>deprecated</strong> since version 5.5.0! Use wp-includes/PHPMailer/PHPMailer.php instead. The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /var/www/mcmo.is/wp-includes/functions.php on line 5603 [14-Jul-2023 16:54:34 UTC] PHP Deprecated: File class-smtp.php is <strong>deprecated</strong> since version 5.5.0! Use wp-includes/PHPMailer/SMTP.php instead. The SMTP class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /var/www/mcmo.is/wp-includes/functions.php on line 5603 [14-Jul-2023 16:54:37 UTC] PHP Deprecated: File class-phpmailer.php is <strong>deprecated</strong> since version 5.5.0! Use wp-includes/PHPMailer/PHPMailer.php instead. The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /var/www/mcmo.is/wp-includes/functions.php on line 5603 [14-Jul-2023 16:54:37 UTC] PHP Deprecated: File class-smtp.php is <strong>deprecated</strong> since version 5.5.0! Use wp-includes/PHPMailer/SMTP.php instead. The SMTP class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /var/www/mcmo.is/wp-includes/functions.php on line 5603
Below is a list (that I obtained through WP CLI) of my WordPress Plugins (activate/deactive):
+-------------------------------------+----------+--------+------------+ | name | status | update | version | +-------------------------------------+----------+--------+------------+ | tenweb-speed-optimizer | inactive | none | 2.22.32 | | tinymce-advanced | active | none | 5.9.0 | | akismet | active | none | 5.2 | | cleantalk-spam-protect | inactive | none | 6.13 | | async-javascript | inactive | none | 2.21.08.31 | | autoptimize | inactive | none | 3.1.8.1 | | block-temporary-email | inactive | none | 1.6 | | classic-widgets | active | none | 0.3 | | complianz-gdpr-premium | inactive | none | 6.3.9.1 | | contact-form-manager | inactive | none | 1.5 | | webp-converter-for-media | active | none | 5.9.4 | | css-js-manager | inactive | none | 2.4.49.12 | | database-cleaner | inactive | none | 0.9.4 | | debloat | inactive | none | 1.2.1 | | duplicate-page | active | none | 4.5.2 | | emails-verification-for-woocommerce | active | none | 2.5.7 | | envato-market | active | none | 2.0.8 | | error-log-monitor | inactive | none | 1.7.7 | | full-screen-popup | inactive | none | 1.2.2 | | google-listings-and-ads | inactive | none | 2.4.11 | | hcode-addons | active | none | 2.6 | | health-check | active | none | 1.6.0 | | helper-lite-for-pagespeed | active | none | 3.1.6.2 | | hummingbird-performance | inactive | none | 3.5.0 | | better-wp-security | inactive | none | 8.1.6 | | jch-optimize | inactive | none | 4.0.0 | | jetpack | inactive | none | 12.3 | | jetpack-boost | inactive | none | 1.9.4 | | contact-forms-anti-spam | inactive | none | 0.8.1 | | mime-types-plus | active | none | 2.03 | | newsletter-manager | active | none | 1.5.1 | | nginx-helper | active | none | 2.2.3 | | nitropack | inactive | none | 1.8.0 | | one-user-avatar | active | none | 2.3.9 | | optimize-more | inactive | none | 1.1.1 | | woo-stripe-payment | active | none | 3.3.43 | | performance-lab | inactive | none | 2.4.0 | | powered-cache | inactive | none | 3.0.5 | | query-monitor | inactive | none | 3.13.0 | | seo-by-rank-math | inactive | none | 1.0.119 | | real-media-library-lite | active | none | 4.21.0 | | redis-cache | active | none | 2.4.3 | | simple-cloudflare-turnstile | active | none | 1.22.1 | | revslider | active | none | 6.6.14 | | slim-seo | inactive | none | 3.21.2 | | social-media-auto-publish | active | none | 3.1 | | speed-up-javascript-to-footer | inactive | none | 1.0.11 | | updraftplus | inactive | none | 1.23.7 | | w3-total-cache | inactive | none | 2.3.3 | | clearfy | inactive | none | 2.1.9 | | woocommerce | active | none | 7.8.2 | | woocommerce-paypal-payments | active | none | 2.1.0 | | woocommerce-services | active | none | 2.3.0 | | wordfence-login-security | inactive | none | 1.1.4 | | wp-optimize | inactive | none | 3.2.16 | | wp-serverinfo | active | none | 1.66 | | js_composer | active | none | 6.13.0 | | wp-fastest-cache | inactive | none | 1.1.7 | | wp-mail-smtp | active | none | 3.8.0 | | amazon-s3-and-cloudfront | active | none | 3.2.4 | | wordpress-seo | inactive | none | 20.11 | | zero-spam | inactive | none | 5.5.1 | | wp-fail2ban-redux | must-use | none | 0.8.2 | | advanced-cache.php | dropin | none | | | db.php | dropin | none | | +-------------------------------------+----------+--------+------------+
Could you please tell me how to debug and fix this NOW, so I don’t have to wait for an update. Then could you also include a fix in an updated version of your plugin?
Thank you so much for helping me out with this!
The page I need help with: [log in to see the link]
- The topic ‘WordPress error: “PHP Deprecated: File class-phpmailer.php is deprecate’ is closed to new replies.