Thread: email error

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Sep 2006
    Posts
    277
    Plugin Contributions
    2

    Default email error

    i tried to test the admin send email but i got this error:
    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_id IS NULL or cust' at line 1
    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.
    Any ideas?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: email error

    This sounds like an error resulting from the addon for newsletter subscribe
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: email error

    Yes, it is.

    You'll need to remove all records containing references to "TABLE_SUBSCRIBE" from the query_builder table.
    .

    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.

  4. #4
    Join Date
    Sep 2006
    Posts
    277
    Plugin Contributions
    2

    Default Re: email error

    how do i do that? i have this addon in my current cart but it is not planned for the new design. so, i guess it has to do w/the DB. but the mod didn't come with sql querries. do i just delete the tables and it's gone? i did that with another mod and still get an error about that.

  5. #5
    Join Date
    Sep 2006
    Posts
    277
    Plugin Contributions
    2

    Default Re: email error

    can i just delete all querry IDs that say "email,newsletter"
    I have 11 querries in that table. one says "email" and all others say email,newsletter"

  6. #6
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: email error

    Quote Originally Posted by stevefriedman71 View Post
    can i just delete all querry IDs that say "email,newsletter"
    I have 11 querries in that table. one says "email" and all others say email,newsletter"
    No. You'll need to look at the query-string of each, and delete just the records that contain references to "TABLE_SUBSCRIBE"
    .

    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.

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: email error

    TABLE_SUBSCRIBE is not a default table
    You need to remove it and the files that have references to it

    Uninstall news letter subscribe
    Zen-Venom Get Bitten

  8. #8
    Join Date
    Sep 2006
    Posts
    277
    Plugin Contributions
    2

    Default Re: email error

    is there a sql string that would do that? or manual only?
    when i do the search (and thank you for pointing how to do that in a DB)
    i now searched the whole DB for that table name and it ended to show 3 query strings in that query builder.
    Last edited by stevefriedman71; 21 Feb 2011 at 07:35 PM.

  9. #9
    Join Date
    Sep 2006
    Posts
    277
    Plugin Contributions
    2

    Default Re: email error

    here are the querries (these are the only finds when i searched the whole DB for "TABLE_SUBSCRIBE"
    SELECT email_address as customers_email_address FROM TABLE_SUBSCRIBERS WHERE email_format != 'NONE' and confirmed = 1 and (customers_id IS NULL or customers_id = 0) order by email_address
    select c.customers_firstname, c.customers_lastname, s.email_address as customers_email_address from TABLE_SUBSCRIBERS as s left join TABLE_CUSTOMERS as c on c.customers_id = s.customers_id
    SELECT s.email_address as customers_email_address FROM TABLE_SUBSCRIBERS as s LEFT JOIN TABLE_CONFIGURATION as q on LOCATE( s.email_address, q.configuration_value) >= 1 WHERE configuration_key = 'NEWSONLY_SUBSCRIPTION_TEST_GROUP'

  10. #10
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: email error

    As I said, delete those records
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Error Logs about Email, but email works.
    By joejoejoe in forum General Questions
    Replies: 1
    Last Post: 28 Nov 2012, 12:31 AM
  2. Replies: 2
    Last Post: 15 Feb 2012, 09:08 PM
  3. Email Error: ~ 1 in 8 emails produces blank email error page
    By CheapStairParts in forum General Questions
    Replies: 0
    Last Post: 20 Jan 2010, 06:14 PM
  4. Replies: 0
    Last Post: 27 Jul 2009, 12:22 PM
  5. Email Error when checking out using SMTP email
    By YellowStarS2k in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 18 Jun 2009, 08:20 AM

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