blog

Modifiying WordPress plugin activation behavior

As I continue to work on and debug Yet Another Related Posts Plugin and WP-Smartdate, I’ve come across an issue where plugin activation fails, but I get no useful error message.

When I try to activate the plugin, I am redirected to a url of the type /plugins.php?error=true&plugin=...&_error_nonce=.... This redirect just gives me the plugins control panel with my plugin still disactivated, and with no useful error message.1 This apparently is an issue with the Plugin Protection mechanism introduced in WP 2.2. A quick fix (hack) is available on the WP forums.

Here’s hoping this helps some people scratching their heads, and that this behavior is reconsidered/fixed in future releases.


  1. Apparently some people get a message like “Plugin could not be activated because it triggered a fatal error.” 

Related posts:

  1. Markdown for WordPress and bbPress: Markdown for WordPress and bbPress 1.0 30 kb - zip...
  2. Keep up with Yet Another Related Posts Plugin with RSS!: As more and more people have been using my Yet...
  3. Yet Another Related Posts Plugin 2.0: Yet Another Related Posts Plugin 2.0.5 16 kb - zip...
  4. Yet Another Related Posts Plugin: UPDATE: This posting is now outdated… for the latest information...
  5. This is what a release looks like: This is what the latest release (2.1.6) of my Yet...

Related posts brought to you by Yet Another Related Posts Plugin.

Tags: , , , ,

If you enjoyed this post, make sure you subscribe to my RSS feed (optionally with tweets from my Twitter)!


© 2006-2008 mitcho (Michael 芳貴 Erlewine).
Proudly powered by WordPress.
Entries (RSS) and Comments (RSS).
The views expressed on these pages are mine alone and do not
reflect those of my employers and clients, past and present.