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.

No supporters are available to work today on this forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by Kor 2 days, 4 hours ago.

Assisted by: Kor.

Author Posts
September 26, 2024 at 4:52 pm

lucap-5

Background of the issue:
Today the website hidden link crashed. We switched to a previous backup stored in Siteground from 7 days before, but the website is still down. Apparently there is an issue with the String Translation plugin. We have uploaded it manually again, but nothing changes.

Symptoms:
Website is down, suspected issue with the String Translation plugin.

These are the errors:
Fatal error: Uncaught Error: Call to a member function get_language_codes() on bool in /home/customer/www/raypa.com/public_html/wp-content/plugins/wpml-string-translation/classes/slug-translation/class-wpml-slug-translation-records.php:233 Stack trace: #0 /home/customer/www/raypa.com/public_html/wp-content/plugins/wpml-string-translation/classes/slug-translation/class-wpml-slug-translation.php(226): WPML_Slug_Translation_Records->get_all_slug_translations(Array) #1 /home/customer/www/raypa.com/public_html/wp-content/plugins/wpml-string-translation/classes/slug-translation/class-wpml-slug-translation.php(269): WPML_Slug_Translation->get_all_post_slug_translations() #2 /home/customer/www/raypa.com/public_html/wp-includes/class-wp-hook.php(324): WPML_Slug_Translation->filter_pre_get_posts(Object(WP_Query)) #3 /home/customer/www/raypa.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #4 /home/customer/www/raypa.com/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array) #5 /home/customer/www/raypa.com/public_html/wp-includes/class-wp-query.php(1881): do_action_ref_array('pre_get_posts', Array) #6 /home/customer/www/raypa.com/public_html/wp-includes/class-wp-query.php(3852): WP_Query->get_posts() #7 /home/customer/www/raypa.com/public_html/wp-includes/post.php(2539): WP_Query->query(Array) #8 /home/customer/www/raypa.com/public_html/wp-content/plugins/smart-post-show-pro/admin/GutenbergBlock/class-smart-post-show-pro-gutenberg-block-init.php(71): get_posts(Array) #9 /home/customer/www/raypa.com/public_html/wp-content/plugins/smart-post-show-pro/admin/GutenbergBlock/class-smart-post-show-pro-gutenberg-block-init.php(107): Smart_Post_Show_Pro_Gutenberg_Block_Init->spsp_post_list() #10 /home/customer/www/raypa.com/public_html/wp-includes/class-wp-hook.php(324): Smart_Post_Show_Pro_Gutenberg_Block_Init->spsp_gutenberg_shortcode_block('') #11 /home/customer/www/raypa.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #12 /home/customer/www/raypa.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #13 /home/customer/www/raypa.com/public_html/wp-settings.php(700): do_action('init') #14 /home/customer/www/raypa.com/public_html/wp-config.php(110): require_once('/home/customer/...') #15 /home/customer/www/raypa.com/public_html/wp-load.php(50): require_once('/home/customer/...') #16 /home/customer/www/raypa.com/public_html/wp-blog-header.php(13): require_once('/home/customer/...') #17 /home/customer/www/raypa.com/public_html/index.php(17): require('/home/customer/...') #18 {main} thrown in /home/customer/www/raypa.com/public_html/wp-content/plugins/wpml-string-translation/classes/slug-translation/class-wpml-slug-translation-records.php on line 233

Questions:
Maybe you can help me identify the problem?

September 26, 2024 at 5:01 pm
September 26, 2024 at 5:31 pm #16226952

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your response.

I’ve temporarily removed the String Translation Plugin, but I’m still encountering a “504 Gateway Timeout” error when trying to access your website. It seems that a third-party plugin might be using up your server’s memory resources. Could you please contact your hosting provider to investigate this issue?

Screenshot_105.png
September 26, 2024 at 9:51 pm #16227592

lucap-5

I have removed every single plugin and then reactivated one by one. Everything went smoothly and without errors. Until I reactivated the last one, String Translation. And the web crashed once again.

It seems that the plugin Smart Post Show make String Translation crash. It's weird, since the two have been getting along fine for months... And none of the two has had any update recently...

Fatal error: Uncaught Error: Call to a member function get_language_codes() on bool in /home/customer/www/raypa.com/public_html/wp-content/plugins/wpml-string-translation/classes/slug-translation/class-wpml-slug-translation-records.php:233 Stack trace: #0 /home/customer/www/raypa.com/public_html/wp-content/plugins/wpml-string-translation/classes/slug-translation/class-wpml-slug-translation.php(226): WPML_Slug_Translation_Records->get_all_slug_translations(Array) #1 /home/customer/www/raypa.com/public_html/wp-content/plugins/wpml-string-translation/classes/slug-translation/class-wpml-slug-translation.php(269): WPML_Slug_Translation->get_all_post_slug_translations() #2 /home/customer/www/raypa.com/public_html/wp-includes/class-wp-hook.php(324): WPML_Slug_Translation->filter_pre_get_posts(Object(WP_Query)) #3 /home/customer/www/raypa.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #4 /home/customer/www/raypa.com/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array) #5 /home/customer/www/raypa.com/public_html/wp-includes/class-wp-query.php(1881): do_action_ref_array('pre_get_posts', Array) #6 /home/customer/www/raypa.com/public_html/wp-includes/class-wp-query.php(3852): WP_Query->get_posts() #7 /home/customer/www/raypa.com/public_html/wp-includes/post.php(2539): WP_Query->query(Array) #8 /home/customer/www/raypa.com/public_html/wp-content/plugins/smart-post-show-pro/admin/GutenbergBlock/class-smart-post-show-pro-gutenberg-block-init.php(71): get_posts(Array) #9 /home/customer/www/raypa.com/public_html/wp-content/plugins/smart-post-show-pro/admin/GutenbergBlock/class-smart-post-show-pro-gutenberg-block-init.php(107): Smart_Post_Show_Pro_Gutenberg_Block_Init->spsp_post_list() #10 /home/customer/www/raypa.com/public_html/wp-includes/class-wp-hook.php(324): Smart_Post_Show_Pro_Gutenberg_Block_Init->spsp_gutenberg_shortcode_block('') #11 /home/customer/www/raypa.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #12 /home/customer/www/raypa.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #13 /home/customer/www/raypa.com/public_html/wp-settings.php(700): do_action('init') #14 /home/customer/www/raypa.com/public_html/wp-config.php(111): require_once('/home/customer/...') #15 /home/customer/www/raypa.com/public_html/wp-load.php(50): require_once('/home/customer/...') #16 /home/customer/www/raypa.com/public_html/wp-admin/admin.php(34): require_once('/home/customer/...') #17 /home/customer/www/raypa.com/public_html/wp-admin/plugins.php(10): require_once('/home/customer/...') #18 {main} thrown in /home/customer/www/raypa.com/public_html/wp-content/plugins/wpml-string-translation/classes/slug-translation/class-wpml-slug-translation-records.php on line 233

September 27, 2024 at 10:17 am #16229356

lucap-5

From what I am seeing, part of the reason why the web crashes are the high number of autoloaded options.

some of those are WPML related. I wonder if I can turn them off safely?

I attach a screenshot of what the AAA Option Optimizer plugin is telling.

Can I create an option with value=false for wpml_registered_endpoints options?Can I remove the autoload for wpml_strings_need_links_fixed ?

Screenshot 2024-09-27 at 12.12.07.png
Screenshot 2024-09-27 at 12.11.59.png
September 27, 2024 at 10:37 am #16229457

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. Could you please share your Website WP admin access here again? Also, can I have your permission to copy this "Smart Post Show" plugin so that I could test it on my dev site?