OldBuickParts Posted July 23, 2010 Posted July 23, 2010 All of a sudden my site won't accept credit cards. I recently changed the access permissions but do not know if that would cause the cc_validation to stop working. Here is the error I get: Credit Card Error! The first four digits of the number entered are: . If that number is correct, we do not accept that type of credit card. If it is wrong, please try again. Please notice the credit card number that I type in is being replaced by a "." Anybody got any ideas?? Thanks in advance Jeff
MrPhil Posted July 23, 2010 Posted July 23, 2010 The first thing I'd check is whether your host just upgraded PHP, to a version where "register global variables" are off by default. Maybe your credit card code, if not all of osC (what version are you using?), depends on register global variables being "on". You can probably turn them back "on" via an entry in php.ini (ask your host how to), but in the long run you'll need to upgrade or fix your code to not use register globals any more. osC 2.2 RC1 or later doesn't need register global variables, but old credit card processing add-ons might still use it.
OldBuickParts Posted July 23, 2010 Author Posted July 23, 2010 The first thing I'd check is whether your host just upgraded PHP, to a version where "register global variables" are off by default. Maybe your credit card code, if not all of osC (what version are you using?), depends on register global variables being "on". You can probably turn them back "on" via an entry in php.ini (ask your host how to), but in the long run you'll need to upgrade or fix your code to not use register globals any more. osC 2.2 RC1 or later doesn't need register global variables, but old credit card processing add-ons might still use it. I am running 2.2 RC2a. This has been working for 6 months. I'll ask my ISP but sounds like 2.2 RC2a is all I need. There must be something else. Any other ideas?? Thanks a bunch
NodsDorf Posted July 23, 2010 Posted July 23, 2010 Every time errors like this have ever happened to me its been host related. No host I have ever used has ever sent a message they were doing any updates, stuff just stopped working. After contacting them I was able to isolate the issue.
OldBuickParts Posted July 24, 2010 Author Posted July 24, 2010 Every time errors like this have ever happened to me its been host related. No host I have ever used has ever sent a message they were doing any updates, stuff just stopped working. After contacting them I was able to isolate the issue. ISP Host says nothing has been changed. I gotta believe it is tied to my permissions as they were all reviewed recently. Any other ideas. Everything (paypal, check/mo) works fine. Thanks again for all your help Jeff
MrPhil Posted July 24, 2010 Posted July 24, 2010 2.2 RC2a is the latest, so you're good there. Are you using any add-on or third-party code for the card processing? Maybe it needs updating if it's using register global variables.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.