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.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Waqas Bin Hasan 1 year, 11 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
July 31, 2023 at 2:34 pm #14128301

robA-8

Question 1:
I'm trying to make sure that the description field (the main content) is not translatable. This must always remain the same as the main language. I can't find this option anywhere.

I can't find any documentation for this specific question.

I am currently trying it on: hidden link

---

Question 2:

I am trying to create a sitemap using YoastSEO for my translated website. My translated website is hidden link . And my main site is hidden link . Is there a separate sitemap for that? Or do you have some kind of integration option?

---

Question 3/ BUG:
FATAL ERROR: See screenshot.

I can fix it by editing this line:
/woocommerce-multilingual/inc/translation-editor/class-wcml-editor-ui-product-job.php
LINE: 603
FROM:
if ( $custom_fields ) {
TO:
if ( $custom_fields && is_array($custom_fields) ) {

Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, string given in /home/tuinhout/domains/tuinhout-compleet.nl/public_html/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-editor-ui-product-job.php:610 Stack trace: #0 /home/tuinhout/domains/tuinhout-compleet.nl/public_html/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-editor-ui-product-job.php(610): array_filter() #1 /home/tuinhout/domains/tuinhout-compleet.nl/public_html/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-editor-ui-product-job.php(488): WCML_Editor_UI_Product_Job->add_custom_field_to_element_data() #2 /home/tuinhout/domains/tuinhout-compleet.nl/public_html/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-editor-ui-product-job.php(84): WCML_Editor_UI_Product_Job->get_data() #3 /home/tuinhout/domains/tuinhout-compleet.nl/public_html/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-translation-editor.php(53): WCML_Editor_UI_Product_Job->__construct() #4 /home/tuinhout/domains/tuinhout-compleet.nl/public_html/wp-includes/class-wp-hook.php(308): WCML_Translation_Editor->fetch_translation_job_for_editor() #5 /home/tuinhout/domains/tuinhout-compleet.nl/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #6 /home/tuinhout/domains/tuinhout-compleet.nl/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-editor/class-wpml-translation-editor-ui.php(342): apply_filters() #7 /home/tuinhout/domains/tuinhout-compleet.nl/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-editor/class-wpml-translation-editor-ui.php(185): WPML_Translation_Editor_UI->filter_the_model() #8 /home/tuinhout/domains/tuinhout-compleet.nl/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-editor/class-wpml-translation-editor-ui.php(91): WPML_Translation_Editor_UI->output_model() #9 /home/tuinhout/domains/tuinhout-compleet.nl/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-queue/class-wpml-translations-queue.php(78): WPML_Translation_Editor_UI->render() #10 /home/tuinhout/domains/tuinhout-compleet.nl/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/class-wpml-translation-management.php(379): WPML_Translations_Queue->display() #11 /home/tuinhout/domains/tuinhout-compleet.nl/public_html/wp-includes/class-wp-hook.php(308): WPML_Translation_Management->translation_queue_page() #12 /home/tuinhout/domains/tuinhout-compleet.nl/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #13 /home/tuinhout/domains/tuinhout-compleet.nl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #14 /home/tuinhout/domains/tuinhout-compleet.nl/public_html/wp-admin/admin.php(259): do_action() #15 {main} thrown in /home/tuinhout/domains/tuinhout-compleet.nl/public_html/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-editor-ui-product-job.php on line 610

fatal-error.png
August 1, 2023 at 9:09 am #14131791

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Rob,

Thank you for contacting the support.

Question 1:
I'm trying to make sure that the description field (the main content) is not translatable. This must always remain the same as the main language. I can't find this option anywhere.

Unfortunately that's not possible, because the entire post type (with standard post fields) are translated. The only way is, once you've automatically translated it, then edit the translation manually and change the content in that area.

If these are custom fields, then you can set these to suit your needs. See https://wpml.org/documentation/getting-started-guide/translating-custom-fields/ for details.

For the other questions, I recommend opening a separate ticket because as per forum policy we can only handle one issue per ticket. So others looking for a particular solution can find it easily.

Regards.

August 1, 2023 at 9:49 am #14132597

robA-8

Hi Waqas,

Thanks for your awnser that makes it more clear.

I've created a new support ticket for the fatal error: https://wpml.org/forums/topic/fatal-error-woocommerce-multilingual-editing-products-via-wpml-woocommerce/

So that issue can be removed from the main content of my question above ( I can't edit this anymore ).

But because I can only open 2 tickets at the same time, I can't open the ticket for my second question now...

So how long do I need to wait before I can open a new ticket for my second question. And I hope I can get helped quickly with the fatal error I posted.

Thanks.
Rob

August 1, 2023 at 12:50 pm #14134405

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the understanding.

I'm closing this ticket as resolve and then most probably you'll be able to open a new one. Or you can contact on the chat for faster support.