Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2004
    Location
    Finland
    Posts
    488
    Plugin Contributions
    3

    Default [Done 1.3.8a] Could Not Connect to SMTP Host - 1.3.8 -includes/classes/class.smtp.php

    There's a small coding typo (but still a show stopper) in includes/classes/class.smtp.php

    After messing around with error reporting, I got this error:
    Fatal error: Unsupported operand types in /home/pasi/public_html/koodaus/zencart/shop/includes/classes/class.smtp.php on line 118

    The file reads the following in line 118:

    //Added for Gmail support CER

    if($this-Protocol != '') $host = $this->Protocol . "://" . $host;
    As you can see... the $this-Protocol part misses a > ... adding it made it work
    Last edited by pasi; 10 Dec 2007 at 11:43 AM.
    Working with Zen Cart since 2003 :: www.prr.fi
    Author of the original Finnish language pack for Zen Cart since 2004

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: includes/classes/class.smtp.php typo


    Yes, that would be a bug ...

    Thanks for the details.

    To clarify, the fix is this:
    /includes/classes/class.smtp.php on line 118
    Add the > as shown:
    Code:
    //Added for Gmail support CER
    
    if($this->Protocol != '') $host = $this->Protocol . "://" . $host;




    NOTE: This issue is fixed in v1.3.8a ... announced here: http://www.zen-cart.com/forum/showth...780#post473780




    .
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Apr 2007
    Location
    Spudville
    Posts
    62
    Plugin Contributions
    0

    Default Re: Could Not Connect to SMTP Host - v1.3.8 - includes/classes/class.smtp.php typo

    Umm... didn't help for me.
    Switched to PHP instead of SMTP in email settings and the problem appears solved. Emails send faster too.

    www.PrairieRoses.com
    A Country Sensibility

 

 

Similar Threads

  1. v151 SMTP Error: Could not connect to SMTP host
    By g2ktcf in forum Basic Configuration
    Replies: 4
    Last Post: 20 Jan 2015, 01:41 AM
  2. v151 SMTP Error: Could not connect to SMTP host
    By gold in forum Basic Configuration
    Replies: 3
    Last Post: 13 Jan 2015, 10:37 PM
  3. v151 SMTP Error: Could not connect to SMTP host.
    By brandi_jo in forum General Questions
    Replies: 16
    Last Post: 22 Feb 2014, 05:50 AM
  4. Replies: 2
    Last Post: 20 Jul 2010, 04:40 PM
  5. SMTP Error: Could not connect to SMTP host
    By Dihen in forum General Questions
    Replies: 1
    Last Post: 30 Jun 2008, 07:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR