Title: PHP errors when a new instance is created
Last modified: August 22, 2016

---

# PHP errors when a new instance is created

 *  Resolved [bvucp](https://wordpress.org/support/users/bvucp/)
 * (@bvucp)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-errors-when-a-new-instance-is-created/)
 * I’m seeing a few PHP errors whenever I create a new instance of the widget by
   dragging & dropping into a widget area:
 * Notice: Undefined index: name in ***TOP_FOLDERS***/wordpress/wp-content/plugins/
   really-simple-twitter-feed-widget/really_simple_twitter_widget.php on line 221
   Call Stack: 0.0008 856680 1. {main}() ***TOP_FOLDERS***/wordpress/wp-admin/widgets.
   php:0 0.1402 16520648 2. wp_list_widgets() ***TOP_FOLDERS***/wordpress/wp-admin/
   widgets.php:342 0.1452 16545024 3. call_user_func_array() ***TOP_FOLDERS***/wordpress/
   wp-admin/includes/widgets.php:45 0.1453 16545640 4. wp_widget_control() ***TOP_FOLDERS***/
   wordpress/wp-admin/includes/widgets.php:45 0.1454 16550872 5. call_user_func_array()***
   TOP_FOLDERS***/wordpress/wp-admin/includes/widgets.php:212 0.1454 16551360 6.
   WP_Widget->form_callback() ***TOP_FOLDERS***/wordpress/wp-admin/includes/widgets.
   php:212 0.1455 16552560 7. ReallySimpleTwitterWidget->form() ***TOP_FOLDERS***/
   wordpress/wp-includes/widgets.php:342 Notice: Undefined index: default in ***
   TOP_FOLDERS***/wordpress/wp-content/plugins/really-simple-twitter-feed-widget/
   really_simple_twitter_widget.php on line 221 Call Stack: 0.0008 856680 1. {main}()***
   TOP_FOLDERS***/wordpress/wp-admin/widgets.php:0 0.1402 16520648 2. wp_list_widgets()***
   TOP_FOLDERS***/wordpress/wp-admin/widgets.php:342 0.1452 16545024 3. call_user_func_array()***
   TOP_FOLDERS***/wordpress/wp-admin/includes/widgets.php:45 0.1453 16545640 4. 
   wp_widget_control() ***TOP_FOLDERS***/wordpress/wp-admin/includes/widgets.php:
   45 0.1454 16550872 5. call_user_func_array() ***TOP_FOLDERS***/wordpress/wp-admin/
   includes/widgets.php:212 0.1454 16551360 6. WP_Widget->form_callback() ***TOP_FOLDERS***/
   wordpress/wp-admin/includes/widgets.php:212 0.1455 16552560 7. ReallySimpleTwitterWidget-
   >form() ***TOP_FOLDERS***/wordpress/wp-includes/widgets.php:342
 * [https://wordpress.org/plugins/really-simple-twitter-feed-widget/](https://wordpress.org/plugins/really-simple-twitter-feed-widget/)

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

 *  Thread Starter [bvucp](https://wordpress.org/support/users/bvucp/)
 * (@bvucp)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-errors-when-a-new-instance-is-created/#post-5568055)
 * I’m also getting a rash of undefined index notices whenever saving a widget instance.
   The foreach loops on lines 204 and 217 just need to check if the index in question
   is actually set, I think.
 *  Plugin Contributor [whiletrue](https://wordpress.org/support/users/whiletrue/)
 * (@whiletrue)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-errors-when-a-new-instance-is-created/#post-5568098)
 * Hi, I’m releasing a fix (2.5.12 release) in minutes. Please check if it solves
   the issue. Thanks for reporting it!
 *  Thread Starter [bvucp](https://wordpress.org/support/users/bvucp/)
 * (@bvucp)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-errors-when-a-new-instance-is-created/#post-5568113)
 * Wow, you were on top of that!
 * I’m afraid I’m still getting a repeated “Undefined index” notice via ReallySimpleTwitterWidget-
   >update() on both creation and update. Example:
 * [Thu Dec 11 09:30:45 2014] [error] [client ***] PHP Notice: Undefined index: 
   erase_cached_data in ***TOP_FOLDER***/wordpress/wp-content/plugins/really-simple-
   twitter-feed-widget/really_simple_twitter_widget.php on line 211, referer: ***
   [
   Thu Dec 11 09:30:45 2014] [error] [client ***] PHP Stack trace:, referer: ***[
   Thu Dec 11 09:30:45 2014] [error] [client ***] PHP 1. {main}() ***TOP_FOLDER***/
   wordpress/wp-admin/admin-ajax.php:0, referer: *** [Thu Dec 11 09:30:45 2014] [
   error] [client ***] PHP 2. do_action() ***TOP_FOLDER***/wordpress/wp-admin/admin-
   ajax.php:85, referer: *** [Thu Dec 11 09:30:45 2014] [error] [client ***] PHP
   3. call_user_func_array() ***TOP_FOLDER***/wordpress/wp-includes/plugin.php:505,
   referer: *** [Thu Dec 11 09:30:45 2014] [error] [client ***] PHP 4. wp_ajax_save_widget()***
   TOP_FOLDER***/wordpress/wp-includes/plugin.php:505, referer: *** [Thu Dec 11 
   09:30:45 2014] [error] [client ***] PHP 5. call_user_func_array() ***TOP_FOLDER***/
   wordpress/wp-admin/includes/ajax-actions.php:1785, referer: *** [Thu Dec 11 09:
   30:45 2014] [error] [client ***] PHP 6. WP_Widget->update_callback() ***TOP_FOLDER***/
   wordpress/wp-admin/includes/ajax-actions.php:1785, referer: *** [Thu Dec 11 09:
   30:45 2014] [error] [client ***] PHP 7. ReallySimpleTwitterWidget->update() ***
   TOP_FOLDER***/wordpress/wp-includes/widgets.php:275, referer: ***
 *  Plugin Contributor [whiletrue](https://wordpress.org/support/users/whiletrue/)
 * (@whiletrue)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-errors-when-a-new-instance-is-created/#post-5568132)
 * Hi, the new 2.5.13 release, out now, should fix your other issue. Unfortunately
   I’m not getting these PHP notices on my test environments (even with E_ALL error_reporting
   active, probably we’re on different PHP releases) so I’m forced to follow your
   error strings.
 *  Thread Starter [bvucp](https://wordpress.org/support/users/bvucp/)
 * (@bvucp)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-errors-when-a-new-instance-is-created/#post-5568142)
 * Yep, that fixed the remaining notices. Thank you!
 * (If you’re curious, PHP version is 5.3.10 on Ubuntu)

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

The topic ‘PHP errors when a new instance is created’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/really-simple-twitter-feed-widget_666768.
   svg)
 * [Really Simple Twitter Feed Widget](https://wordpress.org/plugins/really-simple-twitter-feed-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/really-simple-twitter-feed-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/really-simple-twitter-feed-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/really-simple-twitter-feed-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/really-simple-twitter-feed-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/really-simple-twitter-feed-widget/reviews/)

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [bvucp](https://wordpress.org/support/users/bvucp/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/php-errors-when-a-new-instance-is-created/#post-5568142)
 * Status: resolved