Skip Navigation

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

Problem:
The client encountered a critical error after installing WPML and activating the WPML SEO plugin, which conflicted with the Rank Math sitemap functionality. The sitemap page displayed a critical error and mixed languages in the sitemap entries.
Solution:
We recommend the following steps to resolve the issue:
1) Ensure that your hosting provider can set up a staging site for troubleshooting in a similar environment.
2) Perform a full site backup before making any changes.
3) Update all plugins to the latest versions, including WooCommerce.
4) Increase the WP Memory Limit to 256MB, as WPML requires a minimum of 128MB. For more details, see the documentation on WPML minimum requirements and increasing memory allocated to PHP.
5) Increase the MaxInputVars in PHP settings to 10000. For guidance, refer to the article on setting the MaxInputVars directive or contact your system admin/hosting provider.
6) Activate the WPML Core plugin first, then add the String Translation plugin and other add-ons one by one.

If this solution does not seem relevant to your issue, please open a new support ticket on our support forum.

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

Last updated by Bigul 1 year, 6 months ago.

Assisted by: Bigul.

Author Posts
November 30, 2023 at 12:35 pm #14962345

marieN-4

Tell us what you are trying to do?

I bought the licence, and followed the normal process of installation.
After I clicked on "Finish", I've got the critical error. The admin interface was not available anymore. (see screen 1,2,3 with all steps)
It is an eshop currently using by my clients, so after the critical error i proceed to immediate restoration from the server.

Is there any documentation that you are following?
The documentation on your site. All simple steps.

Can an expert take the action on my site to install the plugin WPML?

2023-11-30 Screen 3 first Critical error arrived.png
2023-11-30 Screen 2.png
2023-11-30 Screen 1 first steps-.png
November 30, 2023 at 2:57 pm #14964225

marieN-4

I verified all the requirements on the server and it is OK, including eval() and Multibyte String for using WPML String Translation, and SimpleXML for WPML Translation Management.

Please help.

3 screen requirements.png
2 screen requirements.png
1 screen requirements.png
November 30, 2023 at 4:23 pm #14965157

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

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

Hope you are installing WPML for the first time on this site. Do you have a staging/dev site(clone copy of the live site)? If so, it will help us to troubleshoot the issue without affecting the live site.

Please share with us the WordPress debug.log(not WPML debug information) for collecting more details on this. Refer to the following pages for instructions

https://wpml.org/documentation/support/debugging-wpml/

https://wordpress.org/documentation/article/debugging-in-wordpress/

To enable WordPress Debug log, open your wp-config.php file of site root and look for define('WP_DEBUG', false);. Change it to:

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
 
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
 
// Disable display of errors and warnings 
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );

