Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2006
    Posts
    135
    Plugin Contributions
    0

    Default Newsletter/ email error

    Hi.

    I'm running Zen-cart 1.3.0.1 and have a problem sending emails and newsletters.

    When I go to send them I get 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 ':admin_id' at line 1
    in:
    [select 'ADMIN' as customers_firstname, admin_name as customers_lastname, admin_email as customers_email_address from zen_admin where admin_id = $SESSION:admin_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.
    Have I done somethign wrong or has something happend?

  2. #2
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: Newsletter/ email error

    What you appear to have is a mis-match between your database version and your fileset version. (What version info do you see when you go to Admin > Tools > Server Info ?)

    You claim to be running v1.3.0.1, but the sql query string you are having problems with was only added to the database in v1.3.0.2

    The function parsed_query_string($read_string) in includes/functions/audience.php was also modified in v1.3.0.2 to work with that sql query.

    The version of that function file in your store hasn't been modified to work with that sql query string.

    You're well overdue for a version upgrade...
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  3. #3
    Join Date
    Aug 2006
    Posts
    135
    Plugin Contributions
    0

    Default Re: Newsletter/ email error

    I went to Admin>Tools?server info and this is what I see

    Zen Cart 1.3.0.1
    Database Patch Level: 1.3.5
    v1.3.0.2 [2006-10-13 12:04:41] (Version Update 1.3.0.1->1.3.0.2)
    v1.3.0.1 [2006-10-13 12:04:40] (Version Update 1.3.0->1.3.0.1)
    v1.3.0.1 [2006-08-02 14:55:22] (Fresh Installation)
    v1.3.0.1 [2006-08-02 14:55:22] (Fresh Installation)


    Cheers
    Dan

  4. #4
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Newsletter/ email error

    Based on these issues, upgrading to the latest version of Zen-Cart would be a good idea.

  5. #5
    Join Date
    Aug 2006
    Posts
    135
    Plugin Contributions
    0

    Default Re: Newsletter/ email error

    I was thinking about doing this.

    The problem I may have is that when I built the shop I didnt use the override. I mearly changed the CSS files in Classic and template_default, and also any changes to the php files I did in these directories also... will I find an upgrade hard?

    Dan

  6. #6
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Newsletter/ email error

    will I find an upgrade hard?
    By following all the upgrade documentation from your docs folder (in the downloaded zip file), and by reading the wiki documentation from this site, there should be no problem for upgrading. However, make sure to do a full backup before proceeding.

 

 

Similar Threads

  1. 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
  2. Newsletter sending eMail error
    By RobertG in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 17 Jun 2010, 02:14 AM
  3. Replies: 3
    Last Post: 30 Mar 2007, 12:56 PM
  4. 1146 MySql error using newsletter/email
    By mrtorrez in forum Managing Customers and Orders
    Replies: 3
    Last Post: 11 Mar 2007, 10:28 PM
  5. newsletter confirmation email error
    By needslotsofhelp in forum General Questions
    Replies: 1
    Last Post: 28 Sep 2006, 06: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