Skip Navigation

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

Problem:
You are experiencing an error on your website indicating an 'open_basedir restriction in effect'. This error appears because the file access is restricted to specific directories.
Solution:
We recommend ensuring that your WPML String Translation plugin is updated to the latest version, which is 3.2.18. You can check for the latest versions in the 'My Account -> Downloads' section of the WPML site. If updates are not visible, you might need to click the 'Check for updates' button in the Plugins → Add New Plugin → Commercial tab. Always remember to back up your database before updating.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, 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.

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 4 replies, has 1 voice.

Last updated by Andrey 1 week, 3 days ago.

Assisted by: Andrey.

Author Posts
December 21, 2024 at 7:28 am #16535945

dominikS-27

Background of the issue:
I am experiencing an error on multiple locations on my website hidden link. The error message is: Warning: realpath(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/manurefetish.com/:/tmp/) in /var/www/vhosts/manurefetish.com/httpdocs/wp-includes/l10n/class-wp-translation-controller.php on line 106.

Symptoms:
The website displays an error message related to open_basedir restriction in effect.

Questions:
How can I resolve the open_basedir restriction error on my website?

December 21, 2024 at 7:47 am #16535954

dominikS-27

I also don't know if this is related however I also get this error on the add new plugins page

Warning: Undefined property: stdClass::$plugin in /var/www/vhosts/manurefetish.com/httpdocs/wp-includes/class-wp-list-util.php on line 168

December 23, 2024 at 7:07 am #16539353

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There!
Thanks for contacting WPML Support. Sorry for the delay in responding due to the weekend.

Before this thread gets assigned to my colleague, I'd like to offer some initial guidance or potential solutions.

We are aware of a base directory restriction issue in the String Translation plugin versions 3.2.16 and 3.2.17. Please refer to the Errata below for more details.

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

Could you please try the workaround mentioned and check if it helps in solving the issue?

The other error you mentioned, generated by the WordPress core, could be related to the PHP version you're using. WordPress is not yet fully compatible with PHP 8.2, which could display some compatibility warnings. Please refer to the link below for more details:

- https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/

However, please note that WPML provides compatibility support for PHP versions up to 8.3. Therefore, you shouldn't encounter any warnings or errors related to PHP caused by the WPML plugin.

I hope you can understand. Let us know if you need further assistance in this matter. We'll be happy to help.

Best regards,
Prosenjit

January 2, 2025 at 4:02 pm #16559476

dominikS-27

Hello,
sorry for the late reply, I will try the workaround in the next two days and report back if it resolves the issue

January 2, 2025 at 4:15 pm #16559489

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

Thank you for your updates. Please ensure that your WPML String Translation plugins are updated to the latest version, 3.2.18.

You can check the latest released versions under "My Account -> Downloads" on this site. Instructions to update can be found here: http://wpml.org/faq/install-wpml/

If you do not see the updates, you might need to click the Check for updates button in the Plugins → Add New Plugin → Commercial tab.

Please remember to back up your database before you proceed.