osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

New User to OSCDOX but frustrated with OSCommerce

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Installation Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-20-2003, 11:36 PM
Paycheck's Avatar
Lurker
 
Join Date: Jan 2003
Location: San Clemente. Ca
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Paycheck
Default New User to OSCDOX but frustrated with OSCommerce

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 01-21-2003, 09:08 AM
New Member
 
Join Date: Jan 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
AtroxAngel
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 01-21-2003, 10:30 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

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


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 01-22-2003, 05:33 AM
New Member
 
Join Date: Jan 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
miko
Default

man your picture is funny
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 01-23-2003, 05:32 PM
New Member
 
Join Date: Dec 2002
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
DenverDave
Default

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 05-29-2003, 05:01 AM
New Member
 
Join Date: May 2003
Location: NW Arkansas
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
mattcald
Default

That "header already sent" error means that you have a white space after a ?> somewhere...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 03-08-2004, 07:50 AM
Member
 
Join Date: Oct 2003
Location: The Antelope Valley in SoCal
Posts: 47
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
In-Overtime
Default

Quoting "mattcald":
Quote:
That "header already sent" error means that you have a white space after a ?> somewhere...
Check your configure.php file in the includes folder. That is usually where the white space is, at the end, causing the "HEADERS NOT SENT" error. Delete all white space after the ?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 05-09-2004, 06:41 PM
Member
 
Join Date: Apr 2004
Location: Argentina
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
damnedpig
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 05-09-2004, 06:50 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

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... . Same thing with web editors.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 05-09-2004, 07:14 PM
Member
 
Join Date: Apr 2004
Location: Argentina
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
damnedpig
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 12:07 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax