sondov Posted January 30, 2005 Share Posted January 30, 2005 When ever some one confirms an order, they get this error: Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/content/p/i/l/pilot33/html/checkout_process.php on line 59 Has that ever happened to any one else? Link to comment Share on other sites More sharing options...
♥ozcsys Posted January 30, 2005 Share Posted January 30, 2005 When ever some one confirms an order, they get this error: Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/content/p/i/l/pilot33/html/checkout_process.php on line 59 Has that ever happened to any one else? <{POST_SNAPBACK}> Have you made any changes to that file ? While installing a contribution maybe? If not then just get a fresh copy of the file and ftp it to your server if you have then you need to go back over your changes and find the error. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right?? Link to comment Share on other sites More sharing options...
sondov Posted January 30, 2005 Author Share Posted January 30, 2005 Have you made any changes to that file ? While installing a contribution maybe? If not then just get a fresh copy of the file and ftp it to your server if you have then you need to go back over your changes and find the error. <{POST_SNAPBACK}> I think I should have included more info. The problem occurs sending data to Authorize.net. Some one else added the code. Here is the authorize.net stuff where the error occurs: //start c. //************************************************************ // Authorizenet ADC Direct Connection // Make sure the /catalog/includes/class/order.php is included // and $order object is created before this!!! if(MODULE_PAYMENT_AUTHORIZENET_STATUS) { include(DIR_WS_MODULES . 'authorizenet_direct.php'); } //************************************************************ //end c. ERROR HERE--> d.Find "tep_session_unregister('payment');" e.After, Add the following code: //start e. tep_session_register('last_order'); $last_order = $insert_id; //end e. I downloaded the original page, and looks like everything before and after this is the same as the original. Link to comment Share on other sites More sharing options...
sondov Posted January 30, 2005 Author Share Posted January 30, 2005 I deleted the lines of code above, the don't seem to do anything. Now when I hit confirm order, it takes forever then comes back with: There has been an error connecting to Authorize.net. I tried using Authorize.net AIM using code I found in a different post, but still get the same error. Link to comment Share on other sites More sharing options...
♥ozcsys Posted January 30, 2005 Share Posted January 30, 2005 I deleted the lines of code above, the don't seem to do anything. Now when I hit confirm order, it takes forever then comes back with: There has been an error connecting to Authorize.net. I tried using Authorize.net AIM using code I found in a different post, but still get the same error. <{POST_SNAPBACK}> Are these lines actually in your code? If so comment out the first one if that does not work try posting lines 45 - 65 so we can see it. e.After, Add the following code: //start e. tep_session_register('last_order'); $last_order = $insert_id; //end e. to // e.After, Add the following code: //start e. tep_session_register('last_order'); $last_order = $insert_id; //end e. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right?? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.