This is a discussion on New User to OSCDOX but frustrated with OSCommerce within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; Guys I have to admit. I have been postin in all forums around this cart and am getting nowhere. I ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| Guys I have to admit. I have been postin in all forums around this cart and am getting nowhere. I have been extensively through and on OSCOmmerce.com with no success. I am hoping someone here can help me with this problem. I have a cart here ( http://www.chefandreas.com/flash/nieto.html ) It has the OS Commerce cart on it fully poulated with Authorize.net standing by. I am unable to get the auhtorizenet.php mudule to work. I am getting an error message that reads, Unable to Process your credit card please try again. I have a log file which tells me nothing at first glance. I have placed this script at the botoom of my authorizenet_direct.php page // Post order info data to Authorize.net, make sure you have curl installed $cmd = "/usr/include/curl -d \"$data\" https://secure.authorize.net/gateway/transact.dll"; echo "<br>" . $cmd . "<br>"; exec($cmd, $response); It prints out this error message. Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/chefandr/public_html/shop/includes/modules/authorizenet_direct.php on line 43 Warning: Cannot add header information - headers already sent by (output started at /home/chefandr/public_html/shop/includes/modules/authorizenet_direct.php:43) in /home/chefandr/public_html/shop/includes/functions/general.php on line 23 This is an error that has changed from time to time with adjustments. It was giving me an error regarding the Country. Auhtorize.net is looking for country titles to be US or CAN not united states. I then get some help from a guy on OS COmmerce which suggested this. In that version the $order->delivery['country'] is a string like "United States" or "Canada" etc. We'll need to check and change that to what Authorize.net wants. I think they want US and CA for USA and Canada so... $dstr = "XX"; if ($order->delivery['country'] == "United States") $dstr = "US"; if ($order->delivery['country'] == "Canada") $dstr = "CA"; And then use $str for the string to authorize.net command x_Ship_To_Country => "{$order->delivery['country']}", x_Ship_To_Country => "$dstr", As you can see I am confused beyound all recognition and out of time. I need some experienced help and am willing to pay for it. Any one? John |
|
#2
| |||
| |||
| i had a lot of semi similar errors on my first install attempt. i ended up dumping my apache, php, and mysql installations and going with one of those package installations which fixed everything. i couldnt tell you whats going on with the errors tho |
|
#3
| ||||
| ||||
| What Authorizenet module are you using? Is it the Authorizenet ADC Direct Connection contribution by Bao Nguyen? Do you have curl complied with ssl on your server (either in PHP or as a binary?) The Authorizenet ADC Direct Connection contribution works out of the box with no tweaking necessary - except for adding your specific authorizenet account information, if you have curl+ssl installed. I have installed it several times without trouble, so hopefully we can track it down.
__________________ Michael Sasek osCMax Developer
|
|
#4
| |||
| |||
| man your picture is funny |
|
#5
| |||
| |||
| Paycheck I hope you don't mind, but I signed up on your shop. I do have one client that is a personal chef and may be interested in your items. Your ahead of me. Questions. From a security standpoint, does the shop have to be on a secure server (which I see yours appears to be) or can we link to the gateway to capture the cc info? |
|
#6
| |||
| |||
| That "header already sent" error means that you have a white space after a ?> somewhere... |
|
#7
| |||
| |||
| Quoting "mattcald": Quote:
|
|
#8
| |||
| |||
| wow In-Overtime Thanks god i found your post... I was going to re-install all the whole thing. The thing is that i was using an online editor which added the spaces at the end of the file, after the ?>.. but this is a weird "bug"... i don't c the explanation of this stuff.. why does this happen?
__________________ Henry Becerra ICQ: 18048153 MSN: qbecerra@hotmail.com Yahoo: qbecerra http://www.beza.com.ar San Juan - Argentina |
|
#9
| ||||
| ||||
| It is not a bug, but correct PHP behavior. The white space is detected as output, so php sends headers. When another file tries to output, it cant because the headers have already been sent... thus the error. Like all programming languages, there are rules that need to be follwed. This is one of them. The problem is that web editors are not code compliant and they add whitespace to files. This makes no difference for html or text, but is aa problem with PHP. The best course of action is to get yourself a good text or php editor to do all your file edits locally. No more extra whitespace. This is an example of using the right tool for the job. Have you ever tried to drive a nail with a screwdriver? You can do it, but it will most likely bend the nail, chip the scewdriver, and generally p*ss you off...
__________________ Michael Sasek osCMax Developer
|
|
#10
| |||
| |||
| msasek very helpful & technical as always... i found more than 100 posts about this stuff, thanks god this was one of the firsts i read... the shop is working awesome, hope 2 send it to the showcase soon ... thanks msasek !!
__________________ Henry Becerra ICQ: 18048153 MSN: qbecerra@hotmail.com Yahoo: qbecerra http://www.beza.com.ar San Juan - Argentina |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| upgrade from oscommerce ms2 to oscdox 1.55 | jloyzaga | osCMax v1.7 Installation | 5 | 02-26-2004 06:09 AM |
| After installing OSCdox osCommerce Version I can't login to | larsonc | osCMax v1.7 Discussion | 1 | 10-28-2003 08:51 PM |
| fed-up and frustrated | WnJBirds | osCommerce 2.2 Installation Help | 8 | 12-21-2002 04:28 PM |