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 |
---|---|---|---|---|---|---|
- | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - |
- | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - |
Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)
Tagged: Bug
This topic contains 12 replies, has 3 voices.
Last updated by Long Nguyen 1 year ago.
Assisted by: Long Nguyen.
Author | Posts |
---|---|
May 6, 2024 at 12:01 pm #15597151 | |
gabrielS-32 |
hidden link However, for belgium site, it create a redirection loop weither we have a root page or not. hidden link should redirect to hidden link Instead, we get an error for root page we have created root template redirect to detect, that redirect should happen. but isse stay when we set this permalink setting even without setting root template. it should open 404 in this case (I did test this behavior on another sites). I did recreate /be site from scratch and issue stay, so WMPL doesn"t like multisites with subfolder /be 😀 I also tried to use the plugin "redirection" which worked, how can I make this work without this plugin the same it works for other sites in the network ? |
May 8, 2024 at 1:42 am #15604019 | |
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the staging website to investigate this issue further. You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it. IMPORTANT The private response form looks like this: Next time you reply, click "I still need assistance." Video: Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form. Best regards |
May 10, 2024 at 4:08 am #15612531 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi Gabriel, Thank you for contacting WPML support, I’m happy to help you with this issue. I notice that if I turn off the option "Use directory for default language" on the subsite hidden link the homepage is displayed as well. If I enable that option with a blank root page, no redirection, the issue still persists. However, the issue doesn't happen with other subsites. I suggest you enable a minimal environment as below and see if it helps: Looking forward to your reply. |
May 13, 2024 at 3:39 pm #15621762 | |
gabrielS-32 |
Hello! Issue still here... |
May 14, 2024 at 4:33 am #15623178 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, I'm discussing this issue with our 2nd tier support. I will update you here when I have something to share. Thanks. |
May 14, 2024 at 10:01 am #15624647 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Can you please share the Nginx configuration rule? You can contact your hosting support and ask them to provide it. Thanks. |
May 15, 2024 at 9:16 am #15628811 | |
gabrielS-32 |
Hello there, Here is config archive provided by our DevOps team: |
May 16, 2024 at 1:52 am #15632561 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
I've shared it with our 2nd tier support to check the configuration. I will let you know once I have any information. Thanks. |
May 21, 2024 at 4:29 am #15647851 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, There is a workaround to fix the issue and we've applied it on your site. Now the subsite /be/ works properly. Please check this and let me know how it goes. - Edit the file wp-content/plugins/sitepress-multilingual-cms/classes/request-handling/redirection/wpml-rootpage-redirect-by-subdir.class.php - Around line 25, change the code from: $target = $target ? $target : ( ( $filtered_root_url = $wpml_url_filters->filter_root_permalink( wpml_strip_subdir_from_url( site_url() ) . $request_uri ) ) !== wpml_strip_subdir_from_url( site_url() ) . $request_uri ? $filtered_root_url : false ); if ( $target === false ) { $this->maybe_setup_rootpage(); } to this one: $target = $target ? $target : ( ( $filtered_root_url = $wpml_url_filters->filter_root_permalink( wpml_strip_subdir_from_url( site_url() ) . $request_uri ) ) !== wpml_strip_subdir_from_url( site_url() ) . $request_uri ? $filtered_root_url : false ); if ($target == $filtered_root_url) { $target = false; } if ( $target === false ) { $this->maybe_setup_rootpage(); } - Edit the subsite and change the site, home URLs from hidden link to hidden link (remove the last slash). Looking forward to your reply. |
May 23, 2024 at 10:32 am #15662149 | |
gabrielS-32 |
Hello there! Just letting you know, the code snippet you shared helped to resolve the issue - redirect from /be to /be/nl works as expected! |
May 24, 2024 at 1:26 am #15665408 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Thanks for your confirmation. Feel free to contact us again if you have any questions. |
May 24, 2024 at 6:15 am #15665665 | |
gabrielS-32 |
Latest question here: as this is core update right in the plugin - we can not release the site this way. When can we expect this fix to be released? |
May 24, 2024 at 6:58 am #15665735 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
This issue has been escalated to our development team. You can use the workaround on your live site until there is an update that includes the fix for this. I will update you here when I have any information. Thanks. |