Which version of WP? Which plugins? Why can’t you deactivate it through the Plugin manager interface?
Version 1.2, the plugins are textile1 and textile2. They have functions with the same names, so when you install both of them, the whole blog fails due to an error similar to “cannot redeclare function xyz on line 54 of textile2.php has already been declared in line 64 of textile1.php
This error causes the whole blog to fail, so you cant deactive either of them.
So, I need to find where the Activate logic is coming from, so I can manually change it back to deactivated
I really appreciate any help on this one.
Thanks
Tedd
Just delete one or both of the plugin files, that’ll do the trick.
Yes, I did that, and it worked. Thanks.
I’d still like to know where the data is stored that says “Yes, the user has Activated this plugin.”
Here is where I’ve looked:
1.The database, specifically in the options tables, though there is some data there that I don’t understand.
2. The whole website for a text or flat file
3. In the plugin files themselves
Basically, Ive spent 2 days looking for this info.
It’s stored as an array in your database:
Options Table
active_plugins row
I wouldn’t edit it unless you know what you’re doing.
active_plugins is not a row in my Options table
Here is the if statement in wp-admin/plugins.php for the case of an activation of a plugin:
if (‘activate’ == $_GET[‘action’]) {
$current = “\n” . get_settings(‘active_plugins’) . “\n”;
$current = preg_replace(“|(\n)+\s*|”, “\n”, $current);
$current = trim($current) . “\n ” . trim($_GET[‘plugin’]);
$current = trim($current);
$current = preg_replace(“|\n\s*|”, “\n”, $current);
update_option(‘active_plugins’, $current);
header(‘Location: plugins.php?activate=true’);
}
Looks like its trying to parse the data from a flat file to me.
Any ideas?
$current = "n" . get_settings("active_plugins") . "n";
That line aboves says getting setting of active plugins from Options table, row active_plugins.
If you don’t see the row, you might need to click on “next page”; my phpmyadmin shows 30 rows/page
thanks for your help, its greatly appreciated