Skip to content Skip to sidebar

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

Problem:

You are experiencing a critical error on your site because the WPML site key isn't working anymore.

Solution:

We recommend you follow these steps after ensuring you have a full site backup:

1. Visit your account page at https://wpml.org/account/sites/
2. Delete the existing key for your site.
3. Navigate to Plugins>>Add New>>Commercial tab.
4. Click on "Unregister WPML from this site".
5. Refresh the page.
6. Click on "Get a key for this site".
7. Copy the newly generated code.
8. Return to Plugins>>Add New>>Commercial tab.
9. Register the site with the new key.

For more detailed instructions, please refer to our documentation:

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML 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.

This topic contains 6 replies, has 2 voices.

Last updated by paulB-82 2 years, 4 months ago.

Assisted by: Bigul.

Author Posts
April 4, 2023 at 3:19 pm #13401589
April 4, 2023 at 4:42 pm #13402671

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hi Paul,

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

Please try the following steps to register the site with a new key after a full site backup{mandatory} and make sure you are getting the expected result or not.

- Go to your account page (https://wpml.org/account/sites/)
- Delete the key for the site
- Go to Plugins>>Add New>>Commercial tab
- Click on "Unregister WPML from this site"
- Refresh the page
- Click on "Get a key for this site"
- Copy the newly generated code
- Visit back to Plugins>>Add New>>Commercial tab
- Register the site with the new key

Please refer to the following documentation for more details.

hidden link

https://wpml.org/faq/install-wpml/#register

https://wpml.org/faq/troubleshooting-registration/

--
Thanks!

Bigul

April 4, 2023 at 9:11 pm #13404329

paulB-82

Hello,
Now the case has changed.
We could activate the key, but somehow the critical error is still on the site.
We did some tests and found out that once we deactivate the wpml string translation plugin, the website is working.
Hence, we assume it is linked with that plugin.
How can we solve that issue?
Kindest,
Paul

April 5, 2023 at 7:35 am #13406911

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hi Paul,

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

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

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

To enable the 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 if 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

April 5, 2023 at 6:51 pm #13413661
paulB-82

Hello
Thank you for your answer.
Our debug.log can be found here:
https://pastebin.com/mXMXVZRX
Thank you for helping us to solve that issue.
Kindest,
Paul

April 6, 2023 at 9:42 am #13418355

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hi Paul,

Thank you for the updates. Please note, I have opened a new ticket for the PHP Fatal error 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