Skip to content Skip to sidebar

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

Problem:
The client was experiencing critical errors on their Elementor-driven site after activating WPML, which resulted in the site not loading correctly and Elementor not working when editing pages.

Solution:
First, we recommended increasing the WordPress memory limit to at least 128MB, which is the minimum requirement for WPML

We also noticed that the WPML String Translation addon plugin was not installed, and we advised the client to install it.

We requested the client to enable the WordPress debug.log to identify any PHP errors by adding the following code to the wp-config.php file:

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 which is recommended on a live site.
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);

Eventually, the client discovered that the issue was due to buggy coding in a theme file and resolved it themselves.

If you're experiencing similar issues, we recommend trying the steps above. However, the solution might be irrelevant due to being outdated or not applicable to your case. We highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket with us.

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

Last updated by romanM-13 1 year, 5 months ago.

Assisted by: Marsel Nikolli.

Author Posts
February 19, 2024 at 12:48 pm #15318225

romanM-13

Hi there!

This Site is Elemtor-driven: hidden link

The Theme is:

hidden link

After activating WPML I get critical errors while showing the original (german) posts (without translation) - the Site is not loading correct and Elementor is not loading when editing with Elementor.

Any suggestions?

Regards Roman

February 19, 2024 at 2:59 pm #15319238

Marsel Nikolli

Hi Roman,

Thank you for contacting WPML Support, I will be happy to help you.

I've noticed from the debug info you provided, the WP memory limit needs to be increased, WordPress uses 40Mb as default and the minimum requirements for WPML are 128 MB. (Kindly check this page: https://wpml.org/home/minimum-requirements/)

You can increase it by adding the following code in your wp-config.php file right before the line: /* That's all, stop editing! Happy publishing. */

/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');

----

Also, I noticed that the WPML String Translation addon plugin is not installed. You can install it by going to WP-Admin -> Plugins -> Add new plugin -> Commercial tab.

After, can you check if the issue persist and let me know?

Looking forward to your reply,
Marsel

February 19, 2024 at 4:54 pm #15319629

romanM-13

Hi Marsel!

Thank you for answering!

Memory Limit is increased as suggested.
WPML String Translation is activated.

The issue persist.

Regards, Roman

February 19, 2024 at 5:08 pm #15319648

Marsel Nikolli

Hi Roman,

Thank you for your update.

To allow us to see if any PHP errors are being produced, could you please provide me with the WordPress debug.log. More Info: https://wordpress.org/support/article/debugging-in-wordpress/

To enable debug.log, open your wp-config.php file and look for:

define('WP_DEBUG', false);

And change it to:

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 which is recommended on a live site.
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);

Then try to reproduce the issue and check if any errors were saved to the debug.log log file inside the “.../wp-content/” directory.

If you can paste your debug.log to https://pastebin.com/ and provide me with that link, it would be great!

Looking forward to your reply,
Marsel

February 19, 2024 at 6:37 pm #15319888

romanM-13

Hi Marsel!

Thank your for the hints!

I found the error. It was mine buggy coding in a theme file.

Regards

Roman