Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Sql error when email button selected in Coupons

    NOTE: upgrading to v1.3.5 is of course suggested strongly ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  2. #2
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: Sql error when email button selected in Coupons

    Quote Originally Posted by Ajeh
    NOTE: upgrading to v1.3.5 is of course suggested strongly ...
    As it will be, but I can't do everyone at once!!
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  3. #3
    Join Date
    Nov 2003
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: Sql error when email button selected in Coupons

    Same issue here it seems:
    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 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.
    Trying to e-mail form customers.php . I have this problem on 1.3.5 (upgraded formolder version) and 1.3.0.1 (but that one is in the middle of an upgrade, and uses a 1.3.5 database so that could be the problem there).

    Both on:
    Server OS: Linux 2.6.17-1.2142_FC4 Database: MySQL 4.1.12-standard

    PHP versie: 4.4.2 (Zend versie: 1.3.0)
    HTTP Server: Apache/1.3.34 (Unix) mod_ssl/2.8.25 OpenSSL/0.9.7f PHP/4.4.2 mod_perl/1.29 FrontPage/5.0.2.2510

  4. #4
    Join Date
    Nov 2003
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: Sql error when email button selected in Coupons

    Hmmmm... a clean 1.3.5 install on the same server does not have this problem :-o

  5. #5
    Join Date
    Nov 2003
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: Sql error when email button selected in Coupons

    Weird: $SESSION ?

    Shouldn't that be $_SESSION ? Or is that coming from elsewhere? (I see this in the error message: "where admin_id = $SESSION:admin_id")

  6. #6
    Join Date
    Nov 2003
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: Sql error when email button selected in Coupons

    The sql upgrade from 1301 to 1302 shows:
    # add ability to send newsletters to self
    INSERT INTO query_builder ( query_category , query_name , query_description , query_string ) VALUES ('email,newsletters', 'Administrator', 'Just the email account of the current administrator', 'select \'ADMIN\' as customers_firstname, admin_name as customers_lastname, admin_email as customers_email_address from TABLE_ADMIN where admin_id = $SESSION:admin_id');
    Is that correct?

  7. #7
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Sql error when email button selected in Coupons

    your includes/functions/audience.php is not up-to-date.
    .

    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.

 

 

Similar Threads

  1. v139h DB/SQL Error when using SQL Patch for Add Pages More Info Sidebox addon
    By maperr55 in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 5 Mar 2012, 09:32 PM
  2. No error when forced attribute not selected
    By nacnac in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 5 Aug 2011, 05:31 AM
  3. SQL syntax error in creating discount coupons
    By Del in forum Bug Reports
    Replies: 2
    Last Post: 6 Mar 2008, 02:50 PM
  4. No error when shipping method not selected
    By scrapper in forum Addon Shipping Modules
    Replies: 1
    Last Post: 15 Sep 2006, 12:45 PM

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