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.

This topic contains 17 replies, has 2 voices.

Last updated by shiong-gauC-2 1 year, 7 months ago.

Assisted by: Kor.

Author Posts
June 24, 2023 at 4:10 am #13887993

shiong-gauC-2

I am trying to:
Load the Chinese site but instead WordPress crashes

Link to a page where the issue can be seen:
hidden link
(I have disabled the Chinese site from the public but you can still click on the link above)

I expected to see:
The Chinese site loaded

Instead, I got:
Error 500

Error message:
[24-Jun-2023 04:05:45 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_404_util() on null in /home/littlepr/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/class-wpml-query-parser.php:505
Stack trace:
#0 /home/littlepr/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/class-wpml-query-parser.php(380): WPML_Query_Parser->maybe_adjust_name_var(Object(WP_Query))
#1 /home/littlepr/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(3411): WPML_Query_Parser->parse_query(Object(WP_Query))
#2 /home/littlepr/public_html/wp-includes/class-wp-hook.php(308): SitePress->parse_query(Object(WP_Query))
#3 /home/littlepr/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#4 /home/littlepr/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
#5 /home/littlepr/public_html/wp-includes/class-wp-query.php(1131): do_action_ref_array('parse_query', Array)
#6 /home/littlepr/public_html/wp-includes/class-wp-query.php(1857): WP_Query->parse_query()
#7 /home/littlepr/public_html/wp-includes/class-wp-query.php(3787): WP_Query->get_posts()
#8 /home/littlepr/public_html/wp-includes/class-wp-query.php(3919): WP_Query->query(Array)
#9 /home/littlepr/public_html/wp-content/mu-plugins/plf-filter.php(940): WP_Query->__construct(Array)
#10 /home/littlepr/public_html/wp-content/mu-plugins/plf-filter.php(239): Plf_filter::plf_filter('active_plugins', false)
#11 /home/littlepr/public_html/wp-includes/class-wp-hook.php(310): Plf_filter::active_plugins(false)
#12 /home/littlepr/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(false, Array)
#13 /home/littlepr/public_html/wp-includes/option.php(132): apply_filters('pre_option_acti...', false, 'active_plugins', Array)
#14 /home/littlepr/public_html/wp-admin/includes/plugin.php(528): get_option('active_plugins', Array)
#15 /home/littlepr/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/block-editor/class-wpml-block-editor-helper.php(56): is_plugin_active('classic-editor/...')
#16 /home/littlepr/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/block-editor/class-wpml-block-editor-helper.php(25): WPML_Block_Editor_Helper::is_classic_editor_plugin_active()
#17 /home/littlepr/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/block-editor/Loader.php(21): WPML_Block_Editor_Helper::is_active()
#18 /home/littlepr/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(78): WPML\BlockEditor\Loader->add_hooks()
#19 /home/littlepr/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(57): WPML_Action_Filter_Loader->load_factory_or_action('WPML\\BlockEdito...', false)
#20 /home/littlepr/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.php(240): WPML_Action_Filter_Loader->load(Array)
#21 /home/littlepr/public_html/wp-settings.php(453): include_once('/home/littlepr/...')
#22 /home/littlepr/public_html/wp-config.php(170): require_once('/home/littlepr/...')
#23 /home/littlepr/public_html/wp-load.php(50): require_once('/home/littlepr/...')
#24 /home/littlepr/public_html/wp-blog-header.php(13): require_once('/home/littlepr/...')
#25 /home/littlepr/public_html/index.php(17): require('/home/littlepr/...')
#26 {main}
thrown in /home/littlepr/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/class-wpml-query-parser.php on line 505

June 26, 2023 at 9:48 am #13894011

Kor
Supporter

Languages: English (English )

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

Hi there,

Thanks for contacting WPML support.

I've checked and I can see the issue you had there.

I would need to take a closer look at your site. So I would need to request temporary access (WP-Admin and FTP) preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed

IMPORTANT: Please, note, a backup is required for security reasons, and to avoid any data loss, you can use the https://wordpress.org/plugins/updraftplus/plugin for these backup needs.

Your following answer will be private, which means only you and I have access to it.

✙ I would need your permission to de-activate and re-activate Plugins and the Theme and to change configurations on the site if required. This is also a reason the backup is critical.

June 26, 2023 at 4:29 pm #13897197

Kor
Supporter

Languages: English (English )

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

Thanks for your reply.

I've deactivated and reactivated your plugins and I am able to translate your homepage now into Chinese here hidden link .

Could you check?

June 27, 2023 at 1:45 am #13898819

shiong-gauC-2

Hi, what am I supposed to see on the homepage?

The link you provided leads to an English post. On the homepage, I do not see the banner but only Chinese menus. Then the rest of the page is in English.

I have also noticed you have turned off all other plugins.

June 27, 2023 at 7:32 am #13900017

Kor
Supporter

Languages: English (English )

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

Thanks for your reply.

I'm referring to your Chinese page here hidden link . It's loading now and not showing Error 500. Also, I've just reactivated your plugins.

Now please translate your homepage to Chinese as explained here in this screen recording hidden link

June 27, 2023 at 8:36 am #13900399

shiong-gauC-2

Hi Kor,
May I ask:
1. What did you do to fix it?
2. The header on the Chinese homepage doesn't come out although it already exists. The translations are already done but WPML is not picking it up. How do I resolve this?
3. The Chinese blog postings are all missing. Help please?

June 28, 2023 at 7:02 pm #13913243

Kor
Supporter

Languages: English (English )

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

Thanks for your reply.

1. What did you do to fix it?
I ran some of the troubleshooting options here hidden link and it fixes it.

2. The header on the Chinese homepage doesn't come out although it already exists. The translations are already done but WPML is not picking it up. How do I resolve this?
I can see the issue you had there. You need to edit the conditions when editing the page in Chinese language as shown in the attached screenshot.

3. The Chinese blog postings are all missing. Help please?
I can see that you've translated all posts except a few here hidden link .May I know where can I see the missing posts?

Screenshot_96.png
June 29, 2023 at 3:19 am #13914567
shiong-gauC-2

Good morning Kor.

Question 1
Thank you for sharing the troubleshooting page. I need to replicate what you did on the production website. Hence, I hope you can give me specific steps. Please also advise me on what caused the issue. This is so I can avoid the cause in the future.

Question 2
My apologies, I'm afraid you misunderstood me. When I click on the Chinese homepage in the Cornerstone editor, the content is in English. It used to be Chinese content.

Question 3
Going into Cornerstone editor, you will find Single Layouts and Archive Layouts. These are templates for Post listing and individual posts. You'd notice the two listed are in English. It is as if the Chinese listing has been removed (see attached screenshot).

Please click on the below URLs to prove my point
hidden link
hidden link

To conclude, the burning question I have is what happened? It seems like the database got corrupted. If so, what caused it?

Hoping you can shed some light on the matter.

New threads created by Kor and linked to this one are listed below:

https://wpml.org/forums/topic/cornerstone-editor-issues-with-single-and-archive-layouts/

Screenshot 2023-06-29 111549.png
June 30, 2023 at 4:07 am #13920805

shiong-gauC-2

Good morning Kor.
Can you kindly respond to my questions? I need to know what happened and how to fix this on the production site. Many thanks in advance.

June 30, 2023 at 8:50 am #13921773

Kor
Supporter

Languages: English (English )

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

Thanks for your reply.

I'd like you to know that our support policy allows us to take care of only one issue per ticket.
Continuing with one issue per ticket helps not only supporters to focus on one issue at once but also enables other users to find solutions to their questions faster.

Since Question 1 and the "Error 500" are resolved, I will split your other tickets so that we can handle them accordingly.

As for the options I ran in WPML > Settings > Troubleshooting. I've highlighted it using a screenshot.

Since Question 2 is related, I'll help you with this. When I fixed the "Error 500" issue on your Website and translated the homepage from English to Chinese using the Advanced Translation Editor here hidden link , I don't see any Chinese contents and it's most probably not saved correctly hence causing the "Error 500" issue.

Also, the support information here hidden link shows that your "WordPress Memory Limit" is too low and might cause issues when translating or using any of the features in the plugin.

Screenshot 2023-06-30 at 4.43.50 PM.jpg
June 30, 2023 at 11:04 am #13923041

shiong-gauC-2

Kor, I don't think my issue is resolved... the site is not deemed usable. It was fully functional prior to Error 500 but now, the "fix" has led to other issues.

May I please request for the issue to be escalated and reviewed by another engineer?

June 30, 2023 at 11:08 am #13923077

Kor
Supporter

Languages: English (English )

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

Thanks for your reply.

Yes, I can escalate this to our 2nd Tier Support to check on the initial Error 500 issue. Could you restore the staging site to its original state(error 500 in Chinese Language homepage) so that I could escalate it?

July 2, 2023 at 12:59 pm #13929207

shiong-gauC-2

The site has been restored to its Error 500 state. Please proceed to escalate.

July 4, 2023 at 3:25 pm #13942773

shiong-gauC-2

I need help please

July 4, 2023 at 3:27 pm #13942779

Kor
Supporter

Languages: English (English )

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

Thanks for your reply.

Sorry for the delays. I'm sending a report to our 2nd Tier Support and I'll update you once I hear from them.