Title: PHP error: Undefined array key &#8220;data_tabs&#8221;
Last modified: February 14, 2023

---

# PHP error: Undefined array key “data_tabs”

 *  Resolved [gmariani405](https://wordpress.org/support/users/gmariani405/)
 * (@gmariani405)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-error-undefined-array-key-data_tabs/)
 *     ```wp-block-code
       PHP Warning:  Undefined array key "data_tabs" in /chroot/home/USER_NAME/html/wp-content/plugins/facebook-pagelike-widget/fb_class.php on line 36
       ```
   
 * This looks to be related to the poor handling of this check, I’d suggest checking
   that the property exists first. That should help fix this error.
 *     ```wp-block-code
       if($instance['data_tabs'] != '')
       // to
       if (array_key_exists('data_tabs', $instance) && $instance['data_tabs'] !== '')
       ```
   

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

 *  Plugin Author [Milap](https://wordpress.org/support/users/milap/)
 * (@milap)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-error-undefined-array-key-data_tabs/#post-16485265)
 * Hi [@gmariani405](https://wordpress.org/support/users/gmariani405/),
 * Thank you for your suggestion. I have updated code as you mentioned.
 * Best Regards, Milap
 *  Thread Starter [gmariani405](https://wordpress.org/support/users/gmariani405/)
 * (@gmariani405)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-error-undefined-array-key-data_tabs/#post-16489252)
 * thanks!

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

The topic ‘PHP error: Undefined array key “data_tabs”’ is closed to new replies.

 * ![](https://ps.w.org/facebook-pagelike-widget/assets/icon-256x256.png?rev=3518584)
 * [Buttonizer - Social Media Share Buttons, Social Icons, & Social Feeds](https://wordpress.org/plugins/facebook-pagelike-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/facebook-pagelike-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/facebook-pagelike-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook-pagelike-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook-pagelike-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook-pagelike-widget/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [gmariani405](https://wordpress.org/support/users/gmariani405/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/php-error-undefined-array-key-data_tabs/#post-16489252)
 * Status: resolved