Vai al contenuto Vai alla barra laterale

Questo è il forum di assistenza tecnica di WPML, il plug-in multilingue di WordPress.

La sua lettura è permessa a tutti, ma la pubblicazione è riservata esclusivamente ai clienti di WPML. Il team di WPML risponde sul forum 6 giorni su 7, 22 ore su 24.

Etichettato: 

Questo ticket contiene 11 risposte, ha 0 voci.

Ultimo aggiornamento da Prosenjit Barman 2 settimana fa.

Assistito da: Sumit Singh.

Autore Post
Febbraio 9, 2026 alle 9:01 #17804086

donatoC-6

Salve, su questo sito abbiamo dei Custom Post Type "Prodotti", creati con Pods, con all'interno dei campi personalizzati, sempre creati con Pods. Usiamo Elementor Pro per impaginare il sito.
Prima di creare i campi personalizzati, i template Elementor con i CPT Prodotti si traducevano senza problemi con WPML
Quando abbiamo aggiunto i campi personalizzati e li abbiamo tradotti, le pagine dei Prodotti rispondevano con un errore critico, aggiungo qui sotto le informazioni di debug dell'errore.
Questo il link originale: link nascosto
Questa la traduzione con errore: link nascosto
Avete qualche consiglio da darci per risolvere il problema?
Grazie in anticipo.

Deprecated: Creation of dynamic property Yoast\WP\SEO\Premium\Generated\Cached_Container::$normalizedIds is deprecated in /www/deltan_444/public/wp-content/plugins/wordpress-seo-premium/src/generated/container.php on line 27

Warning: Undefined array key "reazione_al_fuoco" in /www/deltan_444/public/wp-content/plugins/elementor-pro/modules/dynamic-tags/pods/tags/pods-base.php on line 35

