Title: class-wp-rest-server.php error
Last modified: December 10, 2020

---

# class-wp-rest-server.php error

 *  Resolved [daj8](https://wordpress.org/support/users/daj8/)
 * (@daj8)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/class-wp-rest-server-php-error/)
 * After upgrading to 5.6
 * When I click to post new~ it shows
 * Warning: array_intersect_key(): Expected parameter 1 to be an array, string given
   in /www/wwwroot/***********.com/wp-includes/rest-api/class-wp-rest-server.php
   on line 1402
 * Warning: array_intersect_key(): Expected parameter 1 to be an array, string given
   in /www/wwwroot/***********.com/wp-includes/rest-api/class-wp-rest-server.php
   on line 1402
 * Warning: array_intersect_key(): Expected parameter 1 to be an array, string given
   in /www/wwwroot/***********.com/wp-includes/rest-api/class-wp-rest-server.php
   on line 1402
 * Warning: array_intersect_key(): Expected parameter 1 to be an array, string given
   in /www/wwwroot/***********.com/wp-includes/rest-api/class-wp-rest-server.php
   on line 1402
 * Warning: array_intersect_key(): Expected parameter 1 to be an array, string given
   in /www/wwwroot/***********.com/wp-includes/rest-api/class-wp-rest-server.php
   on line 1402
 * Warning: Cannot modify header information – headers already sent by (output started
   at /www/wwwroot/***********.com/wp-includes/rest-api/class-wp-rest-server.php:
   1402) in /www/wwwroot/***********.com/wp-admin/admin-header.php on line 9

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

 *  Moderator [Dion Hulse](https://wordpress.org/support/users/dd32/)
 * (@dd32)
 * Meta Developer
 * [5 years, 6 months ago](https://wordpress.org/support/topic/class-wp-rest-server-php-error/#post-13768515)
 * Hi [@daj8](https://wordpress.org/support/users/daj8/),
 * This is most likely caused by one of your plugins being incompatible with WordPress
   5.6, ensure that all of your plugins have been updated.
 * There’s a few plugins which are known to cause this plugin and are being discussed
   over in this thread:
    [https://wordpress.org/support/topic/wordpress-5-6-upgrading-issue/](https://wordpress.org/support/topic/wordpress-5-6-upgrading-issue/)
 * To find the plugin that’s causing it for you, the best way is to deactivate all
   plugins, and re-activate them one-by-one until the error returns.
 *  Thread Starter [daj8](https://wordpress.org/support/users/daj8/)
 * (@daj8)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/class-wp-rest-server-php-error/#post-13768543)
 * thank you so much
 * Follow your method and found that it was caused by “Redux”
 *  Moderator [Dion Hulse](https://wordpress.org/support/users/dd32/)
 * (@dd32)
 * Meta Developer
 * [5 years, 6 months ago](https://wordpress.org/support/topic/class-wp-rest-server-php-error/#post-13768564)
 * > Follow your method and found that it was caused by “Redux”
 * Great! (Well, not great, but at least we know why now!)
 * For anyone else who finds this thread and is using Redux, the plugin author is
   aware and is fixing it over here: [https://wordpress.org/support/topic/reduxtemplates-api-bug-in-gutenberg-editor-in-wp-5-6/](https://wordpress.org/support/topic/reduxtemplates-api-bug-in-gutenberg-editor-in-wp-5-6/)
    -  This reply was modified 5 years, 6 months ago by [Dion Hulse](https://wordpress.org/support/users/dd32/).
 *  [eeats](https://wordpress.org/support/users/eeats/)
 * (@eeats)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/class-wp-rest-server-php-error/#post-14178814)
 * Hi there [@dd32](https://wordpress.org/support/users/dd32/).
 * I tried deactivating and reactivating my plugins but, it did not fix the problem.
   I’m still getting
 *     ```
       Warning: array_intersect_key(): Expected parameter 1 to be an array, string given in /home/customer/www/esculenteats.com/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1411.
   
       Thats the line:
       ```
   
 * if ( isset( $callback[‘args’] ) ) {
    $endpoint_data[‘args’] = array();
 *  foreach ( $callback[‘args’] as $key => $opts ) {
    $arg_data = array_intersect_key(
   $opts, $allowed_schema_keywords ); $arg_data[‘required’] = ! empty( $opts[‘required’]);
 *  $endpoint_data[‘args’][ $key ] = $arg_data;
    } }`
 * Please HELP!

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

The topic ‘class-wp-rest-server.php error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [eeats](https://wordpress.org/support/users/eeats/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/class-wp-rest-server-php-error/#post-14178814)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
