Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-07:00)

This topic contains 5 replies, has 1 voice.

Last updated by Bobby 3 days, 16 hours ago.

Assisted by: Bobby.

Author Posts
June 20, 2025 at 3:51 am #17152599

cristianI-5

Background of the issue:
I am trying to resolve a fatal error originating from the WooCommerce Multilingual plugin, specifically in the file class-wcml-wc-gateways.php at line 78. The error occurs when the plugin attempts to access a protected property ($settings) of a custom payment gateway class, which is not allowed in PHP. We are using WooCommerce Multilingual & Multicurrency v5.4.5. The issue suggests that the plugin is making assumptions about gateway class internals that may not hold for third-party or custom gateways. I am looking for a fix or a suggested workaround.

Symptoms:
PHP Fatal error: Uncaught Error: Cannot access protected property WC_TBI_Blocks_Gateway::$settings in /webaccounts/rabulil/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php:78

Questions:
Can you review and update the plugin code to use public methods or implement a compatibility layer?
Do you need any further information to reproduce this issue?

June 23, 2025 at 5:39 am #17157934

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

Thanks for contacting us.

While you wait for my colleague to take over the ticket, let me try to help you with the issue quickly.

I created a minimal installation of WordPress, WPML, and all necessary WPML add-ons, and themes.

You can access the WordPress dashboard using the link below:

- hidden link

Try to replicate the issue with a simple example.

This will help us to report the probable issue to the compatibility team and solve the possible problem faster.

Regards,

Drazen

June 23, 2025 at 7:03 am #17158166

cristianI-5

Hi Dražen,

Thanks for your quick reply and for providing the sandbox environment.

I’ve accessed the sandbox and attempted to install and activate our custom payment gateway plugin (WC_TBI_Blocks_Gateway) to replicate the issue. However, upon doing so, the sandbox crashed with a critical error screen, without any detailed error message.

Since this is a different environment from our dev site (where we initially encountered the fatal error related to accessing a protected property), it’s unclear whether this is caused by the same issue or something else within the sandbox.

Could you please:
Enable WP_DEBUG and WP_DEBUG_LOG in the sandbox environment so I can identify the exact error?

Or check the PHP error log for more details?

Once I have the actual error output, I’ll be able to confirm whether the same Cannot access protected property exception is being triggered, or if something else is going wrong in this environment.

Thanks again for your support — I’m ready to continue the investigation once we can see the specific error.

Best regards,
Mihaela

Screenshot 2025-06-23 at 10.02.38.png
June 23, 2025 at 8:20 pm #17162508

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi Mihaela,

Unfortunately these sandboxes don't have FTP access therefore if a fatal error happens we have to scrape it.

Would you possibly happen to have a staging site where we can access it and take a look at the issue there?

If not we can create a staging site for you using our Cloudways environment which allows FTP access.

Also, just to verify..is this plugin custom? Are you the developer of it?

It's important to note that while we will do our best to assist, support for non compatible and custom plugins is limited.

June 24, 2025 at 6:32 am #17163083

cristianI-5

Hi,

Thanks for the clarification.

The plugin in question is not custom-made by us — it is the official plugin provided by TBI Bank to integrate their payment gateway with WooCommerce.

We are simply using it on our client’s site, and the fatal error arises when WooCommerce Multilingual tries to access a protected property ($settings) in the TBI gateway class.

We’ve prepared access to our development environment where the issue can be reproduced.

Could you please confirm whether this support thread is private — or let us know if there’s a secure way to share staging credentials with your team?

Once confirmed, we’ll send over the login details.

Best regards,
Mihaela

June 24, 2025 at 9:26 pm #17166858

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi Mihaela,

Just a quick note that this thread is public—please only share site access with us once we’ve enabled a private reply field for that purpose.

Regarding the plugin in question: as mentioned earlier, our support is limited when it comes to custom or third-party plugins that haven’t been tested and confirmed compatible with WCML. Unfortunately, this particular plugin does fall outside the scope of what we’re able to support directly.

We recommend reaching out to the plugin’s authors to see if they can provide any guidance or a workaround to help ensure compatibility with WCML.

Thanks for your understanding!

Best regards,
Bobby