If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Managing Customers and Orders / send email to customers not working

send email to customers not working

Started by cubmanky on 3 Nov 2018, 3:56 AM · Views: 5,054

Results 1 to 3 of 3
3 Nov 2018, 3:56 AM
#1
cubmanky avatar

cubmanky

Zen Follower

Join Date:
Jan 2014
Posts:
224
Plugin Contributions:
0

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

[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

5 Nov 2018, 5:44 AM
#2
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

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.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

6 Nov 2018, 3:10 AM
#3
cubmanky avatar

cubmanky

Zen Follower

Join Date:
Jan 2014
Posts:
224
Plugin Contributions:
0

Re: send email to customers not working

It was in the query_builder