Fatal error: Uncaught TypeError: str_contains(): Argument #1 ($haystack) must be of type string, array given in /www/deltan_444/public/wp-includes/blocks.php:2009 Stack trace: #0 /www/deltan_444/public/wp-includes/blocks.php(2009): str_contains(Array, '<!--') #1 /www/deltan_444/public/wp-includes/formatting.php(5235): filter_block_content(Array, 'post', Array) #2 /www/deltan_444/public/wp-includes/class-wp-hook.php(341): wp_pre_kses_block_attributes(Array, 'post', Array) #3 /www/deltan_444/public/wp-includes/plugin.php(205): WP_Hook->-->apply_filters(Array, Array) #4 /www/deltan_444/public/wp-includes/kses.php(1159): apply_filters('pre_kses', Array, 'post', Array) #5 /www/deltan_444/public/wp-includes/kses.php(965): wp_kses_hook(Array, 'post', Array) #6 /www/deltan_444/public/wp-includes/kses.php(2496): wp_kses(Array, 'post') #7 /www/deltan_444/public/wp-content/plugins/elementor-pro/modules/dynamic-tags/pods/tags/pods-text.php(37): wp_kses_post(Array) #8 /www/deltan_444/public/wp-content/plugins/elementor/core/dynamic-tags/tag.php(35): ElementorPro\Modules\DynamicTags\Pods\Tags\Pods_Text->render() #9 /www/deltan_444/public/wp-content/plugins/elementor/core/dynamic-tags/manager.php(247): Elementor\Core\DynamicTags\Tag->get_content() #10 [internal function]: Elementor\Core\DynamicTags\Manager->get_tag_data_content('39752d6', 'pods-text', Array) #11 /www/deltan_444/public/wp-content/plugins/elementor/core/dynamic-tags/manager.php(102): call_user_func_array(Array, Array) #12 /www/deltan_444/public/wp-content/plugins/elementor/core/dynamic-tags/manager.php(67): Elementor\Core\DynamicTags\Manager->parse_tag_text('[elementor-tag ...', Array, Array) #13 [internal function]: Elementor\Core\DynamicTags\Manager->Elementor\Core\DynamicTags\{closure}(Array) #14 /www/deltan_444/public/wp-content/plugins/elementor/core/dynamic-tags/manager.php(66): preg_replace_callback('/\\[elementor-ta...', Object(Closure), '[elementor-tag ...') #15 /www/deltan_444/public/wp-content/plugins/elementor/includes/controls/base-data.php(91): Elementor\Core\DynamicTags\Manager->parse_tags_text('[elementor-tag ...', Array, Array) #16 /www/deltan_444/public/wp-content/plugins/elementor/includes/base/controls-stack.php(1335): Elementor\Base_Data_Control->parse_tags('[elementor-tag ...', Array) #17 /www/deltan_444/public/wp-content/plugins/elementor/includes/base/controls-stack.php(1182): Elementor\Controls_Stack->parse_dynamic_settings(Array) #18 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(315): Elementor\Controls_Stack->get_parsed_dynamic_settings() #19 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(297): Elementor\Core\Files\CSS\Post->render_element_styles(Object(Elementor\Widget_Heading)) #20 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(226): Elementor\Core\Files\CSS\Post->render_styles(Object(Elementor\Widget_Heading)) #21 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(313): Elementor\Core\Files\CSS\Post->add_controls_stack_style_rules(Object(Elementor\Includes\Elements\Container), Array, Array, Array, Array) #22 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(297): Elementor\Core\Files\CSS\Post->render_element_styles(Object(Elementor\Includes\Elements\Container)) #23 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(226): Elementor\Core\Files\CSS\Post->render_styles(Object(Elementor\Includes\Elements\Container)) #24 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(313): Elementor\Core\Files\CSS\Post->add_controls_stack_style_rules(Object(Elementor\Includes\Elements\Container), Array, Array, Array, Array) #25 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(297): Elementor\Core\Files\CSS\Post->render_element_styles(Object(Elementor\Includes\Elements\Container)) #26 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(226): Elementor\Core\Files\CSS\Post->render_styles(Object(Elementor\Includes\Elements\Container)) #27 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(313): Elementor\Core\Files\CSS\Post->add_controls_stack_style_rules(Object(Elementor\Includes\Elements\Container), Array, Array, Array, Array) #28 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(297): Elementor\Core\Files\CSS\Post->render_element_styles(Object(Elementor\Includes\Elements\Container)) #29 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(226): Elementor\Core\Files\CSS\Post->render_styles(Object(Elementor\Includes\Elements\Container)) #30 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(313): Elementor\Core\Files\CSS\Post->add_controls_stack_style_rules(Object(Elementor\Includes\Elements\Container), Array, Array, Array, Array) #31 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(297): Elementor\Core\Files\CSS\Post->render_element_styles(Object(Elementor\Includes\Elements\Container)) #32 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(178): Elementor\Core\Files\CSS\Post->render_styles(Object(Elementor\Includes\Elements\Container)) #33 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/base.php(687): Elementor\Core\Files\CSS\Post->render_css() #34 /www/deltan_444/public/wp-content/plugins/elementor/core/files/base.php(180): Elementor\Core\Files\CSS\Base->parse_content() #35 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/base.php(133): Elementor\Core\Files\Base->update_file() #36 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/base.php(229): Elementor\Core\Files\CSS\Base->update() #37 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(201): Elementor\Core\Files\CSS\Base->enqueue() #38 /www/deltan_444/public/wp-content/plugins/elementor-pro/modules/theme-builder/classes/locations-manager.php(196): Elementor\Core\Files\CSS\Post->enqueue() #39 /www/deltan_444/public/wp-includes/class-wp-hook.php(341): ElementorPro\Modules\ThemeBuilder\Classes\Locations_Manager->enqueue_styles('') #40 /www/deltan_444/public/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #41 /www/deltan_444/public/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #42 /www/deltan_444/public/wp-includes/script-loader.php(2311): do_action('wp_enqueue_scri...') #43 /www/deltan_444/public/wp-includes/class-wp-hook.php(341): wp_enqueue_scripts('') #44 /www/deltan_444/public/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #45 /www/deltan_444/public/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #46 /www/deltan_444/public/wp-includes/general-template.php(3197): do_action('wp_head') #47 /www/deltan_444/public/wp-content/themes/hello-elementor/header.php(23): wp_head() #48 /www/deltan_444/public/wp-includes/template.php(814): require_once('/www/deltan_444...') #49 /www/deltan_444/public/wp-includes/template.php(749): load_template('/www/deltan_444...', true, Array) #50 /www/deltan_444/public/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #51 /www/deltan_444/public/wp-content/themes/hello-elementor/index.php(14): get_header() #52 /www/deltan_444/public/wp-includes/template-loader.php(125): include('/www/deltan_444...') #53 /www/deltan_444/public/wp-blog-header.php(19): require_once('/www/deltan_444...') #54 /www/deltan_444/public/index.php(17): require('/www/deltan_444...') #55 {main} thrown in /www/deltan_444/public/wp-includes/blocks.php on line 2009
There has been a critical error on this website.

