Title: ERROR: Undefined variable: promo_posts
Last modified: August 20, 2016

---

# ERROR: Undefined variable: promo_posts

 *  Resolved [wowujerry](https://wordpress.org/support/users/wowujerry/)
 * (@wowujerry)
 * [15 years ago](https://wordpress.org/support/topic/error-undefined-variable-promo_posts/)
 * I have installed your slider on my wife’s piano business site ([http://www.joyfulnoisemusicstudio.com](http://www.joyfulnoisemusicstudio.com)).
   The slider looks and works great EXCEPT…I am receiving the following line of 
   code as an error just ABOVE the slider:
 * “Notice: Undefined variable: promo_posts in /home2/wowyouwe/public_html/joyfulnoisemusicstudio/
   wp-content/plugins/promotion-slider/index.php on line 325”
 * Can you please help me understand this? Occasionally, when I am creating a promotion
   and then save it, I also see similar error code, occasionally even three lines
   of it. I would appreciate all your help. I don’t see any other problem like this
   in the forum.

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

 *  Plugin Author [Micah Wood](https://wordpress.org/support/users/woodent/)
 * (@woodent)
 * [15 years ago](https://wordpress.org/support/topic/error-undefined-variable-promo_posts/#post-2140033)
 * Thanks for alerting me to this error. I made a semantic error with that line 
   of code, but the error will never cause the plugin to do anything but return 
   that notice. Notices normally aren’t shown on a site unless debugging is enabled.
   It would seem that WP_DEBUG in your wp-config.php file is set to true, or debugging
   is enabled in some other way on your site. I would highly recommend disabling
   this for any live site.
 * Meanwhile, I will correct the cause of this error. I am not sure why I wasn’t
   seeing this error during debugging, but it is an easy fix. This will be fixed
   in the next release of the plugin. Thanks!
 *  Thread Starter [wowujerry](https://wordpress.org/support/users/wowujerry/)
 * (@wowujerry)
 * [15 years ago](https://wordpress.org/support/topic/error-undefined-variable-promo_posts/#post-2140059)
 * Thanks for the quick response! I really appreciate you adding this to the next
   update. I am still puzzled though, as WP_DEBUG (in wp-config.php file) is set
   to false on my site. I looked into several hooks that I am using and don’t see
   it active there, either.
    I am quite new to all things code and if you have any
   insight into what other code I am missing or setting in my WP installation, I
   would be appreciative. _I commit to repeating past mistakes–so I can make new
   ones!_ Regards! jmcnamara (wowujerry)
 *  Plugin Author [Micah Wood](https://wordpress.org/support/users/woodent/)
 * (@woodent)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/error-undefined-variable-promo_posts/#post-2140177)
 * If WP_DEBUG is set to false, there could be some code just about anywhere that
   causes the errors to show. Sorry, not much help, I know…

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

The topic ‘ERROR: Undefined variable: promo_posts’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/promotion-slider.svg)
 * [Promotion Slider](https://wordpress.org/plugins/promotion-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/promotion-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/promotion-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/promotion-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/promotion-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/promotion-slider/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Micah Wood](https://wordpress.org/support/users/woodent/)
 * Last activity: [14 years, 12 months ago](https://wordpress.org/support/topic/error-undefined-variable-promo_posts/#post-2140177)
 * Status: resolved