Title: Bugs: Undefined variables
Last modified: July 19, 2017

---

# Bugs: Undefined variables

 *  Resolved [theemstra](https://wordpress.org/support/users/theemstra/)
 * (@theemstra)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/undefined-variables-new-fb-api/)
 * I found that there’s two issues with the current plugin version.
 * **Undefined variable name**
    Fix:
 * In fbgallery.php on line 128
    `if( isset($values['name']) && $values['name'] 
   == '' ){ $caption = ""; } else{ $caption = $values['name']; }`
 * Should be:
    `if( isset($values['name']) && $values['name'] == '' ){ $caption 
   = $values['name']; } else{ $caption = ""; }`
 * **Undefined variable x**
    Add after line 125: `$x = 0;`
    -  This topic was modified 8 years, 9 months ago by [theemstra](https://wordpress.org/support/users/theemstra/).

The topic ‘Bugs: Undefined variables’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/responsive-facebook-gallery_24c480.
   svg)
 * [Responsive Facebook Gallery](https://wordpress.org/plugins/responsive-facebook-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsive-facebook-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsive-facebook-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/responsive-facebook-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsive-facebook-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsive-facebook-gallery/reviews/)

## Tags

 * [PHP7](https://wordpress.org/support/topic-tag/php7/)
 * [undefined](https://wordpress.org/support/topic-tag/undefined/)

 * 0 replies
 * 1 participant
 * Last reply from: [theemstra](https://wordpress.org/support/users/theemstra/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/undefined-variables-new-fb-api/)
 * Status: resolved