Title: undefined variable with wp_debug true
Last modified: August 30, 2016

---

# undefined variable with wp_debug true

 *  Resolved [wizzud](https://wordpress.org/support/users/wizzud/)
 * (@wizzud)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-with-wp_debug-true/)
 * Just a heads-up…
 * v1.7.15 of Rotating Tweets reports
 *     ```
       Notice: Undefined variable: show_media in ..../wp-content/plugins/rotatingtweets/rotatingtweets.php on line 1763
       ```
   
 * when WP_DEBUG is true and using a custom format.
 * From a quick look at the code, I think it’s simply a case of setting `$show_media
   = '';` immediately inside the
    `if(isset($entities['media'])):` clause at line
   1662 (or take it out of the `else` and move it immediately in front of line 1662
   if you prefer?).
 * Neat plugin.
    Regards…
 * [https://wordpress.org/plugins/rotatingtweets/](https://wordpress.org/plugins/rotatingtweets/)

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

 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-with-wp_debug-true/#post-6446496)
 * Good catch! Thank you…
 * I went with option 2! 🙂
 * Hopefully fixed in the [development version](https://downloads.wordpress.org/plugin/rotatingtweets.zip)!
 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-with-wp_debug-true/#post-6446712)
 * Fixed in version 1.7.16.

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

The topic ‘undefined variable with wp_debug true’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/rotatingtweets.svg)
 * [Rotating Tweets (Twitter widget and shortcode)](https://wordpress.org/plugins/rotatingtweets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rotatingtweets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rotatingtweets/)
 * [Active Topics](https://wordpress.org/support/plugin/rotatingtweets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rotatingtweets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rotatingtweets/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-with-wp_debug-true/#post-6446712)
 * Status: resolved