De-activate plugins stage wont work
  • When i get to this stage (deactivate plugins) i get this screen and cannot continue:

    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->query("Insert into ".WPAU_PLUGIN_TABLE." (plugin_name, plugin_status, plugin_deactive_response, plugin_reactive_response) values ('".$plugin."', 0, 1, 0)"); $this->logMessage('Deactivated the plugin '.$plugin.'
    '); } /* 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->get_results("select plugin_name, plugin_reactive_response from ".WPAU_PLUGIN_TABLE." where id = ".intval($fatalPluginId)); if(count($plugins) > 0) { if(intval($plugins[0]->plugin_reactive_response) != 1) { $this->logMessage('The Plugin '.$plugins[0]->plugin_name.' could not be activated succesfully. You will need to activate it manually.
    '); $wpdb->query("UPDATE ".WPAU_PLUGIN_TABLE." set fatal_plugin = 1 where id = ".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->query("Insert into ".WPAU_PLUGIN_TABLE." (plugin_name, plugin_status, plugin_deactive_response, plugin_reactive_response) values ('".$plugin."', 0, 1, 0)"); $this->logMessage('Deactivated the plugin '.$plugin.'
    '); } /* 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->get_results("select plugin_name, plugin_reactive_response from ".WPAU_PLUGIN_TABLE." where id = ".intval($fatalPluginId)); if(count($plugins) > 0) { if(intval($plugins[0]->plugin_reactive_response) != 1) { $this->logMessage('The Plugin '.$plugins[0]->plugin_name.' could not be activated succesfully. You will need to activate it manually.
    '); $wpdb->query("UPDATE ".WPAU_PLUGIN_TABLE." set fatal_plugin = 1 where id = ".intval($fatalPluginId) ); } } } $plugins = $wpdb->get_results("select id, plugin_name from ".WPAU_PLUGIN_TABLE." where plugin_status = 0 and plugin_deactive_response = 1 and fatal_plugin = 0"); if(count($plugins) == 0) $this->logMessage('All the plugins were re-activated'); foreach($plugins as $plugin) { if(strlen(trim($plugin->plugin_name)) > 0) $this->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->plugin_name; $pluginid = $plugin->id; $path = "../"; if ($automated) { $path = "../../"; } if ( wpau_validate_file($path.$pluginfile) ) { if ( ! file_exists(ABSPATH . PLUGINDIR . '/' . $pluginfile) ) { $this->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->query("Update ".WPAU_PLUGIN_TABLE." set plugin_status = 1, plugin_reactive_response = 1 where id = $pluginid"); $this->logMessage('Plugin '.$pluginfile.' was activated succesfully
    '); } else { $this->logMessage('Plugin '.$pluginfile.' could not be activated succesfully. You will need to activate it manually.
    '); } ob_end_clean(); } else { $this->logMessage('Plugin '.$pluginfile.' is already activated
    '); } } } else { $this->logMessage('Could not validate the plugin '.$pluginfile.'
    '); //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) && (! in_array($file, $allowed_files)) ) return 3; return 0; } } ?>
    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

    Whats happening and how can i fiz this?

    Thanks

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!