Background of the issue:
I am trying to fix lots of 'open_basedir restriction in effect' errors in my log.
PHP Warning: file_exists(): open_basedir restriction in effect. File(WP Endpoints-en_US.mo) is not within the allowed path(s): (/home/mywebsite/) in /home/mywebsite/www/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadTranslationFile.php on line 82
PHP Warning: file_exists(): open_basedir restriction in effect. File(WP Endpoints-en_US.l10n.php) is not within the allowed path(s): (/home/mywebsite/) in /home/mywebsite/www/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadTranslationFile.php on line 85
PHP Warning: realpath(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/mywebsite/) in /home/mywebsite/www/wp-includes/l10n/class-wp-translation-controller.php on line 106
Symptoms:
PHP Warning: file_exists(): open_basedir restriction in effect. I still got many 'open_basedir restriction in effect' in my log.
Questions:
How can I fix those "open_basedir restriction in effect" warnings in my log?
Please DO NOT suggest to set "open_basedir" settings in my account to "none" because that would be a security issue.
Thanks!
As I said, I can't set "open_basedir" settings to "none" because that would be a security issue. So I'd like to have an alternative solution.
It seems your plugin are looking for some files in the wrong directory:
PHP Warning: file_exists(): open_basedir restriction in effect. File(WP Endpoints-en_US.mo) is not within the allowed path(s): (/home/mywebsite/) in /home/mywebsite/www/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadTranslationFile.php on line 82
PHP Warning: file_exists(): open_basedir restriction in effect. File(WP Endpoints-en_US.l10n.php) is not within the allowed path(s): (/home/mywebsite/) in /home/mywebsite/www/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadTranslationFile.php on line 85
PHP Warning: realpath(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/mywebsite/) in /home/mywebsite/www/wp-includes/l10n/class-wp-translation-controller.php on line 106
So I guess the path for those specific files needs to be fixed, am I right? So can you please tell me how can I fix those paths?
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