osCmax v2.5 User Manual
Results 1 to 10 of 10

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

      
  1. #1
    Lurker Paycheck's Avatar
    Join Date
    Jan 2003
    Location
    San Clemente. Ca
    Posts
    1
    Rep Power
    0


    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

  2. #2
    New Member
    Join Date
    Jan 2003
    Posts
    13
    Rep Power
    0


    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

  3. #3
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    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 Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  4. #4
    New Member
    Join Date
    Jan 2003
    Posts
    25
    Rep Power
    0


    Default

    man your picture is funny

  5. #5
    New Member
    Join Date
    Dec 2002
    Posts
    15
    Rep Power
    0


    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?

  6. #6
    New Member
    Join Date
    May 2003
    Location
    NW Arkansas
    Posts
    7
    Rep Power
    0


    Default

    That "header already sent" error means that you have a white space after a ?> somewhere...

  7. #7
    Member
    Join Date
    Oct 2003
    Location
    The Antelope Valley in SoCal
    Posts
    47
    Rep Power
    0


    Default

    Quoting "mattcald":
    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 ?>

  8. #8
    Member
    Join Date
    Apr 2004
    Location
    Argentina
    Posts
    61
    Rep Power
    0


    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

  9. #9
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    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 Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  10. #10
    Member
    Join Date
    Apr 2004
    Location
    Argentina
    Posts
    61
    Rep Power
    0


    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

Similar Threads

  1. upgrade from oscommerce ms2 to oscdox 1.55
    By jloyzaga in forum osCMax v1.7 Installation
    Replies: 5
    Last Post: 02-26-2004, 05:09 AM
  2. After installing OSCdox osCommerce Version I can't login to
    By larsonc in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 10-28-2003, 07:51 PM
  3. fed-up and frustrated
    By WnJBirds in forum osCommerce 2.2 Installation Help
    Replies: 8
    Last Post: 12-21-2002, 03:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •