I recently contacted my hosting company (webgo) to redirect my domain (www.ibizaselect.com) to the German language version (www.ibizaselect.com/de). During this chat I was informed that there is a problem caused by the WPML plugin...
When trrying to access ibizaselect.com or hidden link the following error message is displayed:
Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /home/www/wordpress-ibizaselect/wp-content/plugins/sitepress-multilingual-cms/classes/request-handling/redirection/wpml-rootpage-redirect-by-subdir.class.php on line 45
Warning: include(hidden link): failed to open stream: no suitable wrapper could be found in /home/www/wordpress-ibizaselect/wp-content/plugins/sitepress-multilingual-cms/classes/request-handling/redirection/wpml-rootpage-redirect-by-subdir.class.php on line 45
Warning: include(): Failed opening 'hidden link' for inclusion (include_path='.:/usr/share/php') in /home/www/wordpress-ibizaselect/wp-content/plugins/sitepress-multilingual-cms/classes/request-handling/redirection/wpml-rootpage-redirect-by-subdir.class.php on line 45
Thank you for contacting WPML support, I'd be happy to help you with this issue.
If you are using the hosting redirection, please try to go to WPML > Languages > Language URL Format section > Enable option:
- Different languages in directories
- Use directory for default language
- A page ( you might need to create a root page then) or HTML file path
Also, please turn off the browser redirect option in WPML > Languages > Browser language redirect > Disable browser language redirect.
While checking the debug info, I see that the WordPress Memory Limit is below the requirements. The minimum requirements are 128M, but we do recommend 256M and the debug information of your site shows it set to 40M. Please check this link for more details https://wpml.org/home/minimum-requirements/.
You can increase it by adding the following code in your wp-config.php file, right before the /* That’s all, stop editing! Happy publishing. */ line:
Hello,
I have just modified the memory limit to 256 as maximum and 128 as minimum as suggested by you. It worked!!!
When I tried to follow your other recommendation (WPML > Languages > Browser language redirect > Disable browser language redirect), I got the impression that it was already turned off before... I have attached a screenshot in my WPML German version, however, I think that you will understand the setting, too. Is it correct now or do I have to modify anything else in this section?
I do not see the issue with the site URL in the default language (German), please check this hidden link
(there is a domain message but I'm not sure what is the settings on your site/hosting)
Please try to re-save permalink settings (post name) to see if it helps. If not, can you please contact your hosting support to ask for help with this issue?