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

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

Assisted by: Mateus Getulio.

Author Posts
August 10, 2023 at 3:23 pm #14183869

timB-45

I get a 500 error in some random times, apparently. The error logs I can find:

Ein Fehler vom Typ E_ERROR wurde in der Zeile 3937 der Datei /home/bovuxahe/www/www.greenworlddiamonds.ch/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php verursacht. Fehlermeldung: Uncaught TypeError: Illegal offset type in isset or empty in /home/bovuxahe/www/www.greenworlddiamonds.ch/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:3937
Stack trace:
#0 /home/bovuxahe/www/www.greenworlddiamonds.ch/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 /home/bovuxahe/www/www.greenworlddiamonds.ch/wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/wpml-url-filters.class.php(445): WPML_Post_Element->is_display_as_translated()
#2 /home/bovuxahe/www/www.greenworlddiamonds.ch/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 /home/bovuxahe/www/www.greenworlddiamonds.ch/wp-includes/class-wp-hook.php(310): WPML_URL_Filters->permalink_filter('hidden link...', Object(WP_Post))
#4 /home/bovuxahe/www/www.greenworlddiamonds.ch/wp-includes/plugin.php(205): WP_Hook->apply_filters('hidden link...', Array)
#5 /home/bovuxahe/www/www.greenworlddiamonds.ch/wp-includes/link-template.php(371): apply_filters('post_type_link', 'hidden link...', Object(WP_Post), false, false)
#6 /home/bovuxahe/www/www.greenworlddiamonds.ch/wp-includes/link-template.php(201): get_post_permalink(Object(WP_Post), false, false)
#7 /home/bovuxahe/www/www.greenworlddiamonds.ch/wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php(1099): get_permalink(Object(WP_Post))
#8 /home/bovuxahe/www/www.greenworlddiamonds.ch/wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php(728): Google\Site_Kit\Core\Assets\Assets->get_product_base_paths()
#9 /home/bovuxahe/www/www.greenworlddiamonds.ch/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 /home/bovuxahe/www/www.greenworlddiamonds.ch/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 /home/bovuxahe/www/www.greenworlddiamonds.ch/wp-content/plugins/google-site-kit/includes/Core/Assets/Asset.php(129): call_user_func(Object(Closure), 'googlesitekit-b...')
#14 /home/bovuxahe/www/www.greenworlddiamonds.ch/wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php(1017): Google\Site_Kit\Core\Assets\Asset->before_print()
#15 /home/bovuxahe/www/www.greenworlddiamonds.ch/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 /home/bovuxahe/www/www.greenworlddiamonds.ch/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 /home/bovuxahe/www/www.greenworlddiamonds.ch/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 /home/bovuxahe/www/www.greenworlddiamonds.ch/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 /home/bovuxahe/www/www.greenworlddiamonds.ch/wp-includes/class-wp-hook.php(308): Google\Site_Kit\Core\Assets\Assets->Google\Site_Kit\Core\Assets\{closure}('')
#20 /home/bovuxahe/www/www.greenworlddiamonds.ch/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#21 /home/bovuxahe/www/www.greenworlddiamonds.ch/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#22 /home/bovuxahe/www/www.greenworlddiamonds.ch/wp-admin/admin-header.php(146): do_action('admin_print_scr...')
#23 /home/bovuxahe/www/www.greenworlddiamonds.ch/wp-admin/edit-form-blocks.php(309): require_once('/home/bovuxahe/...')
#24 /home/bovuxahe/www/www.greenworlddiamonds.ch/wp-admin/post.php(187): require('/home/bovuxahe/...')
#25 {main}
thrown

August 11, 2023 at 12:16 pm #14188501

Mateus Getulio
Supporter

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

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

Hi there,

Thanks for your contact!

We have received several reports of this issue. We've already 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.

August 11, 2023 at 12:25 pm #14188541

timB-45

I see, thanks then.