Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

"Call to undefined function tep_remove_order" @BitPay addon, osc 2.3.3 @xampp localhost


undefined_function

Recommended Posts

Posted

Hi guys,

 

I am running XAMPP@ localhost

  • Apache 2.4.7
  • MySQL 5.5.34
  • PHP 5.4.22
  • phpMyAdmin 4.0.9

Have a slightly customized oscommerce installation (v2.3.3). I am trying to activate the BitPay addon => https://github.com/bitpay/oscommerce-plugin

 

When I checkout I receive this message:

Fatal error: Call to undefined function tep_remove_order() in \oscommerce\includes\modules\payment\bitpay.php on line 119

bitpay.php: http://pastebin.com/agUhz2h0

^ this is what bitpay.php look like on Line 119:

tep_remove_order($insert_id, $restock = true);

 

This is my functions\general.php file:

http://pastebin.com/qYiXnfUp

 

 

I am total newbie when it comes to coding so be easy with your cryptic programming language please :D.

 

Thanks in advance

Posted

Hi,

 

we had the same issue some weeks ago - error message: Fatal error: Call to undefined function tep_remove_order().....

The problem is simply that the module does not work on a local test installation under xampp! Try it with a test installation on your web server - it worked properly for us.....

 

greetz

J.J.

Posted

tep_remove_order() is defined in /catalog/admin/includes/functions/general.php. Is the bitpay code including or requiring the correct general.php file? How about the top level .php file? I don't see that function in the code you showed -- did you get the admin version?

Posted

No payment module should be allowed to delete an order, and that is why the function is available only within the admin area.

 

So, whoever coded this Bitcoin module needs to have a rethink on it, or if they are certain they want the module to delete the order then they need to add the relevant function (by copying it from the admin file).

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...