Skip Navigation

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.

Our next available supporter will start replying to tickets in about 6.52 hours from now. Thank you for your understanding.

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: Asia/Singapore (GMT+08:00)

Tagged: 

This topic contains 13 replies, has 2 voices.

Last updated by Kor 4 months, 1 week ago.

Assisted by: Kor.

Author Posts
November 21, 2023 at 10:05 pm #14891443

hannesK-3

I am trying to
make again that the English imprint shows its own English content.

Link to a page where the issue can be seen:
hidden link

I expected to see:
The english imprint page hidden link should show its own english content

Instead, I got:
The english imprint page hidden link shows the content from the german page hidden link

In Cornerstone from Pro theme I see the right english content, but on the frontend page I see the German content.

Please see screenshots.

Bildschirmfoto 2023-11-21 um 23.01.43.png
Bildschirmfoto 2023-11-21 um 22.59.55.png
Bildschirmfoto 2023-11-21 um 22.59.04.png
Bildschirmfoto 2023-11-21 um 22.57.20.png
November 22, 2023 at 7:28 pm #14902231

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Hi there,

Thanks for contacting WPML support.

I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

November 27, 2023 at 9:18 am #14928175

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

We apologize for the inconvenience, but in order to proceed with troubleshooting, we kindly request a site snapshot. Alternatively, with your permission, we can create a snapshot on our own.

For this purpose, we typically recommend using the free plugin "Duplicator." If you are already familiar with how Duplicator works ( https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.

To assist you further, please follow these instructions:
Watch the Duplicator instructions video: hidden link

Refer to the instructions provided by WPML on how to provide supporters a copy of your site: https://wpml.org/faq/provide-supporters-copy-site/

If the archive file exceeds 400MB in size, please utilize Duplicator's file filters to exclude the cache, wp-uploads directory, media, and archive files.

Once you have the archive file, please share the link with us. You can use services such as Google Drive, Dropbox, or similar platforms as the snapshot file will likely be large.

Please note that your next reply will be private, visible only to you and me. You can paste the link to the file there. Rest assured that once the issue is resolved, I will delete the local site.

November 28, 2023 at 9:03 pm #14944639

hannesK-3

I give you permission to create a snapshot on your own by deleting it afterwards. I look forward to the answer.

December 1, 2023 at 10:55 am #14971585

hannesK-3

I have given 1GB more space!

December 4, 2023 at 8:04 pm #14991311

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for being patient.

I'm sorry for the delay over the weekend. I have a copy of the website, and I will conduct a thorough troubleshooting process. I will get back to you as soon as possible.

December 5, 2023 at 7:53 pm #15002513

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

I've checked and it seems to work fine when I deactivated the "WPML Media" plugin. hidden link . Please allow me to check with our 2nd Tier Support for this and I will come back to you once I've feedback.

December 6, 2023 at 10:04 am #15005911

hannesK-3

Thank you, all right!

December 21, 2023 at 3:19 pm #15111683

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

Please refer to the workaround below for a temporary fix.

Workaround

Edit file wp-content\plugins\cornerstone\includes\classes\Services\FrontEnd.php (For Pro theme path could be different as CS builder is embedded in the theme e.g. wp-content\themes\pro\cornerstone\includes\classes\Services\FrontEnd.php)
go to line number 88 and replace

$content = $this->render_the_content_cached($_p, $content);

with

$_p = apply_filters( 'wpml_object_id', $_p, get_post_type($_p), true );
$content = $this->render_the_content_cached($_p, $content);

Please let me know if this works.

December 22, 2023 at 2:51 pm #15118677

hannesK-3

Thank you.
I have done the code change.
Now it seems to work.
As you know, on the next update of Pro theme the change will be overwritten.
When there will be a right fix for this?
Kind regards,
Hannes

December 22, 2023 at 3:00 pm #15119299

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Our devs will share the fix with x theme developers.

December 22, 2023 at 3:05 pm #15119305

hannesK-3

OK thank you.
Have a wonderful time!

December 22, 2023 at 3:06 pm #15119309

hannesK-3

Shall I set this thread to resolved?
Will you send me a message once you have fixed it with the theme developers?

December 22, 2023 at 3:07 pm #15119351

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. You can follow up here https://wpml.org/errata/cornerstone-translation-is-not-displayed-on-front-end-when-using-ate-or-cte/

The topic ‘[Closed] English page shows german content’ is closed to new replies.