Skip Navigation

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

Problem:
If you're experiencing a TypeError with the message 'Illegal offset type in isset or empty' on your site, it might be due to a conflict between WPML and the latest version of the Site Kit by Google plugin.
Solution:
We recommend downgrading to the previous version of the Site Kit by Google plugin (1.105) after ensuring you have a full site backup. This issue is currently under investigation by our developers. For more details, please check the known issue here: https://wpml.org/errata/site-kit-by-google-uncaught-typeerror-illegal-offset-type-in-isset-or-empty-in/.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you need further assistance, please open a new support ticket.

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

Last updated by Bigul 1 year, 5 months ago.

Assisted by: Bigul.

Author Posts
August 1, 2023 at 10:11 pm #14137941

juanM-57

I found this problem in my site:

Se ha producido un error del tipo E_ERROR en la línea 3937 del archivo /home/produnca/domains/produncan.cl/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php. Mensaje de error: Uncaught TypeError: Illegal offset type in isset or empty in /home/produnca/domains/produncan.cl/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:3937 Stack trace: #0 /home/produnca/domains/produncan.cl/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-post-element.php(54): SitePress->is_display_as_translated_post_type() #1 /home/produnca/domains/produncan.cl/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/wpml-url-filters.class.php(445): WPML_Post_Element->is_display_as_translated() #2 /home/produnca/domains/produncan.cl/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/wpml-url-filters.class.php(238): WPML_URL_Filters->is_display_as_translated_mode() #3 /home/produnca/domains/produncan.cl/public_html/wp-includes/class-wp-hook.php(310): WPML_URL_Filters->permalink_filter() #4 /home/produnca/domains/produncan.cl/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #5 /home/produnca/domains/produncan.cl/public_html/wp-includes/link-template.php(371): apply_filters() #6 /home/produnca/domains/produncan.cl/public_html/wp-includes/link-template.php(201): get_post_permalink() #7 /home/produnca/domains/produncan.cl/public_html/wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php(1099): get_permalink() #8 /home/produnca/domains/produncan.cl/public_html/wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php(728): Google\Site_Kit\Core\Assets\Assets->get_product_base_paths() #9 /home/produnca/domains/produncan.cl/public_html/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}() #11 /home/produnca/domains/produncan.cl/public_html/wp-content/plugins/google-site-kit/includes/Core/Assets/Script_Data.php(51): call_user_func() #12 [internal function]: Google\Site_Kit\Core\Assets\Script_Data->Google\Site_Kit\Core\Assets\{closure}() #13 /home/produnca/domains/produncan.cl/public_html/wp-content/plugins/google-site-kit/includes/Core/Assets/Asset.php(129): call_user_func() #14 /home/produnca/domains/produncan.cl/public_html/wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php(1017): Google\Site_Kit\Core\Assets\Asset->before_print() #15 /home/produnca/domains/produncan.cl/public_html/wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php(1026): Google\Site_Kit\Core\Assets\Assets->run_before_print_callbacks() #16 /home/produnca/domains/produncan.cl/public_html/wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php(1026): Google\Site_Kit\Core\Assets\Assets->run_before_print_callbacks() #17 /home/produnca/domains/produncan.cl/public_html/wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php(1026): Google\Site_Kit\Core\Assets\Assets->run_before_print_callbacks() #18 /home/produnca/domains/produncan.cl/public_html/wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php(156): Google\Site_Kit\Core\Assets\Assets->run_before_print_callbacks() #19 /home/produnca/domains/produncan.cl/public_html/wp-includes/class-wp-hook.php(308): Google\Site_Kit\Core\Assets\Assets->Google\Site_Kit\Core\Assets\{closure}() #20 /home/produnca/domains/produncan.cl/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #21 /home/produnca/domains/produncan.cl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #22 /home/produnca/domains/produncan.cl/public_html/wp-admin/admin-header.php(146): do_action() #23 /home/produnca/domains/produncan.cl/public_html/wp-admin/index.php(137): require_once('/home/produnca/...') #24 {main} thrown

August 2, 2023 at 7:38 am #14139581

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

This may be related to the following known issue. It seems to be a conflict issue between WPML and the latest version of the Site Kit by Google plugin. We got a few reports from other clients with the same error.

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

Our developers are investigating this issue. In the meantime, please consider downgrading to the previous Site Kit by Google(1.105) after a full site backup.

--
Thanks!

Bigul