WordPress.org

Ready to get started?Download WordPress

Forums

  1. 2046
    Member
    Posted 2 years ago #

    hello

    I have found few bugs in your code.
    when the WP_DEBUG is ON. the widget shows errors about undefined variables:

    so I made these changes to you code:

    where was the

    $i_fwo_preference_select="checked='checked'";

    I put

    if (isset($i_fwo_preference_select)){
      			$i_fwo_preference_select="checked='checked'";
    		}

    Where was the:

    $i_fwo_preference_select="checked='checked'";

    I embrace it with

    $i_fwo_preference_select="";
      	if($opt_provider_preference=="fwo"){
      		if (isset($i_fwo_preference_select)){
      			$i_fwo_preference_select="checked='checked'";
    		}

    Hope will see this fix in th next release
    cheers 2046
    //// UPDATE ..

    and even more comes

    Notice: Undefined index: weather_and_weather_forecast-opt_language_select in /var/www/web/wp-content/plugins/weather-and-weather-forecast-widget/weather_widget.php on line 181 Call Stack: 0.0119 1645744 1. {main}() /var/www/web/wp-admin/admin-ajax.php:0 0.4245 53438840 2. call_user_func_array() /var/www/web/wp-admin/admin-ajax.php:1447 0.4245 53439208 3. GG_func_widget_weather_and_weather_forecast_control() /var/www/web/wp-admin/admin-ajax.php:1447 Notice: Undefined index: weather_and_weather_forecast-opt_auto_location_select in /var/www/web/wp-content/plugins/weather-and-weather-forecast-widget/weather_widget.php on line 182 Call Stack: 0.0119 1645744 1. {main}() /var/www/web/wp-admin/admin-ajax.php:0 0.4245 53438840 2. call_user_func_array() /var/www/web/wp-admin/admin-ajax.php:1447 0.4245 53439208 3. GG_func_widget_weather_and_weather_forecast_control() /var/www/web/wp-admin/admin-ajax.php:1447 Notice: Undefined index: weather_and_weather_forecast-opt_eng_in_fc_texts in /var/www/web/wp-content/plugins/weather-and-weather-forecast-widget/weather_widget.php on line 183 Call Stack: 0.0119 1645744 1. {main}() /var/www/web/wp-admin/admin-ajax.php:0 0.4245 53438840 2. call_user_func_array() /var/www/web/wp-admin/admin-ajax.php:1447 0.4245 53439208 3. GG_func_widget_weather_and_weather_forecast_control() /var/www/web/wp-admin/admin-ajax.php:1447 Notice: Undefined index: weather_and_weather_forecast-opt_hide_feels_like in /var/www/web/wp-content/plugins/weather-and-weather-forecast-widget/weather_widget.php on line 184 Call Stack: 0.0119 1645744 1. {main}() /var/www/web/wp-admin/admin-ajax.php:0 0.4245 53438840 2. call_user_func_array() /var/www/web/wp-admin/admin-ajax.php:1447 0.4245 53439208 3. GG_func_widget_weather_and_weather_forecast_control() /var/www/web/wp-admin/admin-ajax.php:1447 Notice: Undefined index: weather_and_weather_forecast-opt_extended_forecast_select in /var/www/web/wp-content/plugins/weather-and-weather-forecast-widget/weather_widget.php on line 186 Call Stack: 0.0119 1645744 1. {main}() /var/www/web/wp-admin/admin-ajax.php:0 0.4245 53438840 2. call_user_func_array() /var/www/web/wp-admin/admin-ajax.php:1447 0.4245 53439208 3. GG_func_widget_weather_and_weather_forecast_control() /var/www/web/wp-admin/admin-ajax.php:1447 Notice: Undefined index: weather_and_weather_forecast-opt_get_better in /var/www/web/wp-content/plugins/weather-and-weather-forecast-widget/weather_widget.php on line 190 Call Stack: 0.0119 1645744 1. {main}() /var/www/web/wp-admin/admin-ajax.php:0 0.4245 53438840 2. call_user_func_array() /var/www/web/wp-admin/admin-ajax.php:1447 0.4245 53439208 3. GG_func_widget_weather_and_weather_forecast_control() /var/www/web/wp-admin/admin-ajax.php:1447

    http://wordpress.org/extend/plugins/weather-and-weather-forecast-widget/

  2. Go-Gadget-Blog
    Member
    Plugin Author

    Posted 2 years ago #

    Please comment all at http://www.go-gadget-blog.com!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic