Skip to content Skip to sidebar

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.

This topic contains 5 replies, has 1 voice.

Last updated by patrykP-6 3 months, 2 weeks ago.

Assisted by: Shekhar Bhandari.

Author Posts
December 11, 2025 at 4:09 pm #17656950

patrykP-6

Hello, I’m experiencing three issues with WPML:

On the “Sklep” page (polish language), I cannot switch to the translated “Shop” page. However, on the “Shop” page, I can switch back to the original “Sklep” page. I would like the language switch to work correctly in both directions.

In WooCommerce → Payments → PayU, the payment method texts are in Polish but show as English. When I change the language to Polish and click “Save,” nothing happens — the page refreshes, and the language still shows as English.

When switching languages on subpages at the bottom of the site, I get this error:
.../wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadTranslationFile.php on line 82
Line 82 contains:
if ( file_exists( $defaultPathFile ) ) {
How can this error be fixed?

I have disabled error display on the site, but I have included all the issues I could see. In the debug.log, I only see:
[11-Dec-2025 15:39:37 UTC] PHP Deprecated: TranslationManagement::__construct(): Implicitly marking parameter $wpml_cookie as nullable is deprecated, the explicit nullable type must be used instead in /public_html/domena.com.pl/wp-content/plugins/sitepress-multilingual-cms/inc/translation-management/translation-management.class.php on line 90.

Please help me resolve these three issues.

December 11, 2025 at 4:50 pm #17657080

patrykP-6

WIth AI Chat i solved problem about translate payu. I need help with, change "sklep" to "Store"
and error. Now i turn on debug display and i see:

Up site:
Deprecated: TranslationManagement::__construct(): Implicitly marking parameter $wpml_cookie as nullable is deprecated, the explicit nullable type must be used instead in .../wp-content/plugins/sitepress-multilingual-cms/inc/translation-management/translation-management.class.php on line 90

Bootom site:
Deprecated: WPML\Core\Twig\Environment::__construct(): Implicitly marking parameter $loader as nullable is deprecated, the explicit nullable type must be used instead in .../wp-content/plugins/sitepress-multilingual-cms/lib/twig/src/Environment.php on line 117

and add second error:

Warning: file_exists(): open_basedir restriction in effect. File(action-scheduler-pl_PL.mo) is not within the allowed path(s): (..usr/local/php84-fpm/lib/php/:/tmp:/home/tmp:/var/lib/php5) in .../wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadTranslationFile.php on line 82

Warning: file_exists(): open_basedir restriction in effect. File(action-scheduler-pl_PL.l10n.php) is not within the allowed path(s): (/home/platne/serwerYYYY/public_html/domain.com.pl/:/home/platne/serwerYYYY/tmp/:/home/virtuals/domain.com.pl/:/usr/local/php84-fpm/lib/php/:/tmp:/home/tmp:/var/lib/php5) in /home/platne/serwerYYYY/public_html/domain.com.pl/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadTranslationFile.php on line 85

December 15, 2025 at 9:35 am #17663270

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Can you clear any available caches from the site and go to WPML-> Support ->Troubleshooting and click the below buttons:

+ Clear Cache in WPML
+ Set Language information
+ Fix element types collation
+ Remove ghost entries from the translation tables
+ Assign translation status to duplicated content

For the warnings and notices you can hide them as they will not create any functional issues, you can also try the solution from this ticket and see if it helps: https://wpml.org/forums/topic/warning-file_exists-open_basedir-restriction-in-effect/#post-17634500

Look forward to your reply.

Thanks

December 15, 2025 at 10:38 pm #17665884

patrykP-6

Hi,

As for the errors, that’s fine, I’ll hide them since fixes are planned and they don’t affect how the site works. The only issue left is that I did what you suggested and the problem is still there. I even deleted the English “shop” page and created it again, but it didn’t change anything. Do you have any ideas?

What could be causing this situation where, when I’m on the English version, it correctly reads the translation and I can switch to the Polish “shop” page, but when I’m on the Polish “shop” page, I don’t have the option to switch languages?

December 16, 2025 at 5:33 am #17666060

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Thank you for the details.

To debug this issue further, I would need to check your site settings once, for this I would need temporary access (wp-admin and ftp) to your site.

So could you please provide me with those details, you will find the needed fields for this below the comment area when you log in to leave your next reply.
hidden link

This info is private and available to you and WPML supporters only.
Read more about this: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Note:
Backup your sites before providing the credentials or if possible provide credentials for the test site

Look forward to your reply.

Thanks

December 16, 2025 at 2:46 pm #17668143

patrykP-6

OMG, I made a backup and moved the site to another domain. The shop page worked fine there. I tried clearing the cache, but not the Redis cache at first. After clearing the Redis cache, everything started working properly on the main domain. Problem solved 🙂 Thanks!