Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Aug 2007
    Posts
    91
    Plugin Contributions
    0

    red flag 1064 error on Send E-Mail Customer Page

    I'm trying to e-mail all my customers to notify them of an upcoming sale. However, I get the following error message on the 'Send E-mail to Customers Page"

    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 'as s left join zen_customers as c on c.customers_id = s.customers_id' at line 1
    in:
    [select c.customers_firstname, c.customers_lastname, s.email_address as customers_email_address from as s left join zen_customers as c on c.customers_id = s.customers_id ]
    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 idea how to fix it?

    Thanks!

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

    Default Re: 1064 error on Send E-Mail Customer Page

    Any idea how to fix it?
    Not from the information you have provided
    Zen Ver
    server type OS
    php ver
    mysql ver

    http://www.zen-cart.com/forum/faq.php
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Aug 2007
    Posts
    91
    Plugin Contributions
    0

    Default Re: 1064 error on Send E-Mail Customer Page

    Thanks for the reply. Below is the additional info:

    Zencart Version: 1.3.9h
    MySQL: 5.1.47
    PHP: 5.2.14
    OS: Linux

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: 1064 error on Send E-Mail Customer Page

    OK, You should have no platform version issues

    Do any emails get sent when an order is placed?

    If yes, As this is an admin function, one can check the admin files for errors but it is easier to just reload ALL the /admin files from a fresh distribution with your FTP Client
    This will replace all the files and if using a good FTP client any errors will be reported
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Aug 2007
    Posts
    91
    Plugin Contributions
    0

    Default Re: 1064 error on Send E-Mail Customer Page

    Yes, e-mail do get sent to customers when orders are placed. So, what you are saying is that all I need to do is reload the "Admin" files to my new "renamed" admin folder?

    I'll give it a try.

  6. #6
    Join Date
    Aug 2007
    Posts
    91
    Plugin Contributions
    0

    Default Re: 1064 error on Send E-Mail Customer Page

    Just did a fresh install of the Admin folder and I'm still getting the same error?

    What else can I do to figure it out?

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

    Default Re: 1064 error on Send E-Mail Customer Page

    Searh this forum for "1064 error"

    Check the similar posts listed at the bottom of this thread
    Zen-Venom Get Bitten

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: 1064 error on Send E-Mail Customer Page

    Looks like you had the Newsletter Subscribe addon installed at one point but have hacked out various traces of it incorrectly.
    You'll need to fix that bad query you've got in the query_builder table in your database.
    .

    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.

  9. #9
    Join Date
    Aug 2007
    Posts
    91
    Plugin Contributions
    0

    Default Re: 1064 error on Send E-Mail Customer Page

    Thanks! My site was hacked before I moved over to 1.3.9h. I suspect that had something to do with it as my e-mail is now working (after deleting the newsletter details), but the "from" in the e-mail is automatically populating as the "hackers" e-mail.

    I can change the "from" email address when I send an e-mail to customers, but do you know where I would go to replace the "hackers" e-mail with my own?

    Thanks so much!

  10. #10
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: 1064 error on Send E-Mail Customer Page

    Admin->Configuration->Email Options
    .

    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. v153 sql error in admin mail.php - send mail and newsletters
    By delia in forum General Questions
    Replies: 1
    Last Post: 1 May 2015, 02:52 AM
  2. 1064 error when trying to send customer email/newsletter
    By lj20272 in forum General Questions
    Replies: 14
    Last Post: 27 Aug 2012, 08:43 AM
  3. New customer confirmation mail - send also their password
    By ibusar in forum General Questions
    Replies: 4
    Last Post: 15 Sep 2009, 03:02 PM
  4. error in send mail page
    By derer in forum General Questions
    Replies: 3
    Last Post: 15 May 2007, 06:00 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