Title: Plugin should fail gracefully when &#8220;pdo&#8221; PHP module not installed
Last modified: March 26, 2025

---

# Plugin should fail gracefully when “pdo” PHP module not installed

 *  Resolved [Web Generation](https://wordpress.org/support/users/webgenerationnz/)
 * (@webgenerationnz)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/plugin-should-fail-gracefully-when-pdo-php-module-not-installed/)
 * When the pdo PHP module was not installed, the plugin was able to send a test
   email ok, but other emails didn’t send and the email log wouldn’t load. I was
   able to find what the problem was by looking in the PHP error log. Activating
   the missing module through the cPanel PHP config settings fixed the issue. The
   emails that failed to send while the issue was occurring weren’t present in the
   log once the issue was fixed.
 * This occurred with the latest version of the plugin (v2.2.90) on the latest version
   of WordPress.
 * Message from the error log:
   [26-Mar-2025 03:45:00 UTC] PHP Fatal error: Uncaught
   Error: Class “PDO” not found in /home/sitename/public_html/wp-content/plugins/
   fluent-smtp/app/Services/DB/wpfluent.php:17
 * Perhaps you can add some code that displays an error to the admin user when the
   module is not active?
 * You can check for the module with the code:
   if (!extension_loaded(‘pdo’)) {

Viewing 1 replies (of 1 total)

 *  Plugin Support [Ibrahim Sharif](https://wordpress.org/support/users/ibrahimsharif/)
 * (@ibrahimsharif)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/plugin-should-fail-gracefully-when-pdo-php-module-not-installed/#post-18428112)
 * Hello [@webgenerationnz](https://wordpress.org/support/users/webgenerationnz/),
 * We apologize for the inconvenience you experienced when it wasn’t enabled on 
   your server.
 * We’re glad you were able to resolve the issue by enabling the `pdo` extension
   through your cPanel.
 * Regarding the emails that failed to send before you enabled the extension, unfortunately,
   they weren’t logged because the database interaction was failing. This is expected
   behavior in this scenario.
 * We aim to include this improvement in an upcoming release of FluentSMTP. 
   Thanks
   again for your valuable feedback!

Viewing 1 replies (of 1 total)

The topic ‘Plugin should fail gracefully when “pdo” PHP module not installed’ is
closed to new replies.

 * ![](https://ps.w.org/fluent-smtp/assets/icon.svg?rev=2458343)
 * [FluentSMTP - WP SMTP Plugin with Amazon SES, SendGrid, MailGun, Postmark, Google and Any SMTP Provider](https://wordpress.org/plugins/fluent-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/fluent-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/fluent-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/fluent-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fluent-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fluent-smtp/reviews/)

## Tags

 * [email](https://wordpress.org/support/topic-tag/email/)
 * [PDO](https://wordpress.org/support/topic-tag/pdo/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ibrahim Sharif](https://wordpress.org/support/users/ibrahimsharif/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/plugin-should-fail-gracefully-when-pdo-php-module-not-installed/#post-18428112)
 * Status: resolved