Title: Plugin Error -what can I do?
Last modified: August 19, 2016

---

# Plugin Error -what can I do?

 *  [geester1](https://wordpress.org/support/users/geester1/)
 * (@geester1)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-error-what-can-i-do/)
 * My site has been fine until 2 days, started giving out 500 internal server error
   messages when I published new post. So I looked on this forum and added 2 lines
   of text to .htaccess and still the same, so changed them back.
 * Then I looked in my cpanel error log, and found a fatal error with the xml sitemap,
   however when I click on plugins installed, I get the following message.
 * $time) { if ( isset($recent[ $plugin ]) ) unset($recent[ $plugin ]); } if( $recent!
   = get_option(‘recently_activated’) ) //If array changed, update it. update_option(‘
   recently_activated’, $recent); wp_redirect(‘plugins.php?activate-multi=true’);
   exit; break; case ‘error_scrape’: check_admin_referer(‘plugin-activation-error_’.
   $plugin); $valid = validate_plugin($plugin); if ( is_wp_error($valid) ) wp_die(
   $valid); error_reporting( E_ALL ^ E_NOTICE ); @ini_set(‘display_errors’, true);//
   Ensure that Fatal errors are displayed. include(WP_PLUGIN_DIR . ‘/’ . $plugin);
   do_action(‘activate_’ . $plugin); exit; break; case ‘deactivate’: check_admin_referer(‘
   deactivate-plugin_’ . $plugin); deactivate_plugins($plugin); update_option(‘recently_activated’,
   array($plugin => time()) + (array)get_option(‘recently_activated’)); wp_redirect(‘
   plugins.php?deactivate=true’); exit; break; case ‘deactivate-selected’: check_admin_referer(‘
   bulk-manage-plugins’); deactivate_plugins($_POST[‘checked’]); $deactivated = 
   array(); foreach ( (array)$_POST[‘checked’] as $plugin ) $deactivated[ $plugin]
   = time(); update_option(‘recently_activated’, $deactivated + (array)get_option(‘
   recently_activated’)); wp_redirect(‘plugins.php?deactivate-multi=true’); exit;
   break; case ‘delete-selected’: if ( ! current_user_can(‘delete_plugins’) ) wp_die(
   __(‘You do not have sufficient permissions to delete plugins for this blog.’));
   check_admin_referer(‘bulk-manage-plugins’); $plugins = $_REQUEST[‘checked’]; //
   $_POST = from the plugin form; $_GET = from the FTP details screen. include(ABSPATH.‘
   wp-admin/update.php’); $title = __(‘Delete Plugin’); $parent_file = ‘plugins.
   php’; if ( ! isset($_REQUEST[‘verify-delete’]) ) { wp_enqueue_script(‘jquery’);
   require_once(‘admin-header.php’); ?>
 *  ‘, sprintf(__(‘%s by %s’), $plugin[‘Name’], $plugin[‘Author’]), ”; ?>
 * When I click on delete plugins, I am redirected to my blog page 404 – page not
   found!
 * What can I do to reolve this, as the blog is working fine but I cannot add fresh
   material.
 * Any help is appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-error-what-can-i-do/#post-1183196)
 * Try [resetting the plugins folder](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)
   by FTP or phpMyAdmin. If this works, re-activate the plugins one by one until
   you find the problematic plugin(s).
 *  Thread Starter [geester1](https://wordpress.org/support/users/geester1/)
 * (@geester1)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-error-what-can-i-do/#post-1183327)
 * cant re-active, as when I go to plugin page, I am confronted with php code as
   above!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin Error -what can I do?’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [geester1](https://wordpress.org/support/users/geester1/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-error-what-can-i-do/#post-1183327)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
