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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+02:00)

This topic contains 6 replies, has 2 voices.

Last updated by Mohamed Sayed 1 year, 2 months ago.

Assisted by: Mohamed Sayed.

Author Posts
March 24, 2024 at 6:47 pm #15444314

abdulrhmanA

I am trying to: activate the plugin.
I get an error message: "Plugin could not be activated because it triggered a fatal error."

WordPress version 6.4.3
Active theme: XTRA Version: 4.8.0
Current plugin: WPML Multilingual CMS Version 4.6.9
PHP version 8.1

2024-03-24_22-46-35.jpg
March 24, 2024 at 11:13 pm #15444441

Mohamed Sayed

Hi Abdulrhman,
Thanks for contacting WPML support.

Please provide us with the WordPress debug.log, this will allow us to see if any PHP errors are being produced. More Info: https://wordpress.org/support/article/debugging-in-wordpress/

To enable it, 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 by activating the plugin 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 that link, it would be great!

Kind regards,
Mohamed

March 25, 2024 at 7:03 am #15444857

abdulrhmanA

Ok I fined bellow …

https://pastebin.com/UFwJqHMB

[25-Mar-2024 06:59:56 UTC] PHP Warning: require_once(/home/dti033o7ddmi/public_html/harmony-mentalhealth.com/wp-content/plugins/sitepress-multilingual-cms/vendor/autoload.php): Failed to open stream: No such file or directory in /home/dti033o7ddmi/public_html/harmony-mentalhealth.com/wp-content/plugins/sitepress-multilingual-cms/sitepress.php on line 54
[25-Mar-2024 06:59:56 UTC] PHP Fatal error: Uncaught Error: Failed opening required '/home/dti033o7ddmi/public_html/harmony-mentalhealth.com/wp-content/plugins/sitepress-multilingual-cms/vendor/autoload.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/dti033o7ddmi/public_html/harmony-mentalhealth.com/wp-content/plugins/sitepress-multilingual-cms/sitepress.php:54
Stack trace:
#0 /home/dti033o7ddmi/public_html/harmony-mentalhealth.com/wp-admin/includes/plugin.php(2318): include_once()
#1 /home/dti033o7ddmi/public_html/harmony-mentalhealth.com/wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
#2 /home/dti033o7ddmi/public_html/harmony-mentalhealth.com/wp-admin/plugins.php(58): activate_plugin()
#3 {main}
thrown in /home/dti033o7ddmi/public_html/harmony-mentalhealth.com/wp-content/plugins/sitepress-multilingual-cms/sitepress.php on line 54

March 25, 2024 at 8:47 am #15445101

Mohamed Sayed

Please delete the WPML plugin and try to install a fresh copy. You can download it from https://wpml.org/account/downloads/

Then install it from Plugins > Add new > Upload Plugin. If the issue persists, please try to deactivate all the plugins and leave only the WPML-related ones. Then activate one by one to see if any other plugin has a conflict with it.

❌ Please backup your database and website before trying the above steps ❌

March 25, 2024 at 11:42 am #15446348

abdulrhmanA

There is still the same problem as before, I copy files via FTP but cannot install them directly through the WordPress panel, and if I install via FTP, the files are installed, but I am unable to activate them

March 25, 2024 at 1:00 pm #15446911

Mohamed Sayed

To best troubleshoot the issue, kindly create a copy of your site and provide a link to download it. You can use the Duplicator plugin (https://wordpress.org/plugins/duplicator/) or the All-in-One WP Migration plugin (https://wordpress.org/plugins/all-in-one-wp-migration/).

The plugin will create a package file that you can download then upload again to Google Drive or Dropbox and share the download link in the next reply which I have marked as private. I'll import it to debug the issue locally, then escalate it to our 2nd tier support team for further investigation if needed.

Please check here for more details: https://wpml.org/faq/provide-supporters-copy-site/

Thanks for your cooperation.

March 25, 2024 at 7:23 pm #15448740

Mohamed Sayed

I imported the site copy locally but I couldn't replicate the issue there. The plugin can be activated and configured without any issues as you can see here: hidden link

You can also check it in our testing server on Cloudways here: hidden link (Use your login details)

This means that the issue could be related to your server configuration, please contact the hosting provider and make sure your server environment meets our minimum requirement to run WPML. Kindly check this doc for more details: https://wpml.org/home/minimum-requirements/

Let us know their feedback please.

The topic ‘[Closed] Plugin could not be activated because it triggered a fatal error’ is closed to new replies.