Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking Change with PHP 7.2/8 on Dreamhost? #2977

Closed
irthinker opened this issue Nov 15, 2023 Discussed in #2976 · 4 comments
Closed

Breaking Change with PHP 7.2/8 on Dreamhost? #2977

irthinker opened this issue Nov 15, 2023 Discussed in #2976 · 4 comments

Comments

@irthinker
Copy link

Discussed in #2976

Originally posted by irthinker November 14, 2023
I have had PHPMailer working beautifully on my site for many years. I upgraded to PHP 8.1 in the past 3-6 months and I honestly can't recall what version of PHP I was on. My existing PHP Mailer files are from 8/29/2023 and I think the mail functions were working. To be honest, they are only used to create accounts and reset passwords for the most part, so not as obvious a problem. I am sure they were working in February of this year, because usage was hot and heavy then.

Anyway, right now, my code (which, again, was working for years) breaks when I hit this line:

$mail = new PHPMailer;

I am not entirely sure how to debug that. Any help would be appreciated.

Is it a PHP upgrade thing? A Dreamhost change thing?

@XL-2000
Copy link

XL-2000 commented Nov 15, 2023

I think literally all relevant info is missing here....
Its like saying "My car was driving fine, I replaced the engine at some point, and haven't started it since. Now it seems the car is not starting at all. Could it be the ignition key?"
First I would highly recommend you implement (unit)testing on your site, since you can at least have some control of what is happening.
Next; use the debug options provided in the documentation of PHPMailer, and at least provide some logging.
Next; if your code breaks, it looks like its a PHP (configuration) thing, not a PHPMailer thing, but any kind of logging must be provided to say something more concrete on this...

@irthinker
Copy link
Author

irthinker commented Nov 15, 2023 via email

@XL-2000
Copy link

XL-2000 commented Nov 16, 2023

Please provide your implementation of PHPMailer code and corresponding logging (either PHPMailer logging output and/or PHP native logging output)

@Synchro
Copy link
Member

Synchro commented Nov 16, 2023

@XL-2000 this has been answered in #2976

@Synchro Synchro closed this as completed Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants