Title: [Plugin: Mini twitter feed] Error Handling
Last modified: August 20, 2016

---

# [Plugin: Mini twitter feed] Error Handling

 *  Resolved [Dani-Girl](https://wordpress.org/support/users/dani-girl/)
 * (@dani-girl)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-mini-twitter-feed-error-handling/)
 * Is there a error message or detection that appears if Twitter feeds go down and
   won’t display?
 * Is it possible to add this into the existing code, so visitors will not be met
   with a blank area?
 * [http://wordpress.org/extend/plugins/mini-twitter-feed/](http://wordpress.org/extend/plugins/mini-twitter-feed/)

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

 *  Plugin Author [oniswap](https://wordpress.org/support/users/webdevdesigner/)
 * (@webdevdesigner)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-mini-twitter-feed-error-handling/#post-2884482)
 * No, there is no message. It is possible to add it, maybe it will be added in 
   the next update.
 *  [avioli](https://wordpress.org/support/users/avioli/)
 * (@avioli)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-mini-twitter-feed-error-handling/#post-2884653)
 * By enabling WP_DEBUG inside your wp-config.php you’ll notice several errors within
   your plugin code:
 * Function **form** inside the **MinitwitterWidget** class doesn’t initialise the
   variables of the $instance:
 *     ```
       function form($instance) {
       $instance = array_merge( array(
        'username' => ''
        ,'limit' => ''
        ,'list' => ''
        ,'query' => ''
       ), (array)$instance );
       ?>
       ```
   
 * Same thing with the **widget** function within the same class. This won’t even
   show as an error, since as soon as you instantiate the widget into a sidebar 
   it’s default values are saved. At least check for empty(). BTW if you have WP_DEBUG
   turned on the default values are the error notices!
 * Thank god that shortcode_atts() deals with this on its own.
 * And the last one – this line: `add_shortcode('minitwitter', mtf_create_shortcode);`
   should have quotes:`add_shortcode('minitwitter', 'mtf_create_shortcode');`, otherwise
   the second argument is considered an undefined constant, and yields an error 
   notice. It’s a notice, since undefined constants default to their names as strings.
 * Cheers.
 *  Plugin Author [oniswap](https://wordpress.org/support/users/webdevdesigner/)
 * (@webdevdesigner)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-mini-twitter-feed-error-handling/#post-2884655)
 * Thank you for your messages I will take a look and update it.

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

The topic ‘[Plugin: Mini twitter feed] Error Handling’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mini-twitter-feed_aed2e8.svg)
 * [Mini twitter feed](https://wordpress.org/plugins/mini-twitter-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mini-twitter-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mini-twitter-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/mini-twitter-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mini-twitter-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mini-twitter-feed/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [oniswap](https://wordpress.org/support/users/webdevdesigner/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-mini-twitter-feed-error-handling/#post-2884655)
 * Status: resolved