<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>Techie Buzz Forum Topic: De-activate plugins stage wont work</title>
<link>http://forum.techie-buzz.com/</link>
<description>Techie Buzz Forum Topic: De-activate plugins stage wont work</description>
<language>en</language>
<pubDate>Fri, 12 Mar 2010 02:46:25 +0000</pubDate>

<item>
<title>Sc8tt on "De-activate plugins stage wont work"</title>
<link>http://forum.techie-buzz.com/topic/de-activate-plugins-stage-wont-work#post-230</link>
<pubDate>Thu, 06 Nov 2008 07:03:59 +0000</pubDate>
<dc:creator>Sc8tt</dc:creator>
<guid isPermaLink="false">230@http://forum.techie-buzz.com/</guid>
<description>&#60;p&#62;When i get to this stage (deactivate plugins) i get this screen and cannot continue:&#60;/p&#62;
&#60;p&#62;horized to do this'; return false; } global $wpdb; $current = get_option('active_plugins'); array_splice($current, array_search($plugin, $current), 1 ); // Array-fu! update_option('active_plugins', $current); do_action('deactivate_' . trim( '../' . $plugin )); $wpdb-&#38;gt;query(&#34;Insert into &#34;.WPAU_PLUGIN_TABLE.&#34; (plugin_name, plugin_status, plugin_deactive_response, plugin_reactive_response) values ('&#34;.$plugin.&#34;', 0, 1, 0)&#34;); $this-&#38;gt;logMessage('Deactivated the plugin '.$plugin.'&#60;br /&#62;
'); } /* get all info from the stored db and activate all the plugins */ function reActivatePlugins($automated = false) { if(!current_user_can('edit_plugins')) { echo 'Oops sorry you are not authorized to do this'; return false; } global $wpdb; if(isset($_REQUEST['pluginid'])) { $fatalPluginId = $_REQUEST['pluginid']; $plugins = $wpdb-&#38;gt;get_results(&#34;select plugin_name, plugin_reactive_response from &#34;.WPAU_PLUGIN_TABLE.&#34; where id = &#34;.intval($fatalPluginId)); if(count($plugins) &#38;gt; 0) { if(intval($plugins[0]-&#38;gt;plugin_reactive_response) != 1) { $this-&#38;gt;logMessage('The Plugin '.$plugins[0]-&#38;gt;plugin_name.' could not be activated succesfully. You will need to activate it manually.&#60;br /&#62;
'); $wpdb-&#38;gt;query(&#34;UPDATE &#34;.WPAU_PLUGIN_TABLE.&#34; set fatal_plugin = 1 where id = &#34;.intval($fatalPluginId) ); } } } horized to do this'; return false; } global $wpdb; $current = get_option('active_plugins'); array_splice($current, array_search($plugin, $current), 1 ); // Array-fu! update_option('active_plugins', $current); do_action('deactivate_' . trim( '../' . $plugin )); $wpdb-&#38;gt;query(&#34;Insert into &#34;.WPAU_PLUGIN_TABLE.&#34; (plugin_name, plugin_status, plugin_deactive_response, plugin_reactive_response) values ('&#34;.$plugin.&#34;', 0, 1, 0)&#34;); $this-&#38;gt;logMessage('Deactivated the plugin '.$plugin.'&#60;br /&#62;
'); } /* get all info from the stored db and activate all the plugins */ function reActivatePlugins($automated = false) { if(!current_user_can('edit_plugins')) { echo 'Oops sorry you are not authorized to do this'; return false; } global $wpdb; if(isset($_REQUEST['pluginid'])) { $fatalPluginId = $_REQUEST['pluginid']; $plugins = $wpdb-&#38;gt;get_results(&#34;select plugin_name, plugin_reactive_response from &#34;.WPAU_PLUGIN_TABLE.&#34; where id = &#34;.intval($fatalPluginId)); if(count($plugins) &#38;gt; 0) { if(intval($plugins[0]-&#38;gt;plugin_reactive_response) != 1) { $this-&#38;gt;logMessage('The Plugin '.$plugins[0]-&#38;gt;plugin_name.' could not be activated succesfully. You will need to activate it manually.&#60;br /&#62;
'); $wpdb-&#38;gt;query(&#34;UPDATE &#34;.WPAU_PLUGIN_TABLE.&#34; set fatal_plugin = 1 where id = &#34;.intval($fatalPluginId) ); } } } $plugins = $wpdb-&#38;gt;get_results(&#34;select id, plugin_name from &#34;.WPAU_PLUGIN_TABLE.&#34; where plugin_status = 0 and plugin_deactive_response = 1 and fatal_plugin = 0&#34;); if(count($plugins) == 0) $this-&#38;gt;logMessage('All the plugins were re-activated'); foreach($plugins as $plugin) { if(strlen(trim($plugin-&#38;gt;plugin_name)) &#38;gt; 0) $this-&#38;gt;reActivatePlugin($plugin, $automated); } return true; } function reActivatePlugin($plugin, $automated) { if(!current_user_can('edit_plugins')) { echo 'Oops sorry you are not authorized to do this'; return false; } global $wpdb; $current = get_option('active_plugins'); $pluginfile = $plugin-&#38;gt;plugin_name; $pluginid = $plugin-&#38;gt;id; $path = &#34;../&#34;; if ($automated) { $path = &#34;../../&#34;; } if ( wpau_validate_file($path.$pluginfile) ) { if ( ! file_exists(ABSPATH . PLUGINDIR . '/' . $pluginfile) ) { $this-&#38;gt;logMessage('Plugin '.$pluginfile.' file does not exist'); } else { if (!in_array($pluginfile, $current)) { ob_start(); echo ''; if($file_included = @include(ABSPATH . PLUGINDIR . '/' . $pluginfile)) { $current[] = $pluginfile; sort($current); update_option('active_plugins', $current); do_action('activate_' . $pluginfile); $wpdb-&#38;gt;query(&#34;Update &#34;.WPAU_PLUGIN_TABLE.&#34; set plugin_status = 1, plugin_reactive_response = 1 where id = $pluginid&#34;); $this-&#38;gt;logMessage('Plugin '.$pluginfile.' was activated succesfully&#60;br /&#62;
'); } else { $this-&#38;gt;logMessage('Plugin '.$pluginfile.' could not be activated succesfully. You will need to activate it manually.&#60;br /&#62;
'); } ob_end_clean(); } else { $this-&#38;gt;logMessage('Plugin '.$pluginfile.' is already activated&#60;br /&#62;
'); } } } else { $this-&#38;gt;logMessage('Could not validate the plugin '.$pluginfile.'&#60;br /&#62;
'); //TODO LOG REASONS FOR NOT VALIDATING } } /** * Function to de-activate all plugins **/ function wpau_validate_file($file, $allowed_files = '') { if ( false !== strpos($file, './')) return 1; if (':' == substr($file,1,1)) return 2; if ( !empty($allowed_files) &#38;#38;&#38;#38; (! in_array($file, $allowed_files)) ) return 3; return 0; } } ?&#38;gt;&#60;br /&#62;
Fatal error: Class 'wpauPluginHandler' not found in /home/fhlinux141/m/meophamtennis.com/user/htdocs/wp-content/plugins/wordpress-automatic-upgrade/wordpress-automatic-upgrade.php on line 1140&#60;/p&#62;
&#60;p&#62;Whats happening and how can i fiz this?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
</item>

</channel>
</rss>