Febbraio 9, 2026 alle 13:47 #17805280

Sumit Singh
Sostenitore di WPML dal 12/2025

Lingue: Inglese (English )

Fuso orario: Asia/Kolkata (GMT+05:30)

Hi,

Thank you for contacting the support forum.

I speak only English if you prefer to continue in Italian only please let me know I will ask my teammates who speaks Italian.

I can see that the error is not coming directly from the WPML plugin itself, but it happens only when viewing the translation. Because of this, we will need to investigate it more closely.

It looks like some fields are either not translated correctly, not copied to the translation, or the data is getting lost during the translation process.

To check this properly, I need to request temporary access (wp-admin and FTP) to your website, preferably to a staging or test site where the issue can be reproduced. You will find the required fields below the comment area when you log in to leave your next reply. The information you provide is private and only visible to you and me.

Privacy and Security when Providing Debug Information for Support

Thanks

Febbraio 11, 2026 alle 14:37 #17813208

Sumit Singh
Sostenitore di WPML dal 12/2025

Lingue: Inglese (English )

Fuso orario: Asia/Kolkata (GMT+05:30)

Hi,

Thanks for the details, and I can clearly understand your language!

I checked the site and found the problem is coming from the Pods fields. Especially this template link nascosto

Some of the Pods fields are causing issues with the translated template, not sure why. But I can confirm the template is translated correctly.

This is the field causing the issue

