Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:

The client is experiencing frequent PHP warnings related to

open_basedir

restrictions, appearing to originate from the

wpml-string-translation

and

woocommerce-multilingual

plugins.

Solution:

We recommend checking with your hosting provider to adjust the

open_basedir

settings. Additionally, creating a staging copy of your site and deactivating other plugins one by one might help identify any potential conflicts.

For more details, please refer to the following related links:

If this solution does not resolve your issue or seems irrelevant, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket for further assistance.

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.

Tagged: 

This topic contains 1 reply, has 0 voices.

Last updated by Bigul 1 week, 3 days ago.

Assisted by: Bigul.

Author Posts
July 6, 2025 at 8:08 am #17204689

daliborJ

Hi Bigul,

Thanks again – I’ve been monitoring the `debug.log` and I’m seeing frequent PHP warnings related to `open_basedir` restrictions.

Here are a few examples:
- `file_exists(): open_basedir restriction in effect. File(WP Endpoints-sv_SE.mo)...`
- `realpath(): open_basedir restriction in effect...`
- `Deprecated: Required parameter $wpdb follows optional parameter $post_translations...`

They appear to be coming from `wpml-string-translation` and `woocommerce-multilingual` plugins.

The site is functioning correctly, but I just wanted to check whether these warnings are expected and if there’s a recommended way to suppress or fix them – or if an update will address this soon.

Thanks again for your help,
Dalibor

July 6, 2025 at 10:24 am #17204782

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hi Dalibor,

Welcome to the WPML support forum. I will do my best to assist you in resolving the issue.

This issue is most likely related to your hosting configuration, specifically the "open_basedir" settings, or possibly a conflict with another plugin. Please refer to the following related links for more details.

https://wpml.org/forums/topic/php-warnings-after-update/

https://wpml.org/forums/topic/error-loading-file-wp-endpoints-en_us-mo/

https://wpml.org/errata/php-warning-file_exists-open_basedir-restriction-in-effect-warning-possible-with-current-string-translation/

https://stackoverflow.com/questions/1846882/open-basedir-restriction-in-effect-file-is-not-within-the-allowed-paths

Therefore, we have a request to troubleshoot the problem:

- Please check with your hosting provider about adjusting the open_basedir settings.

- Create a staging copy of your site and try deactivating other plugins one by one to identify any potential conflicts.

Please try it and let us know your feedback.

--
Thanks!

Bigul