Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:

Sitemap URLs do not show for translated ones

Solution:

It was a custom code issue. In general to troubleshoot such issues try the conflict test below:

- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Switch to the default theme such as "TwentyTwenty" by going to "WordPress Dashboard > Appearance > themes".
- Go to "WordPress Dashboard > Plugins" and deactivate all plugins except Yoast seo, WPML and WPML add-ons.
- Check if you can still recreate the issue.
- If not, re-activate your plugins one by one and check the issue each time to find out the plugin that causes the problem.

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.

Tagged: 

This topic contains 9 replies, has 2 voices.

Last updated by Christopher Amirian 1 year, 4 months ago.

Assisted by: Christopher Amirian.

Author Posts
February 20, 2024 at 8:30 am

JKJ

Hi, We're having an issue where Translated content URL's are not displayed within the sitemap, how can we solve this?

example
hidden link

should include
hidden link

but only has the english version
hidden link

February 20, 2024 at 9:20 am
February 20, 2024 at 3:05 pm #15323656

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

The website copy is in process and most probably tomorrow we will have a report.

Thanks.

February 21, 2024 at 3:08 pm #15328969

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

We used the cloudways plugin to copy the website to Cloudways and the result was successful for the move.

But unfortunatelythe front end does not work and the backend admin also does not accept the login information:

hidden link

I am not sure why this is happening.

Then I tried to install the Duplicator Pro p[lugin and used that to create a Copy of the website and it failed (please check the screenshot)

I wonder if there is a way that you could provide us with the copy of the website that works and we can install on the local system so we can report the issue to the second tier support.

thanks,.

Screenshot 2024-02-21 at 19.08.07.png
February 23, 2024 at 10:01 am #15336852

JKJ

Hi Thanks for your message. We could provide a .zip file containing file and db structure if that would help? Please let me know to which e-mail we should send this.

February 24, 2024 at 9:16 am
March 1, 2024 at 7:50 am #15361187

JKJ

Thanks for providing the details. I have shared a GDrive with the site file and DB .sql file.

March 3, 2024 at 4:56 pm #15367041

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Thank you. The issue us reported to the second tier support.

We might ask you to share the links of the website files and DB with another email.

I will get back to you as soon as I have news

March 6, 2024 at 1:26 pm
March 8, 2024 at 9:49 am #15388097

JKJ

Hi, i have provided a new tar in the same gdrive folder with the site files excluding the uploads folder

The CPT Events can be found in app/code/src/post-types/events/

March 8, 2024 at 9:54 am #15388144

JKJ

Also provided SFTP credentials in de GDrive folder, it is a production site so please be careful.

March 9, 2024 at 2:19 pm #15391525

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Thank you very much. Informed the second-tier support.

I will get back to you as soon as I have an answer.

Thanks.

March 13, 2024 at 6:27 am #15402057

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

I have an answer from the second tier:

This is roots.io setup and took me time to setup with lot of adjustment.

So the code is actually coming from \web\app\code and this is loaded from MU plugin 10000-dwd-toolkit all this code is custom.
That's why the issue was still there in minimal.

In web\app\code\src\post-types\events\class-events.php there is hook causing this issue

add_filter( 'post_type_link', [ $this, 'change_permalink_old_events' ], 10, 3 );

If I comment out the issue is fixed.

This is all we can do, I am not sure why this hook is added and what it is doing. They can check this code and fix this.

As mentioned by the second-tier support this is all we can do as the issue is caused by a custom code.

Thanks.

March 13, 2024 at 9:15 am #15402622

JKJ

Thanks, we have made adjustments to the code and it's working as expected now