Title: Warning: Undefined array key &#8220;type&#8221;
Last modified: June 17, 2021

---

# Warning: Undefined array key “type”

 *  Resolved [47links](https://wordpress.org/support/users/47links/)
 * (@47links)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-type/)
 * If the ‘type’ key is not defined in the $option array, the code keeps creating
   the following record in the log.
 *     ```
       Warning: Undefined array key "type"
   
       /wp-content/plugins/bp-restrict/includes/options/inc/extensions/customizer/extension_customizer.php in ReduxFramework_extension_customizer::_register_customizer_controls at line 507
       ```
   

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

 *  [john](https://wordpress.org/support/users/johnweru/)
 * (@johnweru)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-type/#post-14569570)
 * Hey there,
 * Thanks for reaching out to us.
 * With respect to your query here, would you mind elaborating on the exact replication
   process to this warning.
 * I look forward to your reply.
 * Kind Regards
 *  Thread Starter [47links](https://wordpress.org/support/users/47links/)
 * (@47links)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-type/#post-14571390)
 * Don’t know how to replicate it exactly. A lot of people are using our site. And
   didn’t have time to investigate it how to replicate it.
 * But this would stop the warning…
 * /wp-content/plugins/bp-restrict/includes/options/inc/extensions/customizer/extension_customizer.
   php line 507
 * Replacing…
 * `if ( $option['type'] != "heading" && $option['type'] != "import_export" && !
   empty( $option['type'] ) ) {`
 * …with…
 * `if ( isset( $option['type'] ) && $option['type'] != "heading" && $option['type']!
   = "import_export" && ! empty( $option['type'] ) ) {`
 *  [john](https://wordpress.org/support/users/johnweru/)
 * (@johnweru)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-type/#post-14581918)
 * Hey there,
 * Thanks for the update.
 * I’m glad to hear that you managed to have this figured out.
 * Kind Regards

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

The topic ‘Warning: Undefined array key “type”’ is closed to new replies.

 * ![](https://ps.w.org/bp-restrict/assets/icon-256x256.png?rev=1899020)
 * [Restrictions for BuddyPress](https://wordpress.org/plugins/bp-restrict/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bp-restrict/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bp-restrict/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-restrict/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-restrict/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-restrict/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [john](https://wordpress.org/support/users/johnweru/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-type/#post-14581918)
 * Status: resolved