I configured the site and it worked fine on version PHP 5.5
Mail was sent and recaptcha worked.
Send email via SMTP instead of local mail
SMTP server port 465
Send SMTP username and password
Then I changed the server version to PHP 5.6 and everything broke.
Recaptcha does not work:
PHP Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:nerror:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in .../qa-plugin/recaptcha-captcha/recaptchalib.php on line 128
PHP Warning: file_get_contents(): Failed to enable crypto in .../qa-plugin/recaptcha-captcha/recaptchalib.php on line 128
PHP Warning: file_get_contents(https://www.google.com/recaptcha/api/siteverify?secret=...&response=...
And the mail does not send:
PHP Question2Answer email send error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Then I changed the server version back to PHP 5.5 and everything started working again.
For other sites I need to upgrade the server version to 7, I think everything will break again.
How to solve a problem?
|