Title: class-wp-rest-server.php error
Last modified: March 29, 2021

---

# class-wp-rest-server.php error

 *  Resolved [spinaltech](https://wordpress.org/support/users/spinaltech/)
 * (@spinaltech)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/class-wp-rest-server-php-error-2/)
 * When I click to post new~ it shows
    warning: array_intersect_key(): expected 
   parameter 1 to be an array, string given in /homepages/25/d864730747/htdocs/clickandbuilds/
   beta/wp-includes/rest-api/class-wp-rest-server.php on line 1411 warning: array_intersect_key():
   expected parameter 1 to be an array, string given in /homepages/25/d864730747/
   htdocs/clickandbuilds/beta/wp-includes/rest-api/class-wp-rest-server.php on line
   1411
 * And when i disable the plugin the error disappear

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

 *  [ijas](https://wordpress.org/support/users/ijasacodez/)
 * (@ijasacodez)
 * [5 years ago](https://wordpress.org/support/topic/class-wp-rest-server-php-error-2/#post-14411104)
 * Sorry for the inconvenience, we have passed the same to our development team.
   We will get back to you with the updates very soon.
 *  [manojknaikade](https://wordpress.org/support/users/manojknaikade/)
 * (@manojknaikade)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/class-wp-rest-server-php-error-2/#post-14521198)
 * Did you able to find the root cause? I am not using this plugin but getting exact
   same error including the line number.
 *  [ijas](https://wordpress.org/support/users/ijasacodez/)
 * (@ijasacodez)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/class-wp-rest-server-php-error-2/#post-14527143)
 * Can you please let us know the php and wordpress versions, so that we can setup
   a similar environment and check for the same. We have checked with few versions,
   its working fine on our local / demo servers.
 *  [ijas](https://wordpress.org/support/users/ijasacodez/)
 * (@ijasacodez)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/class-wp-rest-server-php-error-2/#post-14634149)
 * [@spinaltech](https://wordpress.org/support/users/spinaltech/) Sorry for the 
   delay, we have released a new update with the fix, please update your plugin 
   to the latest version.
 * [@manojknaikade](https://wordpress.org/support/users/manojknaikade/) the issue
   is caused because of the missing parameters in $args while register rest API 
   routes ‘register_rest_route’

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

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

 * ![](https://ps.w.org/aco-product-labels-for-woocommerce/assets/icon-256x256.png?
   rev=2835042)
 * [Product Labels For Woocommerce (Sale Badges)](https://wordpress.org/plugins/aco-product-labels-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/aco-product-labels-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/aco-product-labels-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/aco-product-labels-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/aco-product-labels-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/aco-product-labels-for-woocommerce/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [ijas](https://wordpress.org/support/users/ijasacodez/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/class-wp-rest-server-php-error-2/#post-14634149)
 * Status: resolved