Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    REstored backup from 25.7.1 on RC-25.11 resulted in Uncaught Error: Class "Net_SMTP" not found in /usr/local/share/pear/Mail/smtp.php:430

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    4 Posts 2 Posters 58 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      siemek
      last edited by

      Hello,

      Annoyed by an error in https://forum.netgate.com/topic/196437/check_upgrade-updating-repositories-metadata-returned-error-code-1/162.
      Then I made a backup, downloaded the pfSense CE installer 2.8.0, performed a clean install of RC 25.11, then restored the backup.

      As a result, I got a new error:

      PHP ERROR: Type: 1, File: /usr/local/share/pear/Mail/smtp.php, Line: 430, Message: Uncaught Error: Class "Net_SMTP" not found in /usr/local/share/pear/Mail/smtp.php:430
      Stack trace:
      #0 /usr/local/share/pear/Mail/smtp.php(332): Mail_smtp->getSMTPObject()
      #1 /usr/local/share/pear/Mail/smtp.php(319): Mail_smtp->send_or_fail('me@mydomain...', Array, 'Notifications i...')
      #2 /etc/inc/notices.inc(500): Mail_smtp->send('siemek@siemek.i...', Array, 'Notifications i...')
      #3 /etc/inc/notices.inc(428): send_smtp_message('Notifications i...', 'pfSense.mydomain....', true)
      #4 /etc/inc/notices.inc(314): notify_via_smtp('13:41:02 PHP ER...', true, 'Notifications i...')
      #5 /usr/local/bin/notify_monitor.php(33): notices_sendqueue()
      #6 {main}
      thrown @ 2025-11-26 13:57:43

      1 Reply Last reply Reply Quote 0
      • N Offline
        noexit
        last edited by noexit

        I'm getting the same error after a new install/restore of RC 25.11 to a larger SSD on my Netgate 2100. Also, when I try to test the SMTP settings under System/Advanced/Notifications, I'm returned the error on the screen "The web server encountered an error processing this request. Check the Crash Reporter for details. "

        Crash report details: "PHP Errors:
        [30-Nov-2025 13:46:23 America/New_York] PHP Fatal error: Uncaught Error: Class "Net_SMTP" not found in /usr/local/share/pear/Mail/smtp.php:430"

        For now I'm going to disable SMTP notifications.

        N 1 Reply Last reply Reply Quote 0
        • N Offline
          noexit @noexit
          last edited by noexit

          I ran these 4 commands in the Execute Shell Command window under Diagnostics / Command Prompt to resolve the problem for me:

          pear uninstall Net_Socket
          pear install Net_Socket
          pear uninstall Net_SMTP
          pear install Net_SMTP

          After each "unintall" the system confirmed that the items were not, in fact installed. After successfully installing both Net_Socket and Net_SMTP I then went to "Test SMTP settings" under System/Advanced/Notifications and successfully sent an email to myself using the email address configured on the Notifications page.

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            siemek @noexit
            last edited by

            @noexit Works! Thank you!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.