Whoops \ Exception \ ErrorException (E_ERROR)
Call to a member function attributes() on null Whoops\Exception\ErrorException thrown with message "Call to a member function attributes() on null" Stacktrace: #0 Whoops\Exception\ErrorException in /home/leavensleig/public_html/modules/mod_weather_gk4/helper.php:373
Stack frames (1)
0
Whoops
\
Exception
\
ErrorException
/
home
/
leavensleig
/
public_html
/
modules
/
mod_weather_gk4
/
helper.php
373
              isset($current_info->image[0]) &&
              isset($current_info->location[0]) &&
              isset($current_info->wind[0])
        ) {
              // loading data from feed
              if(isset($this->translation[current($current_info2->condition[0]->attributes()->text)])){
                    $this->parsedData['current_condition'] = $this->translation[current($current_info2->condition[0]->attributes()->text)];
              } else {
                    $this->parsedData['current_condition'] = current($current_info2->condition[0]->attributes()->text);
              }
 
              $this->parsedData['current_temp'] = current($current_info2->condition[0]->attributes()->temp)."°".current($current_info->units[0]->attributes()->temperature);
              $this->parsedData['current_humidity'] = JText::_('MOD_WEATHER_GK4_HUMIDITY') ." " .current($current_info->atmosphere[0]->attributes()->humidity)."%";
              $this->parsedData['current_icon'] = current($current_info2->condition[0]->attributes()->code);
              $this->parsedData['current_wind'] = JText::_('MOD_WEATHER_GK4_WIND') ." ".current($current_info->wind[0]->attributes()->speed)." ".current($current_info->units[0]->attributes()->speed);
              $this->parsedData['sunrise'] = current($current_info->astronomy[0]->attributes()->sunrise);
              $this->parsedData['sunset'] = current($current_info->astronomy[0]->attributes()->sunset);
              // parsing forecast
              for($i = 0; $i < 2; $i++) {
                    if(isset($this->translation[current($forecast_info->forecast[$i]->attributes()->text)])){
                          $this->cond_tmp = $this->translation[current($forecast_info->forecast[$i]->attributes()->text)];
                    } else {
                          $this->cond_tmp = current($forecast_info->forecast[$i]->attributes()->text);
                    }
 
                    $this->parsedData['forecast'][$i] = array(
                          "day" => $this->translateDate(current($forecast_info->forecast[$i]->attributes()->date)),
                          "low" => current($forecast_info->forecast[$i]->attributes()->low)."&deg;".current($current_info->units[0]->attributes()->temperature),
                          "high" => current($forecast_info->forecast[$i]->attributes()->high)."&deg;".current($current_info->units[0]->attributes()->temperature),
                          "icon" => current($forecast_info->forecast[$i]->attributes()->code),
                          "condition" => $this->cond_tmp,
                    );
              }
        } else {
              $problem = true; // set the problem
              $this->error = 'An error occured during parsing XML data. Please try again.';
        }
        // if problem detected
        if($problem == true) {
              $this->error = 'An error occured during parsing XML data. Please try again.';

Environment & details:

empty
empty
empty
empty
Key Value
joomla TzoyNDoiSm9vbWxhXFJlZ2lzdHJ5XFJlZ2lzdHJ5IjozOntzOjc6IgAqAGRhdGEiO086ODoic3RkQ2xhc3MiOjE6e3M6OToiX19kZWZhdWx0IjtPOjg6InN0ZENsYXNzIjozOntzOjc6InNlc3Npb24iO086ODoic3RkQ2xhc3MiOjI6e3M6NzoiY291bnRlciI7aToxO3M6NToidGltZXIiO086ODoic3RkQ2xhc3MiOjM6e3M6NToic3RhcnQiO2k6MTUxOTE2NzAyODtzOjQ6Imxhc3QiO2k6MTUxOTE2NzAyODtzOjM6Im5vdyI7aToxNTE5MTY3MDI4O319czo4OiJyZWdpc3RyeSI7TzoyNDoiSm9vbWxhXFJlZ2lzdHJ5XFJlZ2lzdHJ5IjozOntzOjc6IgAqAGRhdGEiO086ODoic3RkQ2xhc3MiOjA6e31zOjE0OiIAKgBpbml0aWFsaXplZCI7YjoxO3M6OToic2VwYXJhdG9yIjtzOjE6Ii4iO31zOjQ6InVzZXIiO086NToiSlVzZXIiOjE6e3M6MjoiaWQiO2k6MDt9fX1zOjE0OiIAKgBpbml0aWFsaXplZCI7YjowO3M6OToic2VwYXJhdG9yIjtzOjE6Ii4iO30=
Key Value
CONTEXT_DOCUMENT_ROOT /home/leavensleig/public_html
CONTEXT_PREFIX
DOCUMENT_ROOT /home/leavensleig/public_html
GATEWAY_INTERFACE CGI/1.1
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING x-gzip, gzip, deflate
HTTP_AUTHORIZATION
HTTP_HOST www.leavenworthsleighrides.com
HTTP_USER_AGENT CCBot/2.0 (http://commoncrawl.org/faq/)
PATH /bin:/usr/bin
PHP_INI_SCAN_DIR /opt/cpanel/ea-php56/root/etc:/opt/cpanel/ea-php56/root/etc/php.d:.
QUERY_STRING
REDIRECT_STATUS 200
REMOTE_ADDR 54.227.48.147
REMOTE_PORT 59628
REQUEST_METHOD GET
REQUEST_SCHEME http
REQUEST_URI /
SCRIPT_FILENAME /home/leavensleig/public_html/index.php
SCRIPT_NAME /index.php
SCRIPT_URI http://www.leavenworthsleighrides.com/
SCRIPT_URL /
SERVER_ADDR 10.0.0.7
SERVER_ADMIN webmaster@leavenworthsleighrides.com
SERVER_NAME www.leavenworthsleighrides.com
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.0
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
TZ UTC
UNIQUE_ID WoymNOjtFc1Ox@-7df-sBgAAAIY
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1519167028.65
REQUEST_TIME 1519167028
argv Array ( )
argc 0
empty
0. Whoops\Handler\PrettyPageHandler