Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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

Link to comment
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

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...