Results 1 to 10 of 10
  1. #1
    Join Date
    Oct 2007
    Posts
    98
    Plugin Contributions
    0

    Default SQL error in Referral Sources addon

    I'm getting this error at the top of the admin age in the referrals Sources

    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 's website' order by ci.customers_info_id DESC' at line 1
    in:
    [select ci.customers_info_id, ci.customers_info_date_account_created from customers_info ci, sources_other so where so.customers_id = ci.customers_info_id and so.sources_other_name = 'Emily Layton's website' order by ci.customers_info_id DESC]
    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.


    How would i go about fixing this

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

    Default Re: error in SQl

    Is referrals Sources a 3rd party module?

    Look to their support thread for a solution
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Oct 2007
    Posts
    98
    Plugin Contributions
    0

    Default Re: error in SQl

    its the "How did you hear about us" from the downloads.
    I was unable to find anything with the same error

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

    Default Re: error in SQl

    Did you just install it recently(read the last mod installed)?

    Did you make a backup of your DB before you did this so that you might have a fall back position?
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Oct 2007
    Posts
    98
    Plugin Contributions
    0

    Default Re: SQL error in Referral Sources addon

    i have had this installed from the start. I do have a back up i just wasnt sure what has caused this .

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

    Default Re: SQL error in Referral Sources addon

    i have had this installed from the start
    So is this a new development? or has this always been this way?

    If new, what else has changed?
    Server, phpver, mysql ver, upgrade of Zen Cart?
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Oct 2007
    Posts
    98
    Plugin Contributions
    0

    Default Re: SQL error in Referral Sources addon

    I havent changed anything.
    I have been using this mod for about a year.

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

    Default Re: SQL error in Referral Sources addon

    Is this error new?

    Has your host changed anything?
    Zen-Venom Get Bitten

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

    Default Re: SQL error in Referral Sources addon

    This appears to be a bug in the addon, whereby it's not built to properly handle accepting of apostrophes when someone keys in a response to the "other" field. It's likely that you've not had the problem earlier because perhaps nobody has tried using apostrophes earlier?
    To fix, you'll have to alter the code to properly handle apostrophes.
    .

    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.

  10. #10
    Join Date
    Oct 2007
    Posts
    98
    Plugin Contributions
    0

    Default Re: SQL error in Referral Sources addon

    this is a new error and my host has not changed anything.


    How would i go about altering the code to properly handle apostrophes

 

 

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. Error on install of a .sql for googleanalytics addon
    By EZorb in forum General Questions
    Replies: 1
    Last Post: 12 May 2010, 09:47 AM
  3. Addon causing a SQL 1024 error in Search
    By izar74 in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 11 Mar 2010, 04:30 AM
  4. Referral Sources- How to add more?
    By bluealice in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 3 Jul 2008, 08:51 PM
  5. Referral sources SQL error
    By dealbyethan.com in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 6 Sep 2007, 08:10 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