bmoscato Posted November 18, 2004 Posted November 18, 2004 When I went into my file manager for os commerce - catalog/includes/modules/payment/authorizenet.php file and changed the language to display the error message reason code, this is what I got when I tested a transaction on my website. Can anyone tell me how to fix this? :'( Parse error: parse error in /home/theparro/public_html/ecommerce/os/catalog/includes/modules/payment/authorizenet.php on line 20 Fatal error: Cannot instantiate non-existent class: authorizenet in /home/theparro/public_html/ecommerce/os/catalog/includes/classes/payment.php on line 41 Thanks, I appreciate your assistance. Barb Moscato
ozcsys Posted November 18, 2004 Posted November 18, 2004 When I went into my file manager for os commerce - catalog/includes/modules/payment/authorizenet.php file and changed the language to display the error message reason code, this is what I got when I tested a transaction on my website. Can anyone tell me how to fix this? :'( Parse error: parse error in /home/theparro/public_html/ecommerce/os/catalog/includes/modules/payment/authorizenet.php on line 20 Fatal error: Cannot instantiate non-existent class: authorizenet in /home/theparro/public_html/ecommerce/os/catalog/includes/classes/payment.php on line 41 Thanks, I appreciate your assistance. Barb Moscato <{POST_SNAPBACK}> Your problem is most likely caused by using the osC file manager to edit your files. You should not do this as it can cause problems. You should edit your files locally and then ftp them to your server. 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??
bmoscato Posted November 18, 2004 Author Posted November 18, 2004 Your problem is most likely caused by using the osC file manager to edit your files. You should not do this as it can cause problems. You should edit your files locally and then ftp them to your server. <{POST_SNAPBACK}> Dear Richard, Thanks for your reply: I did excactly as they said and got the error message described earlier. This is the only editing I have done. I was instructed by authorize.net to edit my files as listed below: If you are using the Authorize.Net payment module that comes with osC, edit the catalog/includes/modules/payment/authorizenet.php file. In the before_process() member function, edit CODE // Code 3 is an error - but anything else is an error too (IMHO) tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PAYMENT_AUTHORIZENET_TEXT_ERROR_MESSAGE), 'SSL', true, false)); to be CODE // Code 3 is an error - but anything else is an error too (IMHO) tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode($_POST['x_response_reason_code'] . ' - ' . $_POST['x_response_reason_text']), 'SSL', true, false)); and that should give you the code and text for why the transaction was declined. I appreciate any assistance you may be able to give me. Thanks, Barbara
Recommended Posts
Archived
This topic is now archived and is closed to further replies.