Jump to content

Stops to send e-mails


Recommended Posts

My WHMCS instalation stops to send any e-mail

server suport send me this error:

Error: Whoops\Exception\ErrorException: Class 'PhpImap\Mailbox' not found in /home/wingerne/public_html/vendor/whmcs/whmcs-foundation/lib/WhmcsMailbox.php:0 Stack trace: #0 /home/wingerne/public_html/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError(1, 'Class 'PhpImap\\...', '/home/wingerne/...', 0) #1 [internal function]: WHMCS\Utility\Error\Run->handleShutdown() #2 {main}

eny help in how to fix this?

thanks

Link to comment
Share on other sites

  • 2 weeks later...
  • 5 months later...

@Rukka, RadWebHosting is right, and here's how I'd go about it. That error means a class WHMCS expects in its vendor directory isn't there. The usual causes are an incomplete upgrade, or files removed or damaged after the fact.

 

1. Back up your WHMCS files and database first.

2. Note the exact WHMCS version you're running. It needs to be the same version, not newer or older.

3. Download the Full Release Files for that version from the WHMCS download site, or from your reseller if that's where you license it.

4. Upload the zip to your WHMCS root and extract it, overwriting the existing files. This puts back any missing vendor classes, including PhpImap\Mailbox.

5. Check that the owner and permissions on vendor/ match the rest of your install, so PHP can read it.

 

Then send a test email or open a ticket to confirm mail is flowing again.

 

If the error comes back soon after re-uploading, ask your host whether a security tool such as Imunify360, CageFS or an antivirus is quarantining or removing those files. If so, they'll need to whitelist your WHMCS directory.

 

Only once the vendor files are restored, and only if POP/IMAP ticket import still fails, would I look at the PHP IMAP extension. A missing extension gives a different error (Call to undefined function imap_errors()). It's a separate problem from this Class not found one.

 

Let us know how it goes.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated