Title: Plugin errors after updating wordpress
Last modified: May 2, 2017

---

# Plugin errors after updating wordpress

 *  [bilslandlewis](https://wordpress.org/support/users/bilslandlewis/)
 * (@bilslandlewis)
 * [9 years ago](https://wordpress.org/support/topic/plugin-errors-after-updating-wordpress/)
 * I updated to the latest version of wordpress, before doing this I made sure all
   plugins were updated.
 * After updating I had some problems, the site stated Page not found in the browser
 * I renamed the plugins folder and the site came back, out of the 6 plugins I can
   reinstated only two, any of the other 4 bring the site down.
 * I have manually removed each of the plugins and tried to clean with new versions,
   tried a manual update of wordpress to check if any files corrupt, also attempted
   a repair and optimisation of the database.
 * None of this helps, still trying to activate these plugins brings the site down.
 * From my site logs it mentions the following errors:
 *     ```
       PHP Warning:  array_key_exists() expects parameter 2 to be 
       array, null given in siteaddress/admin/options-sanitize.php 
       on line 79, referer: siteaddress/wp-admin/index.php
       ```
   
 * also
 *     ```
       PHP Fatal error:  Allowed memory size of 41943040 bytes 
       exhausted (tried to allocate 1966080 bytes)
       ```
   
 * These errors appear numerous times for the plugins in use
 * PHP version I have on the server is PHP 5.5
 * Any ideas would be really helpful

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

 *  [djenciduquene](https://wordpress.org/support/users/djenciduquene/)
 * (@djenciduquene)
 * [9 years ago](https://wordpress.org/support/topic/plugin-errors-after-updating-wordpress/#post-9088137)
 * About which plugins you’re talking about? Could be that they don’t support the
   new WordPress version?
 * It could be a problem involving your theme also. Try to use a standard wordpress
   theme for a sec, and see if the errors continue.
 * The first error problem indicates that siteaddress/admin/options-sanitize.php
   
   on line 79, is not an array. In my opinion your theme or one of your plugins 
   is not able to support new WordPress update.
 * Second error you could try to bypass by adding … “define( ‘WP_MEMORY_LIMIT’, ‘
   256M’ );” in your WP-Config.
 * Login to your Cpanel or DirectAdmin and try to change to PHP7.
 * _“PHP Warning: array\_key\_exists() expects parameter 2 to be
    array, null given
   in siteaddress/admin/options-sanitize.php on line 79, referer: siteaddress/wp-
   admin/index.php”
 * Could you paste line 79 here in the forum one time?
 *  Thread Starter [bilslandlewis](https://wordpress.org/support/users/bilslandlewis/)
 * (@bilslandlewis)
 * [9 years ago](https://wordpress.org/support/topic/plugin-errors-after-updating-wordpress/#post-9088695)
 * Hi Djenci
    The plugins I have in use that break the site are:
 * Contact form 7
    mappress simple 301 redirects wordpress seo (yoast) wp-spamfree
 * the only plugins that work and do not break the site are:
    advanced custom fields
   acf repeater
 * line 79 for options-sanitize is:
    `if ( array_key_exists( $input, $option['options'])){`
 * it is part of this function …
 *     ```
       /* Check that the key value sent is valid */
   
       function of_sanitize_enum( $input, $option ) {
       	$output = '';
       	if ( array_key_exists( $input, $option['options'] ) ) {
       		$output = $input;
       	}
       	return $output;
       }
       ```
   
 *  [sinip](https://wordpress.org/support/users/sinip/)
 * (@sinip)
 * [9 years ago](https://wordpress.org/support/topic/plugin-errors-after-updating-wordpress/#post-9089534)
 * Contact form 7 and Yoast work with the latest WP without any problems. So they,
   on they own, are not the cause.
 *  Thread Starter [bilslandlewis](https://wordpress.org/support/users/bilslandlewis/)
 * (@bilslandlewis)
 * [9 years ago](https://wordpress.org/support/topic/plugin-errors-after-updating-wordpress/#post-9090175)
 * I switched over to a default theme and all working fine.
 * I added the line for more memory in the wp-config file.
 * Asked host to upgrade version of php and allocate more memory and cpu execution
   time.
 * All working well now and able to get plugins running again.
 * Thanks for taking the time to help 🙂

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

The topic ‘Plugin errors after updating wordpress’ is closed to new replies.

## Tags

 * [array_key_exists](https://wordpress.org/support/topic-tag/array_key_exists/)
 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)
 * [update](https://wordpress.org/support/topic-tag/update/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [bilslandlewis](https://wordpress.org/support/users/bilslandlewis/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/plugin-errors-after-updating-wordpress/#post-9090175)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
