Title: &#039;Undefined variable&#039; message on page
Last modified: August 22, 2016

---

# 'Undefined variable' message on page

 *  Resolved [cmeers](https://wordpress.org/support/users/cmeers/)
 * (@cmeers)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/undefined-variable-message-on-page/)
 * Hi, the plugin works great, with the exception of getting messages output onto
   the pages that include a thumbnail gallery. I deactivated every developer/debug
   plugin but kept getting the messages.
 * After initially publishing a thumbnail gallery, I get a page with readout like
   this:
 * **Notice: Undefined index: name in /home/whitney/public_html/14_wp/wp-content/
   plugins/foothumbnails-for-galleries/includes/metaboxes/class.cmb-meta-box.php
   on line 332**
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/whitney/public_html/14_wp/wp-content/plugins/foothumbnails-for-galleries/
   includes/metaboxes/class.cmb-meta-box.php:332) in /home/whitney/public_html/14_wp/
   wp-includes/pluggable.php on line 1179
 * Then on [page](http://www.whitneydesign.net/14_wp/print/) itself, a readout like
   this:
 * **Notice: Undefined variable: post_id in /home/whitney/public_html/14_wp/wp-content/
   plugins/foothumbnails-for-galleries/includes/shortcode.php on line 12**
 * Notice: Undefined variable: ftg_layout in /home/whitney/public_html/14_wp/wp-
   content/plugins/foothumbnails-for-galleries/includes/shortcode.php on line 13
 * Notice: Undefined variable: ftg_title in /home/whitney/public_html/14_wp/wp-content/
   plugins/foothumbnails-for-galleries/includes/shortcode.php on line 14
 * Thanks in advance for helping me with this!
 * [https://wordpress.org/plugins/foothumbnails-for-galleries/](https://wordpress.org/plugins/foothumbnails-for-galleries/)

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

 *  Plugin Author [Matt Cromwell](https://wordpress.org/support/users/webdevmattcrom/)
 * (@webdevmattcrom)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/undefined-variable-message-on-page/#post-5569741)
 * Hi there, thanks for the heads up. Can you tell me a little about your WordPress
   environment so I can try to duplicate this problem? Can you post a link to a 
   screenshot of all your active plugins for example? What version of WordPress 
   are you using? That would help me duplicate the problem. Thanks!
 *  Thread Starter [cmeers](https://wordpress.org/support/users/cmeers/)
 * (@cmeers)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/undefined-variable-message-on-page/#post-5569779)
 * Thanks for reply, [@webdevmattcrom](https://wordpress.org/support/users/webdevmattcrom/).
 * I finally remembered I had switched the ‘false’ in define(‘WP_DEBUG’, false) 
   to ‘true’ in ‘wp-config.php’
 *  Plugin Author [Matt Cromwell](https://wordpress.org/support/users/webdevmattcrom/)
 * (@webdevmattcrom)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/undefined-variable-message-on-page/#post-5569834)
 * Thanks for the update, regardless, the plugin shouldn’t be throwing those errors
   with debug turned on.
 * I’m currently working on a pretty serious update to this. Watch for it within
   the next couple weeks.
 * Thanks!
 *  [talyiana](https://wordpress.org/support/users/talyiana/)
 * (@talyiana)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/undefined-variable-message-on-page/#post-5569842)
 * Hi there,
 * Unfortunately this plugin is not working for me and I would SO LOVE to get this
   working:) The thumbnail gallery is not showing on the page where it should be
   and the exact same thing is happening to me as the user cmeer wrote above. Here
   is the output I am getting on the pages where the thumbnail should be (I also
   have debug turned on):
 * Notice: Undefined variable: post_id in /hermes/waloraweb064/b799/hoc.codyman/
   snc/wp-content/plugins/foothumbnails-for-galleries/includes/shortcode.php on 
   line 12 Notice: Undefined variable: ftg_layout in /hermes/waloraweb064/b799/hoc.
   codyman/snc/wp-content/plugins/foothumbnails-for-galleries/includes/shortcode.
   php on line 13 Notice: Undefined variable: ftg_title in /hermes/waloraweb064/
   b799/hoc.codyman/snc/wp-content/plugins/foothumbnails-for-galleries/includes/
   shortcode.php on line 14
 * You can take a look at the page by first going to [http://www.stnickscloset.com/private](http://www.stnickscloset.com/private)
   and then going to [http://www.stnickscloset.com/?page_id=742](http://www.stnickscloset.com/?page_id=742)
 * Here is a link to a screenshot of all the plugins currently installed: [http://aboutpeachtreecity.com/junk/plugins.jpg](http://aboutpeachtreecity.com/junk/plugins.jpg)
 *  [talyiana](https://wordpress.org/support/users/talyiana/)
 * (@talyiana)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/undefined-variable-message-on-page/#post-5569843)
 * PS I have WordPress 4.1.1…

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

The topic ‘'Undefined variable' message on page’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/foothumbnails-for-galleries_696868.
   svg)
 * [FooThumbnail Gallery](https://wordpress.org/plugins/foothumbnails-for-galleries/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/foothumbnails-for-galleries/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/foothumbnails-for-galleries/)
 * [Active Topics](https://wordpress.org/support/plugin/foothumbnails-for-galleries/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/foothumbnails-for-galleries/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/foothumbnails-for-galleries/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [talyiana](https://wordpress.org/support/users/talyiana/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/undefined-variable-message-on-page/#post-5569843)
 * Status: resolved