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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | - |
- | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | - |
Supporter timezone: America/Sao_Paulo (GMT-03:00)
Tagged: Not WPML issue
This topic contains 52 replies, has 2 voices.
Last updated by Mateus Getulio 11 months, 3 weeks ago.
Assisted by: Mateus Getulio.
Author | Posts |
---|---|
July 11, 2024 at 12:39 pm #15935063 | |
Marc |
No, I threw away all files from AEDCenter.DE and also the AEDCenter.DE database. Apparently the database belong together. I will put back the backup now |
July 11, 2024 at 12:42 pm #15935080 | |
Marc |
The database is almost restored now. Can you please take a look what could be wrong? A filled database for AEDCenter.De maybe? |
July 11, 2024 at 12:44 pm #15935100 | |
Mateus Getulio Supporter
Languages: English (English ) Portuguese (Brazil) (Português ) Timezone: America/Sao_Paulo (GMT-03:00) |
I'm checking it, I'll let you know. |
July 11, 2024 at 12:47 pm #15935105 | |
Mateus Getulio Supporter
Languages: English (English ) Portuguese (Brazil) (Português ) Timezone: America/Sao_Paulo (GMT-03:00) |
It looks like the old credentials no longer work. I'm enabling private fields for your next reply in case you need to create a new wp-admin user and share it. |
July 11, 2024 at 10:01 pm #15937919 | |
Mateus Getulio Supporter
Languages: English (English ) Portuguese (Brazil) (Português ) Timezone: America/Sao_Paulo (GMT-03:00) |
Hello Marc, I checked it and by this time the DNS propagation should already have taken place. If I try to access hidden link I see a forbidden error. This happens because this domain is somehow configured as an actual site with a webroot. When I access the site, the server it tells me the path to this site and since there's no entry point, like and index.html or index.php file, it gives a 403 forbidden error. You can reach out to Cloudways support, but I believe that just removing the files for hidden link and pointing the DNS to the same IP won't work. You'd have to remove it entirely as app and add it just as an alias within the settings of hidden link They explain it a bit more here: hidden link and here: hidden link In their own words:
This is something they're able to assist you better and pretty quick. On the WPML side, everything is properly set up for it to work, as soon as it gets corrected on the hosting side, the language switch will start to work. Please let me know. |
July 12, 2024 at 11:46 am #15942196 | |
Marc |
I tested for hours with Cloudways support. We know now that it's a .htaccess problem Is this code written to the .htaccess by WPML? # Redirect all traffic from aedcenter.de to aedcenter.nl |
July 12, 2024 at 11:49 am #15942199 | |
Marc |
There's a conflict somewhere in the .htaccess. Can you see where? # BEGIN WP Rocket # FileETag None is not enough for every server. # Since we’re sending far-future expires, we don’t need ETags for static content. <IfModule mod_alias.c> <FilesMatch "\.(css|htc|js|asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$"> <IfModule mod_mime.c> # Compress all output labeled with one of the following MIME-types # END WP Rocket RewriteCond %{HTTP_USER_AGENT} facebookexternalhit [NC] # Redirect all traffic from aedcenter.de to aedcenter.nl RewriteEngine On <IfModule mod_headers.c> # BEGIN Imagify: webp file type # BEGIN Imagify: avif file type # BEGIN Imagify: rewrite rules for avif <IfModule mod_rewrite.c> # Check if browser supports AVIF images. # Check if AVIF replacement image exists. # Serve AVIF image instead. <IfModule mod_headers.c> # BEGIN Imagify: rewrite rules for webp <IfModule mod_rewrite.c> # Check if browser supports WebP images. # Check if WebP replacement image exists. # Serve WebP image instead. <IfModule mod_headers.c> RewriteEngine On #Begin Really Simple Security # END WordPress # MalCare WAF # END MalCare WAF |
July 12, 2024 at 11:51 am #15942211 | |
Marc |
I now try to implement this script found as a solution on the WPML website to the Functions.php file and hope it will fix the problem ... add_filter('mod_rewrite_rules', 'fix_rewritebase'); $wpml_root = parse_url(get_option('home')); $rules = str_replace("RewriteBase $home_root", "RewriteBase $wpml_root", $rules); return $rules; |
July 12, 2024 at 12:18 pm #15942292 | |
Marc |
I uncommented the following line in the .htaccess and everything seems to work except for selecting the HEIM (home) buttong to the page/root: hidden link. # Redirect all traffic from aedcenter.de to aedcenter.nl # RewriteEngine On Adding this script to the to the functions.php file of the Hello Elementor Child theme, did not fix the problem: add_filter('mod_rewrite_rules', 'fix_rewritebase'); $wpml_root = parse_url(get_option('home')); $rules = str_replace("RewriteBase $home_root", "RewriteBase $wpml_root", $rules); return $rules; - Almost there, but how to finally fix this problem to have it work 100% ? |
July 12, 2024 at 2:39 pm #15943075 | |
Mateus Getulio Supporter
Languages: English (English ) Portuguese (Brazil) (Português ) Timezone: America/Sao_Paulo (GMT-03:00) |
Hello Marc, Thank you so much for sharing the solution of the issue! I tested the language switcher functionality and it looks like it is working 100% now? Even the Heim button + menu link are working properly in the German version now. |
July 12, 2024 at 3:03 pm #15943185 | |
Marc |
Everything seems to work EXCEPT for selecting the HEIM (home) button to the page/root: hidden link. So almost there, but how to finally fix this aedcenter.de root problem to have it work 100% ? Is this code written to the .htaccess by WPML? # Redirect all traffic from aedcenter.de to aedcenter.nl |
July 12, 2024 at 8:06 pm #15944374 | |
Mateus Getulio Supporter
Languages: English (English ) Portuguese (Brazil) (Português ) Timezone: America/Sao_Paulo (GMT-03:00) |
Hello Marc, I'm not able to reproduce any issues, please check: hidden link Perhaps I'm testing it wrongly? Regarding the htaccess, WPML writes in it as part of the language switcher system as it is explained a bit more here: https://wpml.org/faq/why-is-htaccess-getting-overwritten-with-the-language-folder-on-my-wpml-website/ There's a workaround available in the link above to cease some of those changes. |
July 13, 2024 at 5:08 am #15946208 | |
Marc |
Hi Mateus, I also made a video showing that things are still not working. See: hidden link Most Dutch pages are translated, so I can select GERMAN and I will see a page in German. Great, but then when I select HEIM the site will redirect me to hidden link. See my video. It really drives me nuts. Can you please dive one last time into my WPML settings and my .htaccess if you see something that's not set-up well? Otherwise I see no other option then to rip both sites apart and to translate AEDCenter.DE manually. It's not what I want because it will cost a lot of (unpaid) time ... Thanks and cheers, |
July 13, 2024 at 10:28 am #15947060 | |
Marc |
Hi Mateus, Unfortunately Mateus I decided to stop trying to fix this issue, although you really supported me superbly! It took me way too long (over a week) to get close to a working solution but my client can't wait anymore. The solution of the problem is somewhere to be found in the .htaccess. So I decided to rip the alias apart and will host 2 separate websites and will do the translation by hand. It will take me a long time, but at least I have the translation more in my own hands 🙁 A big big thanks for all your time and effort, |
July 14, 2024 at 1:45 pm #15950235 | |
Mateus Getulio Supporter
Languages: English (English ) Portuguese (Brazil) (Português ) Timezone: America/Sao_Paulo (GMT-03:00) |
Hello Marc, I'm sorry to hear about it. The process is usually simpler but we had some troubles in the way. Good luck with the project and if you have any doubts or concerns be sure to let us know. Cheers! =) |
The topic ‘[Closed] WPML functionality’ is closed to new replies.