Post by planetdrop » Thu Apr 09, 2015 5:13 pm

I also filed this at: https://github.com/opencart/opencart/issues/2887
Similar issue in the German forums: http://forum.opencart.com/viewtopic.php?f=37&p=554379

This occurs only with OpenCart 2.0.2.0. All previous versions work fine with identical settings.
Reproduced on two separate installation instances both with and without vQmod. Local development (darwin) and on a commercial web host.

This occurs when sending mail, such as order confirmation, forgotten password, etc when using smtp mail method.

"Mail" (phpmail) setting works fine. "SMTP" both with populated fields and unpopulated fields causes the same result below.

In my particular instance, I had used the following fields:
Mail Parameters: Blank
SMTP Hostname: ssl://smtp.gmail.com
port: 465
(I also tested other mail servers known to be working in previous versions including TLS on 587)

Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known in /Users/default/Sites/local.oc/2020v/system/library/mail.php on line 168Warning: fsockopen(): unable to connect to :465 (php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known) in /Users/default/Sites/local.oc/2020v/system/library/mail.php on line 168Notice: Error: php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known (0) in /Users/default/Sites/local.oc/2020v/system/library/mail.php on line 171

Line 168 ~ 171: (system/library/mail.php & vqcache/vq2-system_library_mail.php)

Code: Select all

            $handle = fsockopen($hostname, $this->smtp_port, $errno, $errstr, $this->smtp_timeout);

            if (!$handle) {
                trigger_error('Error: ' . $errstr . ' (' . $errno . ')');

Newbie

Posts

Joined
Thu Mar 29, 2012 6:45 pm

Post by rlasmar » Fri Apr 10, 2015 7:52 am

I have exactly the same error with smtp

I am trying to use smtp.madrillapp.com

On OC 2.0.1.1 works fine
On OC 2.0.2.0 don't work.


Edit:

Found the solution
https://github.com/opencart/opencart/is ... cation=ufi

Newbie

Posts

Joined
Mon Nov 26, 2012 10:15 pm

Post by Elune » Fri Apr 10, 2015 4:32 pm

Daniel posted a resolution here: https://github.com/opencart/opencart/issues/2887
the problem was smtp_hostname was changed from smtp_host and was missied in some areas.
do a mass replace and search.

Newbie

Posts

Joined
Thu Apr 09, 2015 6:30 pm

Post by kombi » Mon Apr 13, 2015 8:19 am

Wow!!!! Thanks for the the link.. Fixed my issue. I would not of thought about all the other pages...

New member

Posts

Joined
Thu Sep 06, 2012 5:03 am

Post by kombi » Mon Apr 13, 2015 8:39 am

Are you seeing a format issue with comments you attache to an order?

New member

Posts

Joined
Thu Sep 06, 2012 5:03 am

Post by wizardxz » Wed Jun 03, 2015 11:14 am

I had the same problem and i read everythink about this from 3 days ago and didn't help me. It is true that is just on the version 2.0.2 I solve the problem after i read this article. I run an replace with bluefish in all my files on the server and now work fine. First i replaced just in one file and after i saw that the mistake is in multiple files (28).

Replace this
$this->config->get('config_mail_smtp_host')

with this
$this->config->get('config_mail_smtp_hostname')

Cheers.

Newbie

Posts

Joined
Wed Jun 03, 2015 11:10 am
Who is online

Users browsing this forum: No registered users and 7 guests