Title: Warning: array_intersect_key()
Last modified: February 12, 2021

---

# Warning: array_intersect_key()

 *  Resolved [NoraFranco](https://wordpress.org/support/users/nfn5876/)
 * (@nfn5876)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/warning-array_intersect_key-2/)
 * Hej!
 * I use a theme that relies on Redux plugin and I’ve got a similar issue as this
   topic:
    [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/)
 * And here:
    [https://wordpress.org/support/topic/wordpress-5-6-upgrading-issue/](https://wordpress.org/support/topic/wordpress-5-6-upgrading-issue/)
 * **Debug.log Output after updating to WP 5.6, does not occur pre-5.6.**
 * `PHP Warning: array_intersect_key(): Expected parameter 1 to be an array, string
   given in /app/web/******/wp/wp-includes/rest-api/class-wp-rest-server.php on 
   line 1402`
 * My current version of Redux is 4.1.24, which is your latest I believe.
 * Warning goes away after deactivating Redux. Thnx!
    -  This topic was modified 5 years, 3 months ago by [NoraFranco](https://wordpress.org/support/users/nfn5876/).

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

 *  [mohammedeisa](https://wordpress.org/support/users/mohammedeisa/)
 * (@mohammedeisa)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/warning-array_intersect_key-2/#post-14055295)
 * Hi there,
 * Thanks for reaching out to the Redux support team.
 * Can you please guide me on how to replicate this issue?
 * Also, it will be helpful if you provided a more detailed debug log. You may mention
   the full error log of this issue.
 * Thanks.
 *  Thread Starter [NoraFranco](https://wordpress.org/support/users/nfn5876/)
 * (@nfn5876)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/warning-array_intersect_key-2/#post-14058910)
 * Thanks for responding so quickly. The warning appears to be triggered when opening
   a post or page to edit.
 * Using [Edumodo Theme](https://themeforest.net/item/edumodo-allinone-lms-education-theme-for-wordpress/20973202)
 * Full Warning Output:
 *     ```
        Warning:  array_intersect_key(): Expected parameter 1 to be an array, string given in /app/web/******/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1402
        Stack trace:
          1. {main}() /app/web/******/index.php:0
          2. require() /app/web/******/index.php:17
          3. wp() /app/web/******/wp/wp-blog-header.php:16
          4. WP->main() /app/web/******/wp/wp-includes/functions.php:1291
          5. WP->parse_request() /app/web/******/wp/wp-includes/class-wp.php:745
          6. do_action_ref_array() /app/web/******/wp/wp-includes/class-wp.php:388
          7. WP_Hook->do_action() /app/web/******/wp/wp-includes/plugin.php:551
          8. WP_Hook->apply_filters() /app/web/******/wp/wp-includes/class-wp-hook.php:311
          9. rest_api_loaded() /app/web/******/wp/wp-includes/class-wp-hook.php:287
         10. WP_REST_Server->serve_request() /app/web/******/wp/wp-includes/rest-api.php:354
         11. WP_REST_Server->dispatch() /app/web/******/wp/wp-includes/rest-api/class-wp-rest-server.php:440
         12. WP_REST_Server->respond_to_request() /app/web/******/wp/wp-includes/rest-api/class-wp-rest-server.php:1007
         13. WP_REST_Server->get_index() /app/web/******/wp/wp-includes/rest-api/class-wp-rest-server.php:1160
         14. WP_REST_Server->get_data_for_routes() /app/web/******/wp/wp-includes/rest-api/class-wp-rest-server.php:1243
         15. WP_REST_Server->get_data_for_route() /app/web/******/wp/wp-includes/rest-api/class-wp-rest-server.php:1324
         16. array_intersect_key() /app/web/******/wp/wp-includes/rest-api/class-wp-rest-server.php:1402
       ```
   
 *  [mohammedeisa](https://wordpress.org/support/users/mohammedeisa/)
 * (@mohammedeisa)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/warning-array_intersect_key-2/#post-14060495)
 * Hi,
 * Thanks for providing this information. Unfortunately, “Edumodo Theme” is a premium
   theme that we don’t have.
 * Kindly check this GitHub issue that has been reported for the same issue you 
   have: [https://github.com/reduxframework/redux-framework/issues/3767](https://github.com/reduxframework/redux-framework/issues/3767)
 * This GitHub issue shows that the user who reported the issue has confirmed that
   Redux version 4.1.24 fixes the issue.
 * I’m sorry to ask you the same question but you didn’t confirm that the issue 
   happens when only Redux and the Twenty Twenty one theme are active. Can you check
   that, please?
 * Thanks.
 *  Thread Starter [NoraFranco](https://wordpress.org/support/users/nfn5876/)
 * (@nfn5876)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/warning-array_intersect_key-2/#post-14102280)
 * Hello, when switching to the Twenty twenty theme, the warning no long shows in
   the debug output. I contacted the theme developer and they could not reproduce
   the warning and unfortunately I am unable to share our login credentials.
 * Upgrading to WP 5.6.2 did not solve the warning for me either 🙁
 * I will try a fresh install of Redux 4.1.24
 * Thanks
 *  [mohammedeisa](https://wordpress.org/support/users/mohammedeisa/)
 * (@mohammedeisa)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/warning-array_intersect_key-2/#post-14117087)
 * Hi,
 * In case they can’t reproduce the issue on a fresh installation, you might provide
   them a testing website where the issue exists or provide them a copy of your 
   website to work on it.

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

The topic ‘Warning: array_intersect_key()’ is closed to new replies.

 * ![](https://ps.w.org/redux-framework/assets/icon.svg?rev=2889347)
 * [Redux Framework](https://wordpress.org/plugins/redux-framework/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redux-framework/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redux-framework/)
 * [Active Topics](https://wordpress.org/support/plugin/redux-framework/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redux-framework/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redux-framework/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [mohammedeisa](https://wordpress.org/support/users/mohammedeisa/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/warning-array_intersect_key-2/#post-14117087)
 * Status: resolved