[title] => Aggiungi qui il testo del titolo
                                                                                    [header_size] => span
                                                                                    [__dynamic__] => stdClass Object
                                                                                        (
                                                                                            [title] => [elementor-tag id="39752d6" name="pods-text"
.....
...

It is a complicated setup I need to make changes on the site
- Disable plugins
- Use Xdebug
- Log data flow.

To investigate this issue properly, I will need to create a copy of your site and test it in a local environment.

For this, I will temporarily install the Duplicator plugin to generate a full package of your site (files and database). This will allow me to debug the issue safely without affecting your site.

Please let me know if I have permission?

Privacy and Security when Providing Debug Information for Support

Thanks

Febbraio 11, 2026 alle 15:22 #17813430

donatoC-6

Hello, thank you for your support.
You can create a copy of the site without any problems, as long as it remains private for this purpose.
If I can help you in any way, please let me know.
I look forward to hearing from you, thank you.

Febbraio 12, 2026 alle 14:34 #17817413

Sumit Singh
Sostenitore di WPML dal 12/2025

Lingue: Inglese (English )

Fuso orario: Asia/Kolkata (GMT+05:30)

Hi,

Thanks, I checked the issue on my local copy.

I found that Pods data is not available in the English language. The reason is that the post types _pods_pod and _pods_group are set as translatable, while they should be set to Do not translate. Because of this, the data is missing in the translation and Elementor is throwing the error.

To fix this, please follow these steps carefully:

- Create a database backup (always a good practice).

- Go to WPML > Settings and set the following post types to Not Translatable:

_pods_pod

_pods_group

_pods_field

- Save the settings.

- Run the following MySQL query to remove the records created due to the incorrect settings:

DELETE FROM wp_icl_translations WHERE element_type IN ('post__pods_group', 'post__pods_pod');

- Edit this product:
/prodotti-delta2000/camera-bianca-pannello-laminato-hpl-deltawall/
and update it without making any changes. Then edit the English translation and update it as well, again without any changes.

This should fix the issue.

I can confirm that the error is resolved on my local copy. Please let me know if this also works for you.

Thanks

Febbraio 12, 2026 alle 16:10 #17817731

Sumit Singh
Sostenitore di WPML dal 12/2025

Lingue: Inglese (English )

Fuso orario: Asia/Kolkata (GMT+05:30)

hi,

You can translate the field labels in Pods by enabling the language here your-site/wp-admin/admin.php?page=pods-component-translate-pods-admin
And then you will see an option to add translation when you edit the fields.

Thanks

Febbraio 12, 2026 alle 17:30 #17818188

donatoC-6

Hi Sumit,
first of all, thank you so much for your support and patience.

I followed all your instructions faithfully, I believe correctly.
The SQL query responded that it deleted 9 rows.
I saved without modifying the product you indicated and its translation, including all Elementor templates involved in the product, but when I try to open the product in English, I always get a critical error. I am copying the debug information below.
Your access to the site should still be valid if you want to check.

Thank you again for all the time you devote to us. Please feel free to ask me for anything you need or any information you require.

==========
Deprecated: Creation of dynamic property Yoast\WP\SEO\Premium\Generated\Cached_Container::$normalizedIds is deprecated in /www/deltan_444/public/wp-content/plugins/wordpress-seo-premium/src/generated/container.php on line 27

Warning: Undefined array key "reazione_al_fuoco" in /www/deltan_444/public/wp-content/plugins/elementor-pro/modules/dynamic-tags/pods/tags/pods-base.php on line 35

Fatal error: Uncaught TypeError: str_contains(): Argument #1 ($haystack) must be of type string, array given in /www/deltan_444/public/wp-includes/blocks.php:2009 Stack trace: #0 /www/deltan_444/public/wp-includes/blocks.php(2009): str_contains(Array, '<!--') #1 /www/deltan_444/public/wp-includes/formatting.php(5235): filter_block_content(Array, 'post', Array) #2 /www/deltan_444/public/wp-includes/class-wp-hook.php(341): wp_pre_kses_block_attributes(Array, 'post', Array) #3 /www/deltan_444/public/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #4 /www/deltan_444/public/wp-includes/kses.php(1159): apply_filters('pre_kses', Array, 'post', Array) #5 /www/deltan_444/public/wp-includes/kses.php(965): wp_kses_hook(Array, 'post', Array) #6 /www/deltan_444/public/wp-includes/kses.php(2496): wp_kses(Array, 'post') #7 /www/deltan_444/public/wp-content/plugins/elementor-pro/modules/dynamic-tags/pods/tags/pods-text.php(37): wp_kses_post(Array) #8 /www/deltan_444/public/wp-content/plugins/elementor/core/dynamic-tags/tag.php(35): ElementorPro\Modules\DynamicTags\Pods\Tags\Pods_Text->render() #9 /www/deltan_444/public/wp-content/plugins/elementor/core/dynamic-tags/manager.php(247): Elementor\Core\DynamicTags\Tag->get_content() #10 [internal function]: Elementor\Core\DynamicTags\Manager->get_tag_data_content('39752d6', 'pods-text', Array) #11 /www/deltan_444/public/wp-content/plugins/elementor/core/dynamic-tags/manager.php(102): call_user_func_array(Array, Array) #12 /www/deltan_444/public/wp-content/plugins/elementor/core/dynamic-tags/manager.php(67): Elementor\Core\DynamicTags\Manager->parse_tag_text('[elementor-tag ...', Array, Array) #13 [internal function]: Elementor\Core\DynamicTags\Manager->Elementor\Core\DynamicTags\{closure}(Array) #14 /www/deltan_444/public/wp-content/plugins/elementor/core/dynamic-tags/manager.php(66): preg_replace_callback('/\\[elementor-ta...', Object(Closure), '[elementor-tag ...') #15 /www/deltan_444/public/wp-content/plugins/elementor/includes/controls/base-data.php(91): Elementor\Core\DynamicTags\Manager->parse_tags_text('[elementor-tag ...', Array, Array) #16 /www/deltan_444/public/wp-content/plugins/elementor/includes/base/controls-stack.php(1335): Elementor\Base_Data_Control->parse_tags('[elementor-tag ...', Array) #17 /www/deltan_444/public/wp-content/plugins/elementor/includes/base/controls-stack.php(1182): Elementor\Controls_Stack->parse_dynamic_settings(Array) #18 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(315): Elementor\Controls_Stack->get_parsed_dynamic_settings() #19 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(297): Elementor\Core\Files\CSS\Post->render_element_styles(Object(Elementor\Widget_Heading)) #20 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(226): Elementor\Core\Files\CSS\Post->render_styles(Object(Elementor\Widget_Heading)) #21 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(313): Elementor\Core\Files\CSS\Post->add_controls_stack_style_rules(Object(Elementor\Includes\Elements\Container), Array, Array, Array, Array) #22 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(297): Elementor\Core\Files\CSS\Post->render_element_styles(Object(Elementor\Includes\Elements\Container)) #23 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(226): Elementor\Core\Files\CSS\Post->render_styles(Object(Elementor\Includes\Elements\Container)) #24 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(313): Elementor\Core\Files\CSS\Post->add_controls_stack_style_rules(Object(Elementor\Includes\Elements\Container), Array, Array, Array, Array) #25 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(297): Elementor\Core\Files\CSS\Post->render_element_styles(Object(Elementor\Includes\Elements\Container)) #26 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(226): Elementor\Core\Files\CSS\Post->render_styles(Object(Elementor\Includes\Elements\Container)) #27 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(313): Elementor\Core\Files\CSS\Post->add_controls_stack_style_rules(Object(Elementor\Includes\Elements\Container), Array, Array, Array, Array) #28 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(297): Elementor\Core\Files\CSS\Post->render_element_styles(Object(Elementor\Includes\Elements\Container)) #29 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(226): Elementor\Core\Files\CSS\Post->render_styles(Object(Elementor\Includes\Elements\Container)) #30 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(313): Elementor\Core\Files\CSS\Post->add_controls_stack_style_rules(Object(Elementor\Includes\Elements\Container), Array, Array, Array, Array) #31 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(297): Elementor\Core\Files\CSS\Post->render_element_styles(Object(Elementor\Includes\Elements\Container)) #32 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(178): Elementor\Core\Files\CSS\Post->render_styles(Object(Elementor\Includes\Elements\Container)) #33 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/base.php(687): Elementor\Core\Files\CSS\Post->render_css() #34 /www/deltan_444/public/wp-content/plugins/elementor/core/files/base.php(180): Elementor\Core\Files\CSS\Base->parse_content() #35 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/base.php(133): Elementor\Core\Files\Base->update_file() #36 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/base.php(229): Elementor\Core\Files\CSS\Base->update() #37 /www/deltan_444/public/wp-content/plugins/elementor/core/files/css/post.php(201): Elementor\Core\Files\CSS\Base->enqueue() #38 /www/deltan_444/public/wp-content/plugins/elementor-pro/modules/theme-builder/classes/locations-manager.php(196): Elementor\Core\Files\CSS\Post->enqueue() #39 /www/deltan_444/public/wp-includes/class-wp-hook.php(341): ElementorPro\Modules\ThemeBuilder\Classes\Locations_Manager->enqueue_styles('') #40 /www/deltan_444/public/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #41 /www/deltan_444/public/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #42 /www/deltan_444/public/wp-includes/script-loader.php(2311): do_action('wp_enqueue_scri...') #43 /www/deltan_444/public/wp-includes/class-wp-hook.php(341): wp_enqueue_scripts('') #44 /www/deltan_444/public/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #45 /www/deltan_444/public/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #46 /www/deltan_444/public/wp-includes/general-template.php(3197): do_action('wp_head') #47 /www/deltan_444/public/wp-content/themes/hello-elementor/header.php(23): wp_head() #48 /www/deltan_444/public/wp-includes/template.php(814): require_once('/www/deltan_444...') #49 /www/deltan_444/public/wp-includes/template.php(749): load_template('/www/deltan_444...', true, Array) #50 /www/deltan_444/public/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #51 /www/deltan_444/public/wp-content/themes/hello-elementor/index.php(14): get_header() #52 /www/deltan_444/public/wp-includes/template-loader.php(125): include('/www/deltan_444...') #53 /www/deltan_444/public/wp-blog-header.php(19): require_once('/www/deltan_444...') #54 /www/deltan_444/public/index.php(17): require('/www/deltan_444...') #55 {main} thrown in /www/deltan_444/public/wp-includes/blocks.php on line 2009

Febbraio 12, 2026 alle 18:55 #17818458

Sumit Singh
Sostenitore di WPML dal 12/2025

Lingue: Inglese (English )

Fuso orario: Asia/Kolkata (GMT+05:30)

Hi,

I am sorry I forgot to mention that I also re-saved the pods here /wp-admin/admin.php?page=pods&action=edit&id=27591

Also, Kinsta cache is disabled on my local site, so I had to clear the cache as well. Now it works link nascosto

Thanks for being patient and kind!

Febbraio 15, 2026 alle 17:47 #17823742

donatoC-6

Thanks again for all your support. I saw your latest notes and noticed that the English pods are now working.
I'll translate a few more pods just to be on the safe side, and I hope I won't have this problem again.
I'll update you as soon as possible. Thanks, and if everything goes well, I'll close the ticket.
Thanks again.

Febbraio 16, 2026 alle 3:57 #17824092

Prosenjit Barman
Sostenitore di WPML dal 03/2023

Lingue: Inglese (English )

Fuso orario: Asia/Dhaka (GMT+06:00)

Hi there!

I hope you're doing well!

I'm Prosenjit from the WPML Dev Team – I'm stepping in to cover for Sumit today while he's away.

I'm really glad to hear that everything's working well for you now! Take all the time you need to test things out, and if anything comes up or if you have any questions along the way, just reach out. I'm right here and more than happy to help with whatever you need.

Best regards,
Prosenjit

Febbraio 16, 2026 alle 10:09 #17825066

donatoC-6

Hi Prosenjit, you are welcome.

We ran some tests and added new translations, and everything seems to be working. I'm happy about that.

I wanted to ask: is it possible to get a summary of the causes and the steps taken to resolve the issue, to better understand the problem and avoid it in the future?

Let me explain: we have another site, also using Pods, Elementor, and WPML, which has a the same problem (I think). Custom Pods fields causing errors on the translation pages.
Perhaps with the summary of causes/solutions we can solve the problem ourselves, which would also be useful for the future.

If this is not possible, can I continue to report the problem in this ticket, since the problem is similar, or do I need to open another ticket?
Thank you for your help and patience.

Febbraio 17, 2026 alle 7:21 #17827755

Prosenjit Barman
Sostenitore di WPML dal 03/2023

Lingue: Inglese (English )

Fuso orario: Asia/Dhaka (GMT+06:00)

Hi!

Of course! Although this response should clarify the problem and solution, but here is a full summary of the root cause and the steps taken to resolve it, so you can apply the same fix to your other site.

The problem was that Pods internal post types (`_pods_pod`, `_pods_group`, `_pods_field`) were incorrectly set as "translatable" in WPML. These are structural/configuration post types that define your custom fields, they should never be translated. Because WPML was treating them as translatable content, the Pods field data was not available on the translated (English) product pages. When Elementor Pro tried to render those dynamic Pods fields, it received an array instead of a string, causing the fatal `TypeError` in `str_contains()`.

Step-by-Step Fix:

1. Back up your database before making any changes.

2. Set Pods post types to "Not Translatable" in WPML:
- Go to "WPML → Settings → Custom Post Types Translation"
- Find `_pods_pod`, `_pods_group`, and `_pods_field`
- Set all three to "Do not translate"
- Save the settings

3. Run this MySQL query to remove the incorrect translation records that were already created:

DELETE FROM wp_icl_translations WHERE element_type IN ('post__pods_group', 'post__pods_pod');

4. Re-save the Pods configuration:
- Go to "wp-admin → Pods → Edit" (for each relevant Pod)
- Open the Pod and click "Save Pod" without making any changes
- This forces Pods to regenerate its field data correctly

5. Re-save the affected product and its translation:
- Open the original language product in the WordPress editor
- Click 'Update' without making any changes
- Do the same for the translated version

6. Clear all caches (server cache, Elementor CSS cache, and any hosting-level cache such as Kinsta's)

7. Verify by visiting the translated product page, it should now load correctly.

Whenever you use Pods to create Custom Post Types and custom fields alongside WPML, always check that Pods' internal post types (`_pods_pod`, `_pods_group`, `_pods_field`) are set to "Do not translate" in WPML before you start translating content. This is a one-time configuration step that prevents this entire class of errors.

Regarding your second site with the same stack, if you follow the steps above and still encounter issues, it would be best to "open a new ticket" so the problem can be investigated in its own context without confusion. However, this fix is very likely to resolve it, since the setup is identical.

Please don't hesitate to reach out if anything is unclear. Happy to help!

Best regards
Prosenjit