Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2014
    Posts
    216
    Plugin Contributions
    0

    Default send email to customers not working

    So if I go to admin, tools send email I get an error on the page
    WARNING: An Error occurred, please refresh the page and try again.
    in my log is
    Code:
    [03-Nov-2018 03:44:03 UTC] Request URI: /my admin folder/mail.php, IP address: 76.177.248.108
    #1  trigger_error() called at [/home/cubmanky1/public_html/visionsinvinyldesigns.com/includes/classes/db/mysql/query_factory.php:171]
    #2  queryFactory->show_error() called at [/home/cubmanky1/public_html/visionsinvinyldesigns.com/includes/classes/db/mysql/query_factory.php:143]
    #3  queryFactory->set_error() called at [/home/cubmanky1/public_html/visionsinvinyldesigns.com/includes/classes/db/mysql/query_factory.php:270]
    #4  queryFactory->Execute() called at [/home/cubmanky1/public_html/visionsinvinyldesigns.com/includes/functions/audience.php:41]
    #5  get_audiences_list() called at [/home/cubmanky1/public_html/visionsinvinyldesigns.com/bgejsksxxekva2gt/mail.php:310]
    
    [03-Nov-2018 03:44:03 UTC] PHP Fatal error:  1146:Table 'i1031916_zc5.zc_TABLE_CUSTOMERS' doesn't exist :: select max(o.date_purchased) as date_purchased, c.customers_email_address, c.customers_lastname, c.customers_firstname from zc_TABLE_CUSTOMERS c, zc_orders o WHERE c.customers_id = o.customers_id AND c.customers_newsletter = 1 GROUP BY c.customers_email_address, c.customers_lastname, c.customers_firstname HAVING max(o.date_purchased) <= subdate(now(),INTERVAL 3 MONTH) ORDER BY c.customers_lastname, c.customers_firstname ASC  ==> (as called by) /home/cubmanky1/public_html/visionsinvinyldesigns.com/includes/functions/audience.php on line 41 <== in /home/cubmanky1/public_html/visionsinvinyldesigns.com/includes/classes/db/mysql/query_factory.php on line 171
    I dont have zc_TABLE_CUSTOMERS' doesn't exist but do have zc_customers

  2. #2
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default Re: send email to customers not working

    Literally that error is saying your SQL database table 'Customers' is missing or not found the way the code is looking for it.

    Which points at a few database tables or Zen Cart files to look into:

    The table is actually missing.

    or

    There's a corrupt customer record - special characters or file formatting that is not permitted in an email address that wasn't cleaned before being stored in the database.

    or

    It could be that /includes/functions/audience.php has a syntax error in it around the location of TABLE_CUSTOMERS .

    or


    You may have an email plugin installed or plugin with email abilities that is misbehaving.

    or

    Your query_builder table has errors in it - Looking in the database the SQL lookup can be found that is listed in your error:

    Dormant Customers (>3months) (Subscribers)

    Subscribers who HAVE purchased something, but have NOT purchased for at least three months.

    select max(o.date_purchased) as date_purchased, c.customers_email_address, c.customers_lastname, c.customers_firstname from TABLE_CUSTOMERS c, TABLE_ORDERS o WHERE c.customers_id = o.customers_id AND c.customers_newsletter = 1 GROUP BY c.customers_email_address, c.customers_lastname, c.customers_firstname HAVING max(o.date_purchased) <= subdate(now(),INTERVAL 3 MONTH) ORDER BY c.customers_lastname, c.customers_firstname ASC


    Be sure all of your zen files are uploaded.

    Let me know what you find!
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base8 - Obsidian - This, is what's new.

  3. #3
    Join Date
    Jan 2014
    Posts
    216
    Plugin Contributions
    0

    Default Re: send email to customers not working

    It was in the query_builder

 

 

Similar Threads

  1. v139h Send email feature with HTML emails is not working for me
    By Laszlo in forum General Questions
    Replies: 9
    Last Post: 5 Aug 2013, 06:08 PM
  2. MAX_JOIN_SIZE rows email customers not working
    By paddy_uk2007 in forum General Questions
    Replies: 8
    Last Post: 25 May 2011, 02:52 AM
  3. How do I send email to customers not signed up for my newsletter?
    By countrycharm in forum General Questions
    Replies: 7
    Last Post: 12 May 2011, 02:59 AM
  4. Send Email To Customers
    By FatGuyinAZ in forum General Questions
    Replies: 5
    Last Post: 1 Dec 2010, 03:09 AM
  5. Cannot send customers email
    By bhfruitcakeco in forum General Questions
    Replies: 2
    Last Post: 21 Dec 2006, 09:15 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