Page 1 of 1

eubanktransfer PHP Warning: undefined constant

Posted: Thu Jun 03, 2021 8:05 pm
by Valquiria
Hello everyone!

My error_log file started to fill with the following warning:

Warning: Use of undefined constant MODULE_PAYMENT_EU_BANKTRANSFER_ID - assumed 'MODULE_PAYMENT_EU_BANKTRANSFER_ID' (this will throw an Error in a future version of PHP) in /home/mysite/public_html/catalog/includes/modules/payment/eubanktransfer.php on line 26
eubanktransfer.php line 26 looks like this:

if ((int)MODULE_PAYMENT_EU_BANKTRANSFER_ID > 0) {

Any clue how to fix it? OSC Edge.

Best regards.

Valqui

Re: eubanktransfer PHP Warning: undefined constant

Posted: Thu Jun 03, 2021 8:13 pm
by ecartz

Code: Select all

if (defined('MODULE_PAYMENT_EU_BANKTRANSFER_ID') && ((int)MODULE_PAYMENT_EU_BANKTRANSFER_ID > 0)) {
If you're curious why it just started happening, my guess would be that you upgraded from PHP 7.1- to 7.2+. See "unquoted strings" at https://www.php.net/manual/en/migration ... ecated.php

Re: eubanktransfer PHP Warning: undefined constant

Posted: Fri Jun 04, 2021 2:34 am
by Valquiria
Hi ecartz,

Thank you very much for the fix.

Yes, I changed the hosting plan and therefore I change the PHP version. I can downgrade the PHP version back to 7.0, but I'd rather try to fix these messages in the meantime.

Keep in touch and best regards

Valqui

Re: eubanktransfer PHP Warning: undefined constant

Posted: Fri Jun 04, 2021 12:06 pm
by philpla
Hi Valqui,

did you use the addon from Owl Sauron for eubanktransfer ?

thx
phil

Re: eubanktransfer PHP Warning: undefined constant

Posted: Fri Jun 04, 2021 7:46 pm
by Valquiria
Hi philpla,

The eubanktransfer Payment Module it was part of an old version of OSC Frozen that I'm still using (I know ... I have to update it as soon as possible to phoenix but different personal problems I didn't have time).

Best regards
Valqui