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 2 replies, has 2 voices.

Last updated by Mateus Getulio 1 year, 4 months ago.

Assisted by: Mateus Getulio.

Author Posts
August 1, 2023 at 9:29 am #14132067

tanelV-2

Visit the site and it says:

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.2.2
Active theme: Tanel Veenre (version 1.0.1)
Current plugin: WPML Multilingual CMS (version 4.6.4)
PHP version 8.0.28

Error Details
=============
An error of type E_ERROR was caused in line 3937 of the file /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php. Error message: Uncaught TypeError: Illegal offset type in isset or empty in /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:3937
Stack trace:
#0 /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-post-element.php(54): SitePress->is_display_as_translated_post_type(Object(WP_Error))
#1 /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/wpml-url-filters.class.php(445): WPML_Post_Element->is_display_as_translated()
#2 /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/wpml-url-filters.class.php(238): WPML_URL_Filters->is_display_as_translated_mode(Object(WPML_Post_Element))
#3 /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-includes/class-wp-hook.php(310): WPML_URL_Filters->permalink_filter('hidden link...', Object(WP_Post))
#4 /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters('hidden link...', Array)
#5 /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-includes/link-template.php(371): apply_filters('post_type_link', 'hidden link...', Object(WP_Post), false, false)
#6 /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-includes/link-template.php(201): get_post_permalink(Object(WP_Post), false, false)
#7 /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php(1099): get_permalink(Object(WP_Post))
#8 /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php(728): Google\Site_Kit\Core\Assets\Assets->get_product_base_paths()
#9 /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php(357): Google\Site_Kit\Core\Assets\Assets->get_inline_base_data()
#10 [internal function]: Google\Site_Kit\Core\Assets\Assets->Google\Site_Kit\Core\Assets\{closure}('googlesitekit-b...')
#11 /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-content/plugins/google-site-kit/includes/Core/Assets/Script_Data.php(51): call_user_func(Object(Closure), 'googlesitekit-b...')
#12 [internal function]: Google\Site_Kit\Core\Assets\Script_Data->Google\Site_Kit\Core\Assets\{closure}('googlesitekit-b...')
#13 /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-content/plugins/google-site-kit/includes/Core/Assets/Asset.php(129): call_user_func(Object(Closure), 'googlesitekit-b...')
#14 /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php(1017): Google\Site_Kit\Core\Assets\Asset->before_print()
#15 /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php(1026): Google\Site_Kit\Core\Assets\Assets->run_before_print_callbacks(Object(WP_Scripts), Array)
#16 /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php(1026): Google\Site_Kit\Core\Assets\Assets->run_before_print_callbacks(Object(WP_Scripts), Array)
#17 /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php(1026): Google\Site_Kit\Core\Assets\Assets->run_before_print_callbacks(Object(WP_Scripts), Array)
#18 /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php(156): Google\Site_Kit\Core\Assets\Assets->run_before_print_callbacks(Object(WP_Scripts), Array)
#19 /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-includes/class-wp-hook.php(308): Google\Site_Kit\Core\Assets\Assets->Google\Site_Kit\Core\Assets\{closure}('')
#20 /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#21 /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#22 /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-admin/admin-header.php(146): do_action('admin_print_scr...')
#23 /data01/virt107457/domeenid/www.tanelveenre.com/htdocs/wp-admin/index.php(137): require_once('/data01/virt107...')
#24 {main}
thrown

August 1, 2023 at 8:42 pm #14137581

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

This issue has been already reported and it is in our track. Basically this happens if you update your Site Kit by Google plugin to 1.106. We're still investigating it, and as soon as possible we will provide a fix.

In the meantime, the recommendation is to downgrade to the previous version of Google Site Kit.

Please check the errata page: https://wpml.org/errata/site-kit-by-google-uncaught-typeerror-illegal-offset-type-in-isset-or-empty-in/

Link to v1.105: hidden link

In this thread they also recommend: navigate to “WPML > Settings > Post Types” and then set the post type Products to “Translatable – only show translated items“.:

https://wordpress.org/support/topic/after-upgrade-issue-with-wpml/

If you want to also give it a try, but again, our main recommendation is to downgrade your Site Kit version for now.

Please stay tuned for our updates on this matter. Thank you.

August 7, 2023 at 2:02 pm #14164325

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thanks for your patience.

For your information, today we've released WPML 4.6.5, which includes one more check on our side to prevent this kind of error.

Therefore, in order to solve this issue, please update WPML by going to Plugins -> Add New -> Commercial tab (you might need to click on the 'check updates' button).

Or you can download it directly from here: https://wpml.org/account/downloads/, and upload into your Plugins -> Add New page (it'll overwrite the current version installed without problems).

Just make sure to have a backup before doing that.

Looking forward to your reply. Thank you.