Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2019
    Posts
    7
    Plugin Contributions
    0

    Default Email issues with contact us and orders, restore makes it work again temporarily

    Using 1.5.6a

    Having issues with email. First started a while ago, then did a restore and was working again. A week ago it started happening again, and a restore back a week or two will not fix it.

    Not receiving emails from contact us page, and cannot send order emails from Orders section.
    If I select PHP I get "ERROR: Failed sending email to: "my name" with subject: "Order Update #163" Could not instantiate mail function.
    If I select sendmail I get "ERROR: Failed sending email to: "my name" with subject: "Order Update #163" Could not execute: /usr/sbin/sendmail -t -i
    If I select SMTPauth (which has the proper fields filled out), it just hangs and I get a 500 internal server timeout white page.

    My questions are, why would a restore fix it, why did a restore not fix it again, and why would I need to restore at all? What's going on?!

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    8,629
    Plugin Contributions
    9

    Default Re: Email issues with contact us and orders, restore makes it work again temporarily

    It's best to give us all you've got on the logs using the # above to enclose the info. Makes helping a lot easier.

    You have a version that needs to be updated https://www.zen-cart.com/showthread....prior-to-v156c

    There are also a LOT of improvements in 1.5.7d.

    Meanwhile, head on over to https://docs.zen-cart.com/user/email..._not_received/ and see if thagt doesn't help.

  3. #3
    Join Date
    Jul 2019
    Posts
    7
    Plugin Contributions
    0

    Default Re: Email issues with contact us and orders, restore makes it work again temporarily

    What logs?

    I've read the email troubleshooting threads but it doesn't really help me much.

  4. #4
    Join Date
    Jul 2012
    Posts
    16,445
    Plugin Contributions
    17

    Default Re: Email issues with contact us and orders, restore makes it work again temporarily

    Quote Originally Posted by Styrak View Post
    What logs?

    I've read the email troubleshooting threads but it doesn't really help me much.
    In the root of your store, you should have a directory called logs. It is in the same directory that includes folders such as images, includes, YOUR_SECRET_ADMIN, email, etc.

    Once in the logs directory, tackle the most recent log(s) first. Understand though that if the logs filename includes "adm" then it will have your secret admin directory name in it. When/if posting contents from that file, be sure to obscure the admin folder name.

    If no files exist in this directory, there could be any of a couple of issues, from permissions not being correct, modifications to the error logging handler, too many cooks for you ftp program to see any items, etc... a default install has at least a few files in this directory, so if contents cannot be found be sure to explain what has been found and help should follow.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Jul 2019
    Posts
    7
    Plugin Contributions
    0

    Default Re: Email issues with contact us and orders, restore makes it work again temporarily

    What keywords am I looking for in these logs? "mail"? Or something else.

    Each one is only about 10kB and a few hundred lines.

  6. #6
    Join Date
    Jul 2019
    Posts
    7
    Plugin Contributions
    0

    Default Re: Email issues with contact us and orders, restore makes it work again temporarily

    I did find this when I switched it to PHP

    [06-Sep-2022 15:55:41 UTC] Request URI: /*********/orders.php?page=1&oID=163&action=update_order, IP address: *********
    #1 trigger_error() called at [/var/www/vhosts/*********.ca/httpdocs/includes/functions/functions_email.php:377]
    #2 zen_mail() called at [/var/www/vhosts/**********.ca/httpdocs/includes/functions/functions_osh_update.php:141]
    #3 zen_update_orders_history() called at [/var/www/vhosts/********.ca/httpdocs/**********/orders.php:158]
    --> PHP Notice: Email Error: Could not instantiate mail function.<br /> in /var/www/vhosts/*********.ca/httpdocs/includes/functions/functions_email.php on line 377.

  7. #7
    Join Date
    Jul 2012
    Posts
    16,445
    Plugin Contributions
    17

    Default Re: Email issues with contact us and orders, restore makes it work again temporarily

    Quote Originally Posted by Styrak View Post
    I did find this when I switched it to PHP

    [06-Sep-2022 15:55:41 UTC] Request URI: /*********/orders.php?page=1&oID=163&action=update_order, IP address: *********
    #1 trigger_error() called at [/var/www/vhosts/*********.ca/httpdocs/includes/functions/functions_email.php:377]
    #2 zen_mail() called at [/var/www/vhosts/**********.ca/httpdocs/includes/functions/functions_osh_update.php:141]
    #3 zen_update_orders_history() called at [/var/www/vhosts/********.ca/httpdocs/**********/orders.php:158]
    --> PHP Notice: Email Error: Could not instantiate mail function.<br /> in /var/www/vhosts/*********.ca/httpdocs/includes/functions/functions_email.php on line 377.
    What changes have been made to includes/functions/functions_osh_update.php to change the content of line 141 from whatever it is to what is found at: https://github.com/zencart/zencart/b...pdate.php#L141 ?

    The line referenced above is an assignment of a variable and does not appear to be something that is expected to invoke a call to the email process.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    Jul 2019
    Posts
    7
    Plugin Contributions
    0

    Default Re: Email issues with contact us and orders, restore makes it work again temporarily

    And now it's just suddenly working properly again. Frustrating but good at the same time.

 

 

Similar Threads

  1. me again :/ using a free template downloaded from here with issues
    By flappingfish in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 29 Nov 2020, 03:30 AM
  2. v154 order emails work, contact us email form not working...
    By twitchtoo in forum General Questions
    Replies: 0
    Last Post: 30 Mar 2015, 09:39 PM
  3. Notification Email Issues in German -Issues with Umlaute-
    By HEAT in forum Managing Customers and Orders
    Replies: 7
    Last Post: 5 Nov 2010, 02:06 PM
  4. Contact Us Page Email Issues
    By perkiekat in forum General Questions
    Replies: 4
    Last Post: 15 Sep 2009, 07:55 AM
  5. Contact Us email issues
    By rweeks in forum General Questions
    Replies: 5
    Last Post: 18 Jul 2008, 08:29 AM

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