Skip Navigation

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

Problem:
The client was experiencing issues with WPML not replicating designs correctly across translations, affecting page layouts, post types, and typography settings. Specifically, there were problems with 'concert' postcards not displaying correctly due to conditional logic based on term IDs, and global typography settings not being carried over in translations.

Solution:
1. We recommended comparing the original and translated versions of the 'concert' postcards to identify any discrepancies in settings or options.
2. We advised correcting the category ID for the English language postcard, as WPML does not automatically register the translated term ID used in Avada's conditional logic.
3. We confirmed that switching to the 'WordPress Editor' would require sticking with it, as switching back to the WPML Editor would necessitate re-translating the entire page.
4. For the Avada options, we provided a link to the documentation on using WPML with the Avada theme: https://wpml.org/documentation/theme-compatibility/using-wpml-with-the-avada-theme/#setting-theme-options
5. To address a critical error on a specific page, we suggested performing a backup, permanently deleting the English language page, and re-translating it from Dutch.

If this solution does not seem relevant to your issue, please do not hesitate to open a new support ticket with us: WPML support forum.

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.

No supporters are available to work today on this forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Tagged: 

This topic contains 41 replies, has 2 voices.

Last updated by Kor 11 months, 3 weeks ago.

Assisted by: Kor.

Author Posts
November 21, 2023 at 8:53 am #14883545

frisoV-2

One more thing, that is really critical to get done today: there is a critical error on artist pages. hidden link

The layout has been set to all artists (see screenshot) and I've translated everything using the WPML advanced translator. What is happening?

Screenshot 2023-11-21 at 09.51.00.png
November 21, 2023 at 1:54 pm #14887511

Kor
Supporter

Languages: English (English )

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

Thanks for your reply.

Let's solve this critical error first on this page. I've edited the page hidden link and it looks broken. Could you perform a backup and permanently delete this English language page? Then, re-translate it from Dutch again and see if it fixes it.

I will look into your previous reply.

November 21, 2023 at 2:21 pm #14887793

frisoV-2

Woah that is weird. I used the WPML advanced editor to translate, so I didn't see these errors. I will remove the translations for all of those pages, and re-do them with the WPML editor, see if that helps.

November 21, 2023 at 2:27 pm #14887909

frisoV-2

Goodness that fixed it!!!! 🎉🎉🎉🎉🎉 Thank you! I suspect the same issue with the concert pages. I will go ahead and re-do those too.

November 21, 2023 at 2:59 pm #14888267

frisoV-2

Hi Kor, unfortunately the same treatment didn't fix the concert pages. There is a similar error on those pages: hidden link

Screenshot 2023-11-21 at 15.58.23.png
November 21, 2023 at 3:33 pm #14888681

Kor
Supporter

Languages: English (English )

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

Ok, it should be working fine now. Please check.

November 21, 2023 at 4:16 pm #14889071

frisoV-2

Concert pages look good now. I now see another critical error on the news posts hidden link
This was not there earlier today. I can try the same method again. But what is causing these errors?

Screenshot 2023-11-21 at 17.16.02.png
November 21, 2023 at 4:43 pm #14889351

Kor
Supporter

Languages: English (English )

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

Thanks for your reply.

It looks like a database issue based on the error message. Yes, please try the method I shared earlier to fix this. Let me know how it goes.

[21-Nov-2023 16:39:17 UTC] PHP Fatal error:  Uncaught Error: Object of class WP_Post could not be converted to string in /home/customer/www/staging13.worldmasterpianists.nl/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php:225
Stack trace:
#0 /home/customer/www/staging13.worldmasterpianists.nl/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php(225): array_diff(Array, Array)
#1 /home/customer/www/staging13.worldmasterpianists.nl/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/class-wpml-query-parser.php(551): WPML_Element_Translation->prefetch_ids(Array)
#2 /home/customer/www/staging13.worldmasterpianists.nl/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/class-wpml-query-parser.php(444): WPML_Query_Parser->adjust_q_var_pids(Object(WP_Query), Array, 'post__in')
#3 /home/customer/www/staging13.worldmasterpianists.nl/public_html/wp-content/plugins in /home/customer/www/staging13.worldmasterpianists.nl/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 225
November 21, 2023 at 7:31 pm #14890589

frisoV-2

Was able to fix the news posts.. Now on to the concert pages?
Here's an example hidden link.

These concert pages consist of a few sections: Introduction, videos, concert programme, an artist post card which links to the corresponding artist page and down below venue information (which consists of 2 post cards).

These post cards are based on ACF relationships. Only the post card of the related location or artist should be shown. This works correctly in the original language, Dutch.

The layout is located here: hidden link It was translated using the WPML advanced editor.

Screenshot 2023-11-21 at 20.25.10.png
November 21, 2023 at 7:32 pm #14890623

frisoV-2

This is where those postcards are located in the layout

Screenshot 2023-11-21 at 20.29.34.png
November 21, 2023 at 7:33 pm #14890653

frisoV-2

These are the post cards in question
hidden link
hidden link
hidden link

November 21, 2023 at 7:45 pm #14890677

Kor
Supporter

Languages: English (English )

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

Thanks for your reply.

Ok, I will check on this. For your next question, I will have to split it into a new ticket as per our support policy. I am only allowed to handle a single issue per ticket and I hope you understand.

Continuing with one issue per ticket helps not only supporters to focus on one issue at once, but also enables other users to find solutions to their questions faster.

I will come back to you as quickly as possible.

November 21, 2023 at 10:25 pm #14891657

frisoV-2

Okay, no problem

November 22, 2023 at 3:37 pm #14900441

frisoV-2

Hi Kor, I see you're working on the website. You might like to know I received a fatal error message from wordpress in my email:
Current plugin: Advanced Custom Fields PRO (version 6.2.3)
PHP version 7.4.33

Error Details
=============
An error of type E_ERROR was caused in line 73 of the file /home/customer/www/staging13.worldmasterpianists.nl/public_html/wp-content/plugins/advanced-custom-fields-pro/includes/acf-bidirectional-functions.php. Error message: Uncaught Error: Object of class WP_Post could not be converted to string in /home/customer/www/staging13.worldmasterpianists.nl/public_html/wp-content/plugins/advanced-custom-fields-pro/includes/acf-bidirectional-functions.php:73
Stack trace:
#0 /home/customer/www/staging13.worldmasterpianists.nl/public_html/wp-content/plugins/advanced-custom-fields-pro/includes/acf-bidirectional-functions.php(73): array_unique(Array)
#1 /home/customer/www/staging13.worldmasterpianists.nl/public_html/wp-content/plugins/advanced-custom-fields-pro/includes/fields/class-acf-field-relationship.php(836): acf_update_bidirectional_values(Array, 11678, Array)
#2 /home/customer/www/staging13.worldmasterpianists.nl/public_html/wp-includes/class-wp-hook.php(326): acf_field_relationship->update_value(Array, 11678, Array)
#3 /home/customer/www/staging13.worldmasterpianists.nl/public_html/wp-includes/plugin.php(256): WP_Hook->apply_filters(Array, Array)
#4 /home/customer/www/staging13.worldmasterpianists.nl/public_html/wp-content/plugins/a

November 22, 2023 at 3:39 pm #14900455

Kor
Supporter

Languages: English (English )

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

Thanks for letting me know.

I'm still checking on it.