In this case, the errors will be saved to a debug.log log file inside the */wp-content/* directory. Please do the steps to reproduce the bug and check you are getting any errors or warnings related to WPML in the log file.

If you can paste your debug.log to http://pastebin.com/index.php and provide me that link it would be great! (This is the cleanest way because sometimes the logs are long and create a complete mess of discussion).

--
Thanks!

Bigul

November 30, 2023 at 4:57 pm #14965395

marieN-4

In the debug.log file there are thounthands of lines. I can not put it in your interface. Please see the error on the screen attached.

2023-11-30 17_55_57-Critical error of the entire site after installation and settings _finish_ - WPM.png
November 30, 2023 at 5:33 pm #14965807

marieN-4

Hello, I pasted my debug.log to http://pastebin.com/index.php, please, see the link
https://pastebin.com/yVxibW48

November 30, 2023 at 6:02 pm #14965953

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Thank you for the Debug information. But the debug.log is not showing any warning or error related to WPML.

So please fill the private details fields(including the FTP credentials) after a full site backup. I would like to access the admin area of your staging/dev site for further checking. Refer to the following links for more details about our private information sharing policies.

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

hidden link

--
Thanks!

Bigul

December 1, 2023 at 6:20 am #14968829

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Thank you for the updates. This error maybe happening because of the older version of plugins, specially WooCommerce. Please check the attached image.

One request. Please allow me to make a duplicator copy of your site using the Duplicator plugin(https://wordpress.org/plugins/duplicator/) for debugging the issue on my local server. So we can troubleshoot the issue without affecting your live site.

--
Thanks!

Bigul

2023-12-01_11h45_07.png
December 1, 2023 at 7:32 am #14969397

marieN-4

Dear Bigul, please, do the necessary. Help me.

December 1, 2023 at 12:35 pm #14972489

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Thank you for the permission. I made a copy of the site and test it locally. But I am not able to reproduce the issue exactly. It works as expected once I finished the configuration of WPML Core plugin. Please check the attached images.

So can you please check with your hosting team that they can arrange a staging site for you or not. It will help us to troubleshoot the bug in the similar environment.

--
Thanks!

Bigul

2023-12-01_17h53_36.png
2023-12-01_17h53_22.png
December 1, 2023 at 1:14 pm #14973059

marieN-4

Dear Bigul, please, could you tell me which components did you install?
Only WPML multiligual CMS? String Translation? Woo-Commerce?

Because I tried to install a big package (see the image attached), and maybe it was not good?

May the wrong thing come from String translation? Should I save twice the setting for URL "post name"?

2023-12-01 14_10_01-Critical error of the entire site after installation and settings _finish_ - WPM.png
December 1, 2023 at 2:10 pm #14973557

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Thank you for the updates. Initially, I only installed the WPML Core and String Translation plugins. But it is working fine in my local copy after installing WPML SEO and WooCommerce Multilingual plugins now. So not sure what happened wrong in your setup.

Please try the following steps after a full site backup{mandatory} and let us know your feedback.

1) Upgrade to the latest version of plugins including WooCommerce

2) Increase *WP Memory Limit* to *256*(the minimum required memory limit for WPML is *128*). Please check the following links for more details

https://wpml.org/home/minimum-requirements/

https://wordpress.org/support/article/editing-wp-config-php/#increasing-memory-allocated-to-php

3) Increase the *MaxInputVars* of PHP settings to *10000*. Please check the following article for more details or contact your system admin/hosting provider for this purpose.

hidden link

4) Activate WPML Core, then the add-ons like String Translation plugin one by one

--
Thanks!

Bigul

December 4, 2023 at 2:42 pm #14988277
marieN-4

Dear, Bigul!
I've done the update of every plugin and the theme, and intalled only 1)WPML multiligual CMS and 2)String Translation at first. So It was OK.

I started the translation and I installed the WooCommerce plugin.
I translated 4-5 pages and 3 products. So I started to understand better the mechanics of WPML.

Now I have a problem.
I have a Site Map in the Footer of my site ( "Plan de Site"). It is generated by Rank Math. ( hidden link)

And now I see that it is not working... The page is bad and it is written critical error. Please see attaches image.

It is very bad for Google. Please , can you help me to resolve this issue?

Thank you

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

https://wpml.org/forums/topic/critical-error-in-the-site/

2023-12-04 problem with site map.png
December 4, 2023 at 5:02 pm #14990113

marieN-4

Dear Bigul,

After investigation, I discoverd that the Sitemap page is KO ( "critical error", see the screen shot in me previous email) because of "WPML SEO" plugin activated... See the "screen shot 0" attached.

So i decided to desactivate it.

But now I have a confusion situation :

On my French page hidden link
I have a Sitemap generated by RankMath code, who mixed the French pages and the English translation pages.
Please see the screen shot 1 and 2.

I was thinking that I will have a Sitemap in French and also an another Sitemap in English.

WPML is not doing this separation? All pages FR & ENG will be mixed?

Or is it because WPML SEO plugin is DESactivated?

But I cannot activate it because, I have a critical error of the sitemap page...

Please help, please advise.

Screen shot 2.png
Screen shot 1.png
Screen shot 0.png
December 5, 2023 at 5:02 am #14992757

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Thank you for the feedback. Please note, I have opened a new ticket for the WPML SEO issue. Because as per our support policies, we can only handle one issue per ticket. It will help us to serve you better and we can avoid discussing multiple problems in one ticket.

I will get back to you soon on the latest ticket. Please wait. Thank you for your understanding.

--
Thanks!

Bigul