Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[SOLVED] Link Point Fatal Error if CC info is not correct


Guest

Recommended Posts

Error Message -

 

Fatal error: Call to undefined function: get_error() in /home/httpd/vhosts/rocketpc.com/httpsdocs/catalog/checkout_payment.php on line 150

 

Lines 149 - 151 in the checkout_payment.php file

 

<?php

 if (isset($HTTP_GET_VARS['payment_error']) && is_object(${$HTTP_GET_VARS['payment_error']}) && ($error = ${$HTTP_GET_VARS['payment_error']}->get_error())) {

?>

 

 

I am using tep_snapshot-20030228 But the code is the same in the newest snapshot so i don't think it really matters. Any help on the undefined function would be appreciated.

Link to comment
Share on other sites

Nevermind i figured it out.

 

For those of you using the Linkpoint 2.0 hack. On or about line 152 you will see.

 

<?php

 if (isset($HTTP_GET_VARS['payment_error']) && is_object(${$HTTP_GET_VARS['payment_error']}) && ($error = ${$HTTP_GET_VARS['payment_error']}->get_error())) {

?>

 

For the Linkpoint 2.0 hack the code needs to be change to reflect that defined function in the link point hack. Change it to this .......

 

<?php

if (isset($HTTP_GET_VARS['payment_error']) && is_object(${$HTTP_GET_VARS['payment_error']}) && ($error = ${$HTTP_GET_VARS['payment_error']}->output_error())) {

?>

the function "get_error()" has been change to "output_error()" to reflect the function defined in the Linkpoint 2.0 hack

Link to comment
Share on other sites

I will also go thru the current linkpoint contribution and fix it to work with the standard OS Commerce snap shot. What is posted above is just a quick work around for those that are getting the aboe stated error.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...