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

getting error with my php version and php mailer #2861

Closed
2 of 6 tasks
jamieduk opened this issue Jan 19, 2023 · 12 comments
Closed
2 of 6 tasks

getting error with my php version and php mailer #2861

jamieduk opened this issue Jan 19, 2023 · 12 comments

Comments

@jamieduk
Copy link

jamieduk commented Jan 19, 2023

Please check these things before submitting your issue:

php mailer v6.7.1

php version PHP 8.2.1

on linux mint
Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' 7.2 comes up instead of 8.x

how do i fix? this is a bug as was fine other day ???

  • Read the error message you're seeing - it often tells you what is wrong, and may contain useful links & instructions
  • Make sure you're using the latest version of PHPMailer
  • Check that your problem is not dealt with in the troubleshooting guide, especially if you're having problems connecting to Gmail or GoDaddy
  • Include sufficient code to reproduce your problem
  • If you're having an SMTP issue, include the debug output generated with SMTPDebug = 2 set
  • If you have a question about how to use PHPMailer (rather than reporting a bug in it), tag a question on Stack Overflow with phpmailer, but search first!

Problem description

Code to reproduce

Debug output

It turns out i owed £1 and they didnt even email me about it they just shut it down but i learned some things today about debug and how to find if credentails are being rejected etc!

im glad to report ths is resolved and php mailer was not to blaim!

@Synchro
Copy link
Member

Synchro commented Jan 19, 2023

This is the error message, which means exactly what it says:

Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' 7.2 comes up instead of 8.x

PHPMailer does not require a PHP version >= 7.4, so this is not being caused by PHPMailer. You need to check your other dependencies.

This is outside PHPMailer's scope, but it's entirely possible you have multiple versions of PHP installed. If you run php -v, make sure it shows you the right version. if it doesn't, uninstall the old versions and ensure that 8.2 is selected as your current version (look into update-alternatives if you're on a Debian derivative).

@Synchro Synchro closed this as completed Jan 19, 2023
@jamieduk
Copy link
Author

it was fine other day how do i fixit iv tfried all kinds and dno what else to try.

@Synchro
Copy link
Member

Synchro commented Jan 19, 2023

The config on your server has nothing to do with me or PHPMailer, and PHPMailer didn't change your server's config. I've already told you how to fix it: check the versions of PHP you have installed, and make sure you only have the ones you want.

@jamieduk
Copy link
Author

nothirng else is broke just this crap it is you an your software! a real dev makes sure hes stuff works on any vewrsion on php ffs! fixit! and dont fkin brake it again!

@Synchro
Copy link
Member

Synchro commented Jan 19, 2023

PHPMailer works with any version of PHP between 5.5 and 8.3. It has nothing to do with the problem you created.

@decomplexity
Copy link
Contributor

@Synchro doesn’t need my help to counter this sort of mindless and illiterate vitriol. But @jamieduk should take note that the fault is his and not @Synchro’s or PHPMailer’s, and that he should perhaps learn a bit about version (and anger…) management before exploding with such vicious invective.

@jamieduk
Copy link
Author

it was fine the other day now its not i havnt chamnged a thing, im using php 8 so thats higher than 7.4 and it still fails i need php mailer to work with all php versions above 7 including 8 and 8.1 and 8.2 how hard is that its clearly php mailer issue as they have a file that checks all this and it installed without error therefore a run time error is abnormal! it needs updating to work with php 8 onwards aswel as 7.4!

@Synchro
Copy link
Member

Synchro commented Jan 19, 2023

Seriously, read what we are saying. PHPMailer is tested against every PHP version from 5.5 to 8.3. You can see it happening here, and also the version constraint in composer here. This is not a runtime error, it's an installation problem with your app, and though I'm repeating myself, has absolutely nothing to do with PHPMailer.

@jamieduk
Copy link
Author

iv reinstalled composer and php mailer and still get same error!

@jamieduk
Copy link
Author

could be an issue with composer as others are getting the same errors
linuxserver/Heimdall#1098

@Synchro
Copy link
Member

Synchro commented Jan 19, 2023

No, it's not an issue with composer, it's an issue with the installed PHP version. Composer is behaving according to what it's being told by your app. Somewhere in your dependencies, something wants at least PHP 7.4. It's not PHPMailer. Install a later version of PHP and your problem will go away.

@jamieduk
Copy link
Author

jamieduk commented Jan 19, 2023

It turns out i owed £1 and they didnt even email me about it they just shut it down but i learned some things today about debug and how to find if credentails are being rejected etc!

Sorry about this! you have to agree the error message was nothing todo with creds being rejected or billing at all so put this as number 1 thing to check! change message to credentail error or something please!

This debug code is helpful

$error=$mail->SMTPDebug = SMTP::DEBUG_SERVER;

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