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.
-
Apparently some people get a message like “Plugin could not be activated because it triggered a fatal error.” ↩
Related posts:
- Markdown for WordPress and bbPress: Markdown for WordPress and bbPress 1.0 30 kb - zip...
- Keep up with Yet Another Related Posts Plugin with RSS!: As more and more people have been using my Yet...
- Yet Another Related Posts Plugin 2.0: Yet Another Related Posts Plugin 2.0.5 16 kb - zip...
- Yet Another Related Posts Plugin: UPDATE: This posting is now outdated… for the latest information...
- Introducing Smartdate: I recently have been working on a WordPress plugin called...
関連記事は Yet Another Related Posts Plugin によって表示されています。
Tags: code, error, hack, PHP, WordPress
If you enjoyed this post, make sure you subscribe to my RSS feed (optionally with tweets from my Twitter)!