Jump to content
AnuradhaKorde

OsCommerce error - 'Use of undefined constant' in payment module

Recommended Posts

I am trying to set up oscommerce-2.3.4.1 on localhost (XAMPP V3.2.4). while setting payment option, on 'Administrator page' after clicking on 'Install Module' button I am getting following warning .

Use of undefined constant MODULE_PAYMENT_CHRONOPAY_SORT_ORDER - assumed 'MODULE_PAYMENT_CHRONOPAY_SORT_ORDER' (this will throw an Error in a future version of PHP)

There are 48 payment options. Similar error is occurring for all payment modules. It seems some file is missing where all these constants are defined. Where can I get this file or how to fix these warnings ?

Payment

Warning: Use of undefined constant MODULE_PAYMENT_CHRONOPAY_SORT_ORDER - assumed 'MODULE_PAYMENT_CHRONOPAY_SORT_ORDER' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\oscommerce\catalog\includes\modules\payment\chronopay.php on line 26

Warning: Use of undefined constant MODULE_PAYMENT_CHRONOPAY_STATUS - assumed 'MODULE_PAYMENT_CHRONOPAY_STATUS' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\oscommerce\catalog\includes\modules\payment\chronopay.php on line 27

Warning: Use of undefined constant MODULE_PAYMENT_CHRONOPAY_PREPARE_ORDER_STATUS_ID - assumed 'MODULE_PAYMENT_CHRONOPAY_PREPARE_ORDER_STATUS_ID' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\oscommerce\catalog\includes\modules\payment\chronopay.php on line 29

Warning: Use of undefined constant MODULE_PAYMENT_INPAY_SORT_ORDER - assumed 'MODULE_PAYMENT_INPAY_SORT_ORDER' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\oscommerce\catalog\includes\modules\payment\inpay.php on line 25

Warning: Use of undefined constant MODULE_PAYMENT_INPAY_STATUS - assumed 'MODULE_PAYMENT_INPAY_STATUS' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\oscommerce\catalog\includes\modules\payment\inpay.php on line 26

Warning: Use of undefined constant MODULE_PAYMENT_INPAY_GATEWAY_SERVER - assumed 'MODULE_PAYMENT_INPAY_GATEWAY_SERVER' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\oscommerce\catalog\includes\modules\payment\inpay.php on line 35

Warning: Use of undefined constant MODULE_PAYMENT_IPAYMENT_CC_SORT_ORDER - assumed 'MODULE_PAYMENT_IPAYMENT_CC_SORT_ORDER' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\oscommerce\catalog\includes\modules\payment\ipayment_cc.php on line 27

Share this post


Link to post
Share on other sites

I would not use that version. Go to

https://www.oscommerce.com/Products

and download the Phoenix version that is available and use that. The version you have has not been updated in years and is not recommended. Phoenix is modular and its so much easier to add features.


REMEMBER BACKUP, BACKUP AND BACKUP

Get the latest Phoenix version here

It's easy to say to yes every question.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×