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.

Tagged: 

This topic contains 17 replies, has 3 voices.

Last updated by margitE-2 1 year, 8 months ago.

Assisted by: Andrés.

Author Posts
February 13, 2023 at 1:43 pm #13021221

margitE-2

Hello,

I tried to install WPML with OTGS Installer.
If I tried to activate WPML plugin, the page got a critical error. Plugin deactivation doesn´t work, I deleted it thrue the FTP.

best regards,
Margit

goals wpml.png
February 13, 2023 at 2:03 pm #13021413

Johan

Hi,

A critical error when activating the WPML plugin can be caused by several factors, including compatibility issues with other plugins or themes, incorrect server settings, or a corrupted WPML installation.

Here are a few steps you can try to resolve the issue:

1. Check compatibility: WPML has a list of known compatibility issues with other plugins and themes, and the plugin itself will check for any known compatibility issues when it is activated. You can check for any compatibility issues by visiting the WPML -> Support page.

2. Update your plugins and themes: Make sure you have the latest versions of all your plugins and themes installed, as compatibility issues can often be resolved by updating.

3. Deactivate other plugins: Deactivate all other plugins and see if the issue is resolved. If it is, activate each plugin one by one to determine which plugin is causing the issue.

4. Increase PHP memory limit: WPML may require a higher PHP memory limit, so try increasing the limit in your wp-config.php file. You can do this by adding the following line of code:

define('WP_MEMORY_LIMIT', '256M');

5. Reinstall WPML: If none of the above steps resolve the issue, you may need to reinstall WPML. You can do this by downloading the plugin from the WPML website and uploading it to your site via FTP, or by using the OTGS Installer to install a fresh copy of the plugin.

Johan

February 14, 2023 at 12:19 pm #13030207

margitE-2

Hello,

I have now gone through all the points and tried everything. I still get a fatal error when I try to install WPML Multilingual CMS.

Margit

February 14, 2023 at 12:25 pm #13030235

Johan

Ok thanks, one last thing please, can you please show me the reported error?

Let's enable the debug log to see if there are any errors showing.
1. Edit wp-config.php and insert the following lines:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

2. Browse to the page with the issue and/or reproduce the issue.
3. Locate the debug log in: /wp-content/debug.log => You can use a file manager for that
4. Paste the latest lines here. No need to paste the entire log file, just 50 lines or so will do. Please censor any sensitive information.

If you cannot find any files named "debug" it means there are no PHP errors so it's fine.
We will then have to look somewhere else.

February 16, 2023 at 4:09 pm #13050873

margitE-2

Hello again,

I tried doing it, but still had no error logs. Also combined the plugins on and off, but still got the error. I don't know how or what's the reason. I can create you a access if needed, to maybe figure out how to fix this issue.
Ah, also tried using the wordpress database repair functionality, but this didn't do the trick either.

Anyways, let me know how we should continue.

Margit

February 16, 2023 at 4:20 pm #13050905

Johan

I'll need to take a closer look at your configuration, so for that, I'll need to request temporary access (WP-Admin and FTP) 💻

Your next answer will be private, which means only you and I have access. Also after a few weeks access is removed from this thread.

❌ Please backup your database and website ❌
You can use this plugin to do this: https://wordpress.org/plugins/duplicator/
It's done in just a few minutes. If Duplicator is not working please use another one, this was just a suggestion.

☑️ Permissions:
✙ I would need your permission to disable and re-enable plugins and theme and to change configurations on the site if needed. This is also a reason why the backup is critical.

✙ I would also need your permission to take a local copy of your site to debug the problem without affecting your live site. So you can drop the two files you will see with the duplicator plugin, in the field provided.

Johan

February 19, 2023 at 1:36 pm #13064539

Johan

oK so i found the issue.

Access to your database.
Open the wp_icl_translations table.
Search for the element_id which is throwing the error. in your case its the element ID is 6994
Delete the row.
You might need to repeat the workflow several times until the issue is fixed.

Johan

February 22, 2023 at 10:53 am #13087617

margitE-2

Hello,

Where do I find the wp_icl_translations table?

Margit

February 23, 2023 at 12:01 pm #13098463

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+01:00)

Hello Margit,

For that, you need to access to your PHPMyAdmin and open your database. Once you are there, look for the wp_icl_translations table and follow Johan's advise.
Otherwise, you can also consider to reset and resintall WPML.

Don't hesitate to make a full backup of your site before.

Regards,
Andrés

February 23, 2023 at 6:59 pm #13102803

margitE-2

Hey! For some reason I am not able to find the said table. I doesn't matter which database I am searching from it does not show up. wp_icl_translations table is not there, although I have some with different prefix instead of wp, but those tables do not have the right row with the ID needed.

Any other suggestions?

February 24, 2023 at 7:00 am #13105215

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+01:00)

I'm not sure to follow you, you are not able to find the table (please replace wp_icl_translations
for your WP prefix) or to follow the procedure?
- Open xx_icl_translations table.
- Look for the element_id 6994.
- Delete it.

Also, are you referring to your staging site? If so, please double check your FTP credentials as they are not working or disable WPML so I can't access to your website.

Thank you for your help.

February 28, 2023 at 3:23 pm #13137195

margitE-2

Sorry, I am still unable to find the element_id. Can we have some other solution? I disabled the plugin, so now you are able to access the website. Can we fix it somehow else? Even though I find the said table, I dont have a element with that id..

March 1, 2023 at 7:30 am #13141875

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+01:00)

Thank you, I can access now. Do you authorise me to delete your WPML tables and reinstall it again?
It will mean that you will delete all your translations. However, as you just install our plugin, it shouldn't affect you. Is my assumption correct?

March 2, 2023 at 3:37 pm #13156753

margitE-2

Yes, I authorize you to delete the tables. You are correct! Thank you! Hopefully then the issue is fixed.
Let me know, when I can try the plugin again.

March 2, 2023 at 4:15 pm #13157173

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+01:00)

Thank you, but I will need you to deactivate WPML again or send us your correct FTP credentials in order to proceed.

Regards