eubanktransfer PHP Warning: undefined constant

Ask the community for help and support.
Post Reply
Valquiria
Posts: 8
Joined: Tue Apr 27, 2021 1:08 am
Has thanked: 3 times

eubanktransfer PHP Warning: undefined constant

Post 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
ecartz
Lead Developer
Lead Developer
Posts: 2637
Joined: Tue Nov 05, 2019 6:02 pm
Has thanked: 4 times
Been thanked: 181 times

Re: eubanktransfer PHP Warning: undefined constant

Post 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
Valquiria
Posts: 8
Joined: Tue Apr 27, 2021 1:08 am
Has thanked: 3 times

Re: eubanktransfer PHP Warning: undefined constant

Post 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
philpla
Posts: 27
Joined: Sun Feb 28, 2021 8:37 am
Has thanked: 2 times
Been thanked: 1 time

Re: eubanktransfer PHP Warning: undefined constant

Post by philpla »

Hi Valqui,

did you use the addon from Owl Sauron for eubanktransfer ?

thx
phil
Valquiria
Posts: 8
Joined: Tue Apr 27, 2021 1:08 am
Has thanked: 3 times

Re: eubanktransfer PHP Warning: undefined constant

Post 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
Post Reply