If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / All Other Contributions/Addons / SQL error in Referral Sources addon

SQL error in Referral Sources addon

Locked

Started by eaddesigns on 6 Oct 2008, 11:19 PM · Views: 1,441

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
6 Oct 2008, 11:19 PM
#1
eaddesigns avatar

eaddesigns

New Zenner

Join Date:
Oct 2007
Posts:
90
Plugin Contributions:
0

Post #1 by eaddesigns

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

7 Oct 2008, 3:33 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

Is referrals Sources a 3rd party module?

Look to their support thread for a solution

Zen-Venom Get Bitten

7 Oct 2008, 3:50 AM
#3
eaddesigns avatar

eaddesigns

New Zenner

Join Date:
Oct 2007
Posts:
90
Plugin Contributions:
0

Post #3 by eaddesigns

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

7 Oct 2008, 4:27 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #4 by kobra

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

7 Oct 2008, 12:28 PM
#5
eaddesigns avatar

eaddesigns

New Zenner

Join Date:
Oct 2007
Posts:
90
Plugin Contributions:
0

Post #5 by eaddesigns

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

7 Oct 2008, 12:36 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #6 by kobra

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 Oct 2008, 12:39 PM
#7
eaddesigns avatar

eaddesigns

New Zenner

Join Date:
Oct 2007
Posts:
90
Plugin Contributions:
0

Post #7 by eaddesigns

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

7 Oct 2008, 2:15 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #8 by kobra

Is this error new?

Has your host changed anything?

Zen-Venom Get Bitten

7 Oct 2008, 8:05 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #9 by drbyte

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.

7 Oct 2008, 11:51 PM
#10
eaddesigns avatar

eaddesigns

New Zenner

Join Date:
Oct 2007
Posts:
90
Plugin Contributions:
0

Post #10 by eaddesigns

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

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