undefined_function Posted December 24, 2013 Posted December 24, 2013 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
undefined_function Posted December 24, 2013 Author Posted December 24, 2013 Note: I now created a fresh 2.3.3 installation of oscommerce and only this bitpay addon. Exact same error message.
De Dokta Posted December 25, 2013 Posted December 25, 2013 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.
undefined_function Posted December 25, 2013 Author Posted December 25, 2013 Thanks a lot for your reply. Will do so! Wonder what it can be tho.. Would be great to try it out before putting it live.
MrPhil Posted December 25, 2013 Posted December 25, 2013 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?
burt Posted December 26, 2013 Posted December 26, 2013 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).
Recommended Posts
Archived
This topic is now archived and is closed to further replies.