Background of the issue:
We moved to a new server, activated the WPML plugin, and added language switchers to our site. The issue can be seen at hidden link (in logs only).
Symptoms:
PHP Warning: file_exists(): open_basedir restriction in effect. File(WP Endpoints-en_US.mo) is not within the allowed path(s) in /home/wp/disk/wordpress/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadTranslationFile.php on line 81. I expected to see no warnings, but instead, I got a warning on every page load.
Questions:
How can I resolve the PHP warning related to open_basedir restriction?
Why am I seeing warnings after moving to a new server and activating WPML?
Let me know what you see in the debug.log after enabling debug mode. But before, please try running the option "Show custom MO Files Pre-generation dialog box" in WPML → Support → Troubleshooting.