Is there a way to edit the plugin so that if data isn’t available from Yahoo! the widget won’t cause a fatal error?
Maybe once or twice a month, my site is down because Yahoo! isn’t sending that weather data. (maybe they’re down, or some other issue with Yahoo!)
When that happens, I get a fatal error on the page and it just crashes my whole site. I’ve looked at every other weather widget, this is the best one for my needs. Help?
]]>I would like to make a copy of the current url shortcode on the ‘Edit Page’, append some user entered value from a field on the same page, and then display it on the bottom of the ‘Edit Page’. Is this possible?
]]>I noticed that the icon for current conditions was not showing on my site. I dug into it and saw that the class applied to the element was icon9
, but in the CSS that condition was declared with the class .icon09
.
I’m not sure if this same thing will happen with all condition codes 1-9, but it’s worth checking out. I looked at Yahoo’s documentation of condition codes, and they do not list the single digit codes with 0 in front of them:
https://developer.yahoo.com/weather/#codes
You need to check for valid xml on line 144 of class.wp_current_weather.php. It takes down the site otherwise. simplexml_load_string() returns false if the XML is not valid.
Errors generated:
Warning: simplexml_load_string(): Entity: line 2: parser error : Extra content at the end of the document in /home/tulsac/public_html/wp-content/plugins/current-weather/includes/class.wp_current_weather.php on line 144
Warning: simplexml_load_string(): in /home/tulsac/public_html/wp-content/plugins/current-weather/includes/class.wp_current_weather.php on line 144
Warning: simplexml_load_string(): ^ in /home/tulsac/public_html/wp-content/plugins/current-weather/includes/class.wp_current_weather.php on line 144
Notice: Trying to get property of non-object in /home/tulsac/public_html/wp-content/plugins/current-weather/includes/class.wp_current_weather.php on line 147
Fatal error: Call to a member function children() on a non-object in /home/tulsac/public_html/wp-content/plugins/current-weather/includes/class.wp_current_weather.php on line 147
XML Cache contents:
<HEAD><TITLE>Maximum Transaction Time Exceeded</TITLE></HEAD>
<BODY BGCOLOR=”white” FGCOLOR=”black”>
<FONT FACE=”Helvetica,Arial”><B>
Maximum Transaction Time Exceeded</B></FONT>
<!—default “Maximum Transaction Time Exceeded” response (504)—>
</BODY>XML Cache contents:
<HEAD><TITLE>Maximum Transaction Time Exceeded</TITLE></HEAD>
<BODY BGCOLOR=”white” FGCOLOR=”black”>
<FONT FACE=”Helvetica,Arial”><B>
Maximum Transaction Time Exceeded</B></FONT>
<!—default “Maximum Transaction Time Exceeded” response (504)—>
</BODY>
Hi there, thanks for a clean & simple widget! It works great on my staging site.
1) the Celsius option only displays the unit as C, it still keeps the temperature number in fahrenheight. (I don’t need this to work, just pointing it out.)
2) I’d like to customize the output, to remove the temperature, and to customize the wording of the weather results (ie: “57* Partly Cloudy” to “The weather outside is full of clouds!!”). What would the best way to be to do this?
]]>Getting the following error with Xenu link checker. Any ideas?
mydomain.com/wp-content/plugins/current-weather/assets/css/weather.css
error code: 204 (no info to return)
Sometimes it works, sometimes it doesn’t. My cached .xml file now looks like this, even thought it’s the same location I’ve been using:
<title>Yahoo! Weather - Error</title>
<description>Yahoo! Weather Error</description>
<item><title>City not found</title><description>
Invalid Input /forecastrss?w=&u=f
</description></item></channel></rss>
<!-- api4.weather.bf1.yahoo.com Sun Dec 2 17:42:58 PST 2012 -->
It breaks the url to the images, making them like this:
https://www.mydomain.com/wp-content/plugins/current-weather/assets/images/icons/31×31/.png
It’s putting a trailing slash before the .png. Like I said, this is sporadic, it’s not always dysfunctional
]]>Hi,
Thank you for this plugin, it works well!
I’d like to ask you if there is any template tag to display Current weather in header template? Thank you.
]]>When I install and activate the plugin, then add the following shortcode to my page (and republish), all of the content disappears from the live page, leaving only the post heading. The weather also does not display.
Here’s the shortcode I’m using:
[current_weather location=”91355″]
And here’s the page (yes, it intentionally has a blank template, because we aren’t finished creating the layout yet):
https://174.129.36.66/visitsantaclarita/
I didn’t customize the CSS for the plugin at all; I just did the steps above. I put the shortcode at the end of the page content.
I tried deactivating each of the other plugins I am using on this site and still had the same issue. I’ve also tried activating different themes, but this page doesn’t work in any of them when the shortcode is on the page.
Am I doing something wrong?
]]>The only thing that loads is the header and footer. Disabling the plugin fixes it.
]]>