Zen Follower
- Join Date:
- Dec 2006
- Posts:
- 141
- Plugin Contributions:
- 0
Couldn't find constant TABLE_SUBSCRIBERS
I get the error below when trying to send Newsletters/Emails.
============
Warning: constant(): Couldn't find constant TABLE_SUBSCRIBERS in /home/jungilri/public_html/skateboardstickers/includes/functions/audience.php on line 113
1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE email_format != 'NONE' and confirmed = 1 and (customers_i
in:
[SELECT email_address as customers_email_address FROM WHERE email_format != 'NONE' and confirmed = 1 and (customers_id IS NULL or customers_id = 0) order by email_address ]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
} elseif ( substr( $val, 0, 6) == "TABLE_" ) {
//return the value of the CONSTANT with the name that $val has. ie: TABLE_CUSTOMERS = zen_customers
**Line 113** $val = constant($val);
} elseif ( substr( $val, 0, 9) == '$SESSION:' ) {
//return the value of the SESSION var indicated
$param = str_replace('$SESSION:', '', $val);
$val = $_SESSION[$param];
I've just upgraded from an earlier version to 1.3.7 and have upgraded the database as required