Background of the issue:
I just deactivated WPML Multilingual CMS to troubleshoot a problem, and now it won't activate again. I keep pressing 'activate' but nothing happens.
Symptoms:
I receive a message saying 'Plugin could not be activated because it caused a fatal error.'
Questions:
Why can't I activate WPML Multilingual CMS after deactivating it?
What causes the fatal error when trying to activate the plugin?
While you wait for my colleague to take over the ticket, let me try to help you with the issue quickly.
To allow us to see if any PHP errors are being produced, please provide 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);
Then try to reproduce the issue and check if any errors were saved to the debug.log log file inside the “.../wp-content/” directory.