Skip Navigation

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

Problem:
Fatal error after installing WPML.
Ein Fehler vom Typ E_ERROR wurde in der Zeile 404 der Datei wp-content/plugins/sitepress-multilingual-cms/sitepress.php verursacht. Fehlermeldung: Uncaught Error: Class "WPML_Troubleshoot_Action" not found in wp-content/plugins/sitepress-multilingual-cms/sitepress.php:404

Solution:
- Backup the site completely to prevent any issues.

- Deactivate and delete WPML Plugin files.

- Install WPML freshly again from fresh files.

Relevant Documentation:
N/A

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 5 replies, has 3 voices.

Last updated by danielR-146 1 year, 10 months ago.

Assisted by: Subash Chandra Poudel.

Author Posts
March 7, 2023 at 4:25 pm #13191613

danielR-146

The site threw the error below today on this page: hidden link – without previous modifications of any post.
To not be confronted with more of this, I would like to know why this happened.

Ein Fehler vom Typ E_ERROR wurde in der Zeile 404 der Datei /home/clients/c5f0ab5eace616f72c623ed507b51e81/sites/solar21.ch/wp-content/plugins/sitepress-multilingual-cms/sitepress.php verursacht. Fehlermeldung: Uncaught Error: Class "WPML_Troubleshoot_Action" not found in /home/clients/c5f0ab5eace616f72c623ed507b51e81/sites/solar21.ch/wp-content/plugins/sitepress-multilingual-cms/sitepress.php:404
Stack trace:
#0 /home/clients/c5f0ab5eace616f72c623ed507b51e81/sites/solar21.ch/wp-includes/class-wp-hook.php(308): wpml_troubleshoot_action_load('')
#1 /home/clients/c5f0ab5eace616f72c623ed507b51e81/sites/solar21.ch/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#2 /home/clients/c5f0ab5eace616f72c623ed507b51e81/sites/solar21.ch/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#3 /home/clients/c5f0ab5eace616f72c623ed507b51e81/sites/solar21.ch/wp-admin/admin.php(175): do_action('admin_init')
#4 /home/clients/c5f0ab5eace616f72c623ed507b51e81/sites/solar21.ch/wp-admin/edit.php(10): require_once('/home/clients/c...')
#5 {main}
thrown

March 8, 2023 at 6:21 am #13195295

Andrés
Supporter

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

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

Hello there,

Welcome to WPML support forum.

Could you uninstall and install your WPML package manually?

============================
==>Backup your website and database <==
============================

-Deactivate all WPML plugins.
-Login via FTP to your wp-content/plugins/ folder.
-Delete all WPML folders.
-Go to http://wpml.org/my-account/downloads/ and download the latest WPML Multilingual CMS Plugin, then extract it.
-Upload the plugin via FTP to wp-content/plugins/ folder.
(alternatively you could upload the .zip folder using Dashboard > Plugins > new > upload)
-Activate the WPML plugin via WP Dashboard > plugins.
-Complete the setup, if needed.
-Register WPML for your site (at the end of setup, click on “generate key” button).
-Navigate to Dashboard > Plugins and locate WPML Multilingual CMS.
-Click on the blue link that says “Registered”.
-Download and activate all needed WPML AddOn Plugins.

Please let me know if this works,

Best regards,
Andrés

March 15, 2023 at 11:14 am #13250493

danielR-146

Hi Andrés,

Thanks for your reply.

To be honest, I didnt follow your advice, because I doubt that another fresh install over a fairly fresh install of WPML would alter anything.

Plus, the error didn't occur anymore and was seemingly a hiccup.

My question was why the error happened; your answer looks like the error code sent didn't give you a clue beyond a very standard procedure.

Best regards,

Lukas (Daniel's deputy)

March 15, 2023 at 12:25 pm #13251165

Subash Chandra Poudel

Hi Lukas,

Thank you for the updates.

From the error it looks like some WPML file was either missing or not loaded properly and caused the error.

If the error has since then been resolved it should be all good. However to be in the safer side I still recoemend you to:

- Backup the site completely to prevent any issues.

- Deactivate and delete WPML Plugin files.

- Install WPML freshly again from fresh files.

* Deactivating, deleting and re-installing WPML plugin should not cause any issue with your WPML settings or translation content.

Regards,
Subash

March 15, 2023 at 12:25 pm #13251171

Subash Chandra Poudel

Hi Lukas,

Thank you for the updates.

From the error it looks like some WPML file was either missing or not loaded properly and caused the error.

If the error has since then been resolved it should be all good. However to be in the safer side I still recoemend you to:

- Backup the site completely to prevent any issues.

- Deactivate and delete WPML Plugin files.

- Install WPML freshly again from fresh files.

* Deactivating, deleting and re-installing WPML plugin should not cause any issue with your WPML settings or translation content.

Regards,
Subash

March 15, 2023 at 3:52 pm #13253487

danielR-146

Done