This question already has answers here:
Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?
(4 answers)
You must enable the openssl extension to download files via https
(14 answers)
Closed 8 years ago.
I am getting this error when i am submitting form. Form should trigger a mail. I tried all the solutions in stackoverflow.
Using Plugin - events-manager-extended
These errors i am getting
Warning: fsockopen() [function.fsockopen]: unable to connect to
ssl://smtp.gmail.com:465 (Unable to find the socket transport "ssl" -
did you forget to enable it when you configured PHP?) in
site\webroot\wp-content\plugins\events-manager-extended\phpmailer\class-smtp.php
on line 122
Fatal error: Call to undefined method SMTP::getError() in
site\webroot\wp-includes\class-phpmailer.php on line 2119 PHP Warning:
fsockopen() [function.fsockopen]: unable to connect to
ssl://smtp.gmail.com:465 (Unable to find the socket transport "ssl" -
did you forget to enable it when you configured PHP?) in
site\webroot\wp-content\plugins\events-manager-extended\phpmailer\class-smtp.php
on line 122 PHP Fatal error: Call to undefined method SMTP::getError()
in site\webroot\wp-includes\class-phpmailer.php on line 2119
Related
This question already has answers here:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in file_get_contents
(1 answer)
file_get_contents(): SSL operation failed with code 1, Failed to enable crypto
(21 answers)
SSL routines:tls_process_server_certificate:certificate verify failed
(1 answer)
Closed 4 months ago.
This post was edited and submitted for review 4 months ago and failed to reopen the post:
Original close reason(s) were not resolved
I made XAMPP run locally with SSL and it was possible to access the site with HTTPS. However, when you try to use image-related functions, such as PHP's getimagesize(), it gives the error below:
Warning: getimagesize(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in C:\xampp\htdocs\gebrascam\controllers\ajaxController.php on line 560
Warning: getimagesize(): Failed to enable crypto in C:\xampp\htdocs\gebrascam\controllers\ajaxController.php on line 560
I generated a local certificate and pointed to it on the server when I created the SSL.
Searching about the error, I thought I should change the path where openssl.cafile was pointed, but I made the change and it didn't solve.
Would you have any idea how to solve it or even find a way forward?
On my Apache/2.4.37 server I use PHP 7.4.8 and 1.1.1c-15.el8 but when I use fsockopen on smtp.gmail.com(I tried both ports: 465 and 587) I get this error:
Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:ssl3_get_record:wrong version number in /var/www/public_html/mail.php on line 9
Warning: fsockopen(): Failed to enable crypto in /var/www/public_html/mail.php on line 9
Warning: fsockopen(): unable to connect to tls://smtp.gmail.com:587 (Unknown error) in /var/www/public_html/mail.php on line 9
I use cloudflare, but there the MX records are set.
How can i fix this issue?
Warning: fsockopen(): SSL operation failed with code 1.
OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in D:\vhosts\abc.com\httpdocs\system\library\mail.php on line 170
Warning: fsockopen(): Failed to enable crypto in D:\vhosts\abc.com\httpdocs\system\library\mail.php on line 170
Warning: fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Unknown error) in D:\vhosts\abc.com\httpdocs\system\library\mail.php on line 170
Notice: Error: (0) in D:\vhosts\abc.com\httpdocs\system\library\mail.php on line 179
My client's website is unable to send out email and above are the error messages when I use SMTP.
Below are the differences between test and live environments:
It works on testing environment but not on the live server. The testing environment was in linux and the live server is on Windows.
My client's email service provider is Google G Suite.
I tried the default PHP mail() and also SMTP.
Both are unable to send mail.
Any idea what is the root cause of these issues. How do I fix it? How to avoid this kind of scenarios?
Warning: stream_socket_client() [function.stream-socket-client]:
unable to connect to ssl://gateway.sandbox.push.apple.com:2195
(Unable to find the socket transport "ssl"
- did you forget to enable it when you configured PHP?)
in C:\xampp\htdocs\PhpProject9\simplepush.php on line 21
Failed to connect: 5 Unable to find the socket transport "ssl"
- did you forget to enable it when you configured PHP?
How it can solve?
i removed the semicolon from php.ini but error not changed.
I have been getting this error messages from my PHP code used to send message to the APNS...has anyone got faced the same issue?
Warning: stream_socket_client() [function.stream-socket-client]: SSL operation
failed with code 1. OpenSSL Error messages: error:14094410:SSL routines:
SSL3_READ_BYTES:sslv3 alert handshake failure in
/Library/WebServer/Documents/anish/apns/2.php on line 8
Warning: stream_socket_client() [function.stream-socket-client]: Failed to enable
crypto in /Library/WebServer/Documents/anish/apns/2.php on line 8
Warning: stream_socket_client() [function.stream-socket-client]: unable to connect
to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in /Library/WebServer
/Documents/anish/apns/2.php on line 8
Failed to connect: 0
Warning: fclose(): supplied argument is not a valid stream resource in
/Library/WebServer/Documents/anish/apns/2.php on line 20*
Also it seems it always fails to connect to gateway.sandbox.push.apple.com. I even tried with PushMeBaby and it too fails to connect to gateway.sandbox.push.apple.com
the problem apparently was with the installation of certificates. If the certificate are installed properly, then everything works great like a charm..!