I used to have the same problem until I added define ('WPLANG', ''); in my config file. Tom might have the same issue.
I had the same issue, with a silent fatal error during plugin activation, and jean-gui’s solution also worked for me.
I believe this is because of the check in ure-lib.php:
if (!defined(“WPLANG”)) {
die; // Silence is golden, direct call is prohibited
}
my config did not have WPLANG defined…could another property be checked instead? Or at least log an error so that we could have seen this in the php error log?
Thank you for pointing me on that. I will change this checking to something more universal and definitely existing in the most of WP installations.
By the way, it seems to me that WP has this constant defined from 2.7 version or earlier. Quote from version 3.1.1 wp-config-sample.php:
/**
* WordPress Localized Language, defaults to English.
*
* Change this to localize WordPress. A corresponding MO file for the chosen
* language must be installed to wp-content/languages. For example, install
* de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
* language support.
*/
define('WPLANG', '');
I have the same problem, “Plugin could not be activated because it triggered a fatal error.” trying to activate it on both WP 3.1.3 and 3.2.
What could have caused this?
What version of “User Role Editor” do you try to activate?
I was out for few days, just returned. Thanks for responding.
The “User Role Editor” version is 3.1.1, the latest on ww.wp.xz.cn plugin area.
Deactivate all others plugin and check again. If ‘User Role Editor’ still could not be activated.
Try to change your wp-config.php file, set WP_DEBUG constant to true, e.g.
//define('WP_DEBUG', false);
define('WP_DEBUG', true);
It should show you full error message, from which we can get idea about the reason of your problem.
Note: do not send here real paths to your blog, remove path parts till WP subdirectories.