wp-weather

Updated: 2008-0506

weather.com has made changes to their servers which now REQUIRE you to enter a partner id and license key in this plugin's settings. If you do not, they will not send the complete forecast data which in turn will break this plugin.

I have been using weather.com's XML web service to display local weather information on my family website for several years. Today I decided to make the PHP code into a widget for wordpress.

This widget uses a database table to cache the data for a half hour to avoid hammering the web service. Additionally, if you are using the wp-cache plugin, any changes to the options clear the cache.

To install: upload to your plugin directory, activate the plugin, set the options and add the widget to your sidebar.

This version now supports PHP4.

If you have questions, leave a comment or contact me.

Preview:

wp-weather widget(1.7 MB MD5:98f4b2e219fa9728fba8a6edbfacb1e0)
Downloads: 5837 times

Update: This plugin is now in the Subversion Repository.

http://svn.wp-plugins.org/wp-weather/trunk

Update: The plugin can be placed anywhere in your template with a simple call to the display function (assuming you have configured the basic options in the admin):

PHP:
  1. <?php
  2.     weather_display();
  3. ?>

83 Comments

  1. Posted March 2, 2007 at 4:25 pm | Permalink

    Thanks for your plugin,I 've collected it on my blog here

    http://www.tearsea.com/?p=632

  2. Posted March 2, 2007 at 11:12 pm | Permalink

    Is there any possible work around to use this plugin if your server only has PHP4?

  3. Matt Brotherson
    Posted March 3, 2007 at 8:45 am | Permalink

    I will look into a way to parse the xml that will work under PHP4. Hopefully, there is an easy was to do so as SimpeXML really makes x-path navigation easy. Stay tuned for updates.

  4. Posted March 3, 2007 at 4:40 pm | Permalink

    Is there a way to show more than one city location?

  5. Matt Brotherson
    Posted March 3, 2007 at 5:15 pm | Permalink

    Not currently. I'm sure it is rather simple to do so, but how to display it might be a challenge.

  6. Hex
    Posted March 4, 2007 at 9:16 am | Permalink

    Is there any way..to use this plugin without widgets?

  7. Posted March 4, 2007 at 3:54 pm | Permalink

    Nice, i gonna try this! thanks!

  8. Posted March 4, 2007 at 6:47 pm | Permalink

    i have a problem with this plug, i have the ID number and the licence key but not the other required fields... and when i update the options my blog "crash".

    Check in this pls
    http://img95.imageshack.us/img95/4548/clipboard01fl2.jpg
    thanks

  9. Posted March 4, 2007 at 6:55 pm | Permalink

    Looks like you're using this plugin on PHP4. I'm currently investigating a solution for PHP4 users, but at this moment, the plugin only works on PHP5 with SimpleXML.

  10. Posted March 5, 2007 at 1:38 am | Permalink

    :( yeah, i have PHP version 4.4.4 in blue host provider, thanks for ur time.

  11. Posted March 7, 2007 at 3:41 pm | Permalink

    I get the following error when I activate your WP Plugin:

    ---

    Warning: require_once(/home/incog/public_html/blog/wp-admin/upgrade-functions.php) [function.require-once]: failed to open stream: No such file or directory in /home/incog/public_html/blog/wp-content/plugins/wp-weather/wp-weather.php on line 33

    Fatal error: require_once() [function.require]: Failed opening required '/home/incog/public_html/blog/wp-admin/upgrade-functions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/incog/public_html/blog/wp-content/plugins/wp-weather/wp-weather.php on line 33

    ---

    I noticed that I do not have the file "upgrade-functions.php" in that folder and suspect this is the problem.

    What is that file for, and why don't I have it?

    I'm running WP 2.0.5.

    Thanks in advance.

  12. Posted March 7, 2007 at 4:00 pm | Permalink

    Rusty: That file is included in later versions of WP. I am utilizing it to create the database table that stores the weather data. The WP reference for the methods I am using is here. I suggest you upgrade to 2.1.2 as I can not support below 2.1 and there are many security fixes in the new code.

    Cheers.

  13. Posted March 15, 2007 at 9:30 am | Permalink

    What code do I need to enter in my sidebar.php file to get this working? I installed the plugin and configured it without problems. But now I am stuck with how to get it up and running on my site. I have WP 2.1 installed along with PHP5. Any help would be appreciated.

  14. Posted March 15, 2007 at 10:33 am | Permalink

    Rhon - you need a widget compatible theme. Upon selecting a widget compatible theme from the presentation tab, you should see a new option on that page for Sidebar Widgets. This is where you drag and drop the wp-weather widget to your sidebar.

    Cheers.

  15. Posted March 15, 2007 at 6:19 pm | Permalink

    So their is no using this theme without having a widget compatible theme? I would really like to use the theme I hacked together and just be able to add some code to my sidebar.php file.
    Any chance this can happen? Thanks...

  16. Posted March 20, 2007 at 3:04 pm | Permalink

    What code do I use to get it to show on my site? I'm using WP

  17. Posted March 20, 2007 at 6:32 pm | Permalink

    Ditto to what Rhon said. I hate widgets and there are still a whole lot of people who avoid them like the plague. Would be nice if this didn't require a "idget" ready theme. I'm sure there is a work around and just a matter of time before somebody posts it. If I were talented enough, I would.lol

  18. Posted March 20, 2007 at 7:43 pm | Permalink

    I found a simple solution - if you'd like to include this, assuming you've already done the configuration part, insert this anywhere in your template.

    PHP:
    1. <?php  if ( function_exists('weather_display')) 
    2. weather_display(); ?>

  19. Posted April 13, 2007 at 6:46 am | Permalink

    Fatal error: Cannot instantiate non-existent class: simplexmlelement in /srv/www/vhosts/sunsonic.de/subdomains/ardiem/httpdocs/1988er/wp-content/plugins/wp-weather/wp-weather.php on line 204

    thats what happens when i try to display the plugin on my blog :(

  20. Posted April 13, 2007 at 3:51 pm | Permalink

    1988er -- you don't have php5 if you get that error. The next release of this plugin will check for it upon activation and not allow you to activate if the host is not compatible.

  21. Posted April 15, 2007 at 1:30 pm | Permalink

    Hi,
    Is there any possibility that the temperature will be shown in Celsius as well.

    Thanks in advance,
    Marc

  22. Rhon Fitzwater
    Posted May 1, 2007 at 1:22 pm | Permalink

    Any chance the next version could have a 2-3 day forecast. It would be great if an effect like Yahoo.com has for their weather display could be used. I.E.: When you mouseover the current weather, it animated down to reveal the 3 day forecast.

  23. Rhon Fitzwater
    Posted May 7, 2007 at 9:17 am | Permalink

    Please add the option to view the forecast for the next few days.

  24. Posted May 19, 2007 at 2:16 am | Permalink

    Marc: it is actually very easy to add whatever you want to this and change to metric.
    Just specify more in the $forecast_url
    $forecast_url = 'http://xoap.weather.com/weather/local/' . $location_id . '?cc=*&dayf=' .$forecast_length .'&prod=xoap&par=' . $partner_id . '&key=' . $license_key . '&ut=C&ud=k&us=k&up=m&ur=m';

    I am also working on localizing this for Chinese right now, the xml is fairly straight forward for how to add things you want

  25. Posted May 22, 2007 at 7:10 am | Permalink

    Hey Matt, (or anyone who can help with this one)
    I am getting annoying errors, which range from annoying to admin-panel destroying.

    Here's my code for the translations, as you may notice, it is not complete yet due to a lack of a full list of what each graphic actually represents (that would be helpful)
    http://www.notaclue.ktcs.net/dev/wp-weather.txt

    The error I am getting is this:
    Warning: Cannot modify header information - headers already sent by (output started at /PATH/public_html/wp-content/plugins/wp-weather/wp-weather.php:1) in /PATH/public_html/wp-includes/pluggable.php on line 329

    I am stumped as I am not great with php and have been away from coding for a few years, any help is greatly appreciated.

    Thanks

  26. Posted May 22, 2007 at 7:17 am | Permalink

    welp, i'm an idiot.
    if anyone else is getting this problem, edit .htaccess and throw in
    PHP_FLAG output_buffering on

  27. Posted May 28, 2007 at 9:02 am | Permalink

    I'm trying to get the weather widget working, and keep getting this error:

    WordPress database error: [Table 'hawaiibnb_com_2.wp_weatherxml' doesn't exist]

    Where can I find information on setting up this table in my database?

  28. Posted May 28, 2007 at 12:51 pm | Permalink

    Sharon - your wordpress version might not have the required dbDelta function. If you can log into your phpmyadmin and execute this sql, you should be set.

    SQL:
    1. CREATE TABLE hawaiibnb_com_2.wp_weatherxml (
    2.           xml_url varchar(150) NOT NULL DEFAULT '',
    3.           xml_data text NOT NULL,
    4.           last_updated datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
    5.           KEY xml_url (xml_url)
    6.         ) ENGINE=MyISAM DEFAULT CHARSET=latin1;

  29. Posted June 15, 2007 at 11:30 pm | Permalink

    Hi,

    Do you have a time schedule for making this work for PHP Version 4.3.11? I have the same error on line 204 as 1988er.

    As it isn't working on my server, is it worth the wait - does the service work for places outside the US?

    Thanks,
    Andy

  30. Paul
    Posted June 19, 2007 at 12:41 pm | Permalink

    Hi Matt,

    Quick question on a problem I am experiencing. (WP 2.2, PHP 5.2.2, and an older hacked template that I have brought up to widget capable code (per the WP guys instructions and code). Here's the error I get:

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, webmaster@sundoggy.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    If you have any ideas, I'd appreciate it. It looks great, and I hope to try it out soon.

    Thanks,

    Paul

  31. Posted June 19, 2007 at 9:24 pm | Permalink

    I understand. Thanks for the reply.

    Unfortunately I received a similar reply from hostexcellence.com/ so it looks like I need to look for an alternative. Any ideas?

    "I'm sorry, it is impossible to make an upgrade of PHP version on our servers at the moment. I regret.
    We do not at this current time have any ETA for PHP5. We do appreciate your interest, and your patience in this situation. We will inform all current customers at such time as we do begin to offer PHP5."

    Regards,
    Andy

    ________________________________________
    Unfortunately I do not have a solution for PHP

  32. Posted July 25, 2007 at 5:12 pm | Permalink

    Thanks for this cool plugin!

  33. Posted August 1, 2007 at 9:45 am | Permalink

    I am having a problem with WP-Weather Manager. When I filled the partner id and license key along with zip code and then save the values and got an error stating:

    WordPress database error: [Table 'campmark_wp_2.wp_weatherxml' doesn't exit]
    TRUNCATE TABLE wp_weather xml

    What does that mean? Your help is much appreciated. Thanks.

  34. Posted August 6, 2007 at 2:38 am | Permalink

    I have set up this plugin on one site, thanks very much for making it php4 compatible.

    But I get the same error as Mitchell on another of my sites. I see that he has fixed the problem.

    Any advice?

  35. Posted August 6, 2007 at 9:03 am | Permalink

    Andy, your wordpress version might not have the required dbDelta function. If you can log into your phpmyadmin and execute this sql, you should be set.

    SQL:
    1. CREATE TABLE wp_weatherxml (
    2.           xml_url varchar(150) NOT NULL DEFAULT '',
    3.           xml_data text NOT NULL,
    4.           last_updated datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
    5.           KEY xml_url (xml_url)
    6.         ) ENGINE=MyISAM DEFAULT CHARSET=latin1;

  36. Posted August 6, 2007 at 8:24 pm | Permalink

    thanks again Matt. I got it working by adding the following SQL (excluding line 6).

    CREATE TABLE wp_weatherxml(
    xml_url varchar( 150 ) NOT NULL DEFAULT '',
    xml_data text NOT NULL ,
    last_updated datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
    KEY xml_url( xml_url )
    )

  37. Posted August 7, 2007 at 11:59 pm | Permalink

    hi,

    is there a way to display international locations. weather.com accepts city, country.

    also is there a way to change the units say to metric.

    daniel

  38. Posted August 8, 2007 at 10:23 am | Permalink

    Daniel,

    I've updated this plugin to support metric units. Overwrite the old files with the version above and go to the options page for the plugin. Select metric for the units and save.

    I do believe you can put any location code in the options page and have it display appropriately.

    Cheers.

  39. buffawhat
    Posted August 10, 2007 at 8:40 am | Permalink

    I'm trying to get this plugin working on a WPMU home page. I get the 500 server error when I try to put the tag in.. even as a widget on a widget theme i get the error..

    any ideas?
    runing MU 1.2.3 on dreamhost with php 5.2.2

  40. piecealava
    Posted August 10, 2007 at 11:09 am | Permalink

    I'm able to activate the plugin, but when i click the link to configure i get the following error:

    Cannot load wp_weather/wp_weather.php.

    what did i miss?

  41. DesiTech
    Posted August 20, 2007 at 10:43 am | Permalink

    hi,

    I'm using wordpress-mu-1.2.3-2.2.1 and when I tried your widget I get this error:

    Fatal error: Call to a member function on a non-object in /homepages/36/d162900626/htdocs/blogs/wp-content/plugins/wp-weather.php on line 313

    And line 313 code is this:
    $day = $day_attributes['t'];

    can you please look into it.

    thx,
    DesiTech

  42. Posted August 22, 2007 at 10:00 am | Permalink

    I haven't used WPMU for any testing. Which version of wp-weather are you using as my line numbers aren't matching yours.

  43. DesiTech
    Posted August 27, 2007 at 9:05 am | Permalink

    I'm using Version: 0.2.1

  44. Posted September 13, 2007 at 9:13 am | Permalink

    Unfortunately I will have to decativate the plugin because I can't get it working without widget support - a shame.

  45. Posted September 20, 2007 at 3:05 am | Permalink

    when i use wp-weather (downloaded from your site) the following error appears

    Local Weather
    Warning: strtotime() [function.strtotime]: Called with an empty time parameter. in /home2/tonykawa/public_html/wp-content/plugins/wp-weather/wp-weather.php on line 177

    TIA

  46. Posted September 26, 2007 at 9:42 pm | Permalink

    I've added the widget and selected all the options, but it's just not showing up.

    http://www.scwd.us

  47. Posted October 14, 2007 at 2:00 pm | Permalink

    I was able to get this working. I could still see WP-Weather after moving my WordPress installation to a different directory, however, it wasn't actually installed. I removed and re-added it through the WordPress panel and it worked.

  48. Posted October 30, 2007 at 5:40 pm | Permalink

    Is there a way to make the plugin grab a variable, so lets say depending on the category of the site, it displays the weather, e.g.

    http://www.domainexample.com/category/new-york/

    Show the New York weather.

    Regards!

  49. Nita
    Posted November 20, 2007 at 1:33 pm | Permalink

    I was able to download and add the widget. however when I click on configure, the only option i get is Title: Local Weather. What am I missing?

  50. Nita
    Posted December 7, 2007 at 11:22 am | Permalink

    hello:
    I was able to install this on my first blog. Now I have added this in the second blog on the sidebar. It is showing up fine, however the sidebar for this theme has background for each set(archive, category, etc..) and this background does not get applied to this plug-in.Which file do i have to alter so i can apply class to this plugin too so that it blends with the rest of the other stuff on the sidebar. unfortunately my blog is internal and am not able to post the link here.
    The theme link(Green Bug 1.1):
    http://themes.wordpress.net/page/7/?cats0=25&sortby=date&order=DESC&andor=OR&submit=Show
    Source code: Weather plugin has:

    Local Weather

    The other sidebar calendar has:

    Calendar.....

    Thanks for the help.

  51. Posted January 2, 2008 at 6:53 am | Permalink

    I've been getting the same "Table does not exist" error as Sharon (see comment dated May 28).

    When I enter the SQL query into myPHPadmin as below:

    CREATE TABLE flahute_com.wp_weatherxml (
    xml_url varchar(150) NOT NULL DEFAULT '',
    xml_data text NOT NULL
    last_updated datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
    KEY xml_url (xml_url)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;

    I get the following error:

    MySQL said:

    #1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'last_updated datetime NOT NULL DEFAULT '0000-00-00 00:00:00',

    Any ideas? What am I missing?

  52. Todd
    Posted January 8, 2008 at 5:28 pm | Permalink

    Hey there....I'm trying to get the widget to jive with the CSS of my WordPress theme, but I nothing I do is changing the text color. Is there a trick to this? I have a theme with a black background and I can't get the text in the widget to be anything other than black.

  53. Veronica
    Posted February 5, 2008 at 7:48 pm | Permalink

    I installed and activated the plugin. However, if I add it to the widget sidebar or edit the sidebar php file, an insane amount of errors appear down the page... how can I fix this?

  54. Posted February 5, 2008 at 8:31 pm | Permalink

    Not sure what errors you're getting so can you put up a link?

  55. Posted February 7, 2008 at 11:15 am | Permalink

    I have the plugin widget running on my site, but can't seem to get the css right so that it looks like the other widgets in my sidebar. Can you guide me in the right direction. Nothing I do to the css seems to make any difference. Thanks!

  56. Posted March 2, 2008 at 4:34 am | Permalink

    thank you for all your hard work, people should understand you are doing this for free and not expect the world! in any event, i just want to fix this: "The data from weather.com is cached in the database for one half hour to avoid unnecessary calls to the web service." we live in a severe weather zone and 30 minutes can literally make the difference between life and death! thanks for your contribution!

  57. Posted March 4, 2008 at 8:32 pm | Permalink

    Should you wish to modify the default cache age you will need to edit the plugin file. Line 218 should read:

    PHP:
    1. $interval = .5// Hours to keep data in db before being considered old

    Edit this interval to specify what portion of an hour to keep the data for.

  58. Posted April 3, 2008 at 2:37 am | Permalink

    Hi first off thanks allot for your hard work. Works great on allot of my Blogs. On my sites I changed the weather pictures maybe someone is interessted? Found them to be more appealing to my site. http://start.swiss420.ch In that sense how about a theme collection on your site of different Weather Pictures to fitt the different Webstyles? Also language translations would be interessting. Always have to go in and change everything around with each new version. Would it be possible to share the work on your site? No Problem if you dont have time. Allready happy with all the work you put in. Just giving some Feedback from little old Switzerland. Note to everyone with Problems. Try Firefox with Firebug it will help you solve many format etc. related Problems.

  59. Posted April 27, 2008 at 1:58 pm | Permalink

    Good idea for a plugin and widget but why not link to The Weather Network for users that live outside the US?

  60. Posted April 27, 2008 at 5:37 pm | Permalink

    Weather.com can accommodate international cities. Just find your appropriate city code.

  61. Alicia
    Posted April 30, 2008 at 1:36 pm | Permalink

    What code would I need to insert to add this to a static page on my blog?

  62. AnotherPerson
    Posted May 5, 2008 at 12:48 am | Permalink

    Great plug-in! Just a couple of suggestions:

    1. You might want to use .gif files instead of .png for the weather icons. Due to an error in IE 6 (and, I think earlier versions), .png files don't display transparencies. I had to convert the files to .gifs (with photoshop) in order for them to display properly.

    2. It would be great to have the ability to display two different cities.

    Thanks!

  63. Alicia
    Posted May 5, 2008 at 9:44 am | Permalink

    Is there any way to place the three day forecasts side by side?

  64. Posted May 5, 2008 at 5:24 pm | Permalink

    Alicia - out of the box this functionality is not supported. You can edit the file to remove the paragraph and line break tags.

  65. Posted May 6, 2008 at 2:28 pm | Permalink

    Was working fine for months, then suddenly, overnight, I'm running into the same error that DesiTech refers to above...
    Fatal error: Call to a member function on a non-object in .../wp-content/plugins/wp-weather.php on line 313
    So I updated to the most recent version of your plugin but I'm still getting the problem, only now it points to line 366 as the culprit. Was this ever resolved? I don't understand why it would happen overnight like that. I've deactivated all the other plugins, but I'm still getting the error. Please help!

  66. Posted May 6, 2008 at 3:41 pm | Permalink

    Stefan - can you confirm if your host is running php 4? The author of the class i use in php 4 instances has mentioned this error in his documentation but i can not reproduce in my own environment.

  67. PB
    Posted May 6, 2008 at 6:02 pm | Permalink

    Same thing here as Stefan, all was fine yesterday and today I get the same error. Nothing has changed on the page.

    Fatal error: Call to a member function on a non-object

  68. Posted May 6, 2008 at 6:16 pm | Permalink

    weather.com changed their url parameter format this morning. Version 0.2.7 fixes this. Without this version of the plugin the forecast data will be missing from the weather.com xml feed. Please update to this version and report if it fixes your issue.

  69. PB
    Posted May 6, 2008 at 8:02 pm | Permalink

    I updated and still get the error:

    Fatal error: Call to a member function on a non-object in /wp-content/plugins/wp-weather/wp-weather.php on line 366

  70. Posted May 6, 2008 at 9:49 pm | Permalink

    yes, currently php 4.3.11, host reports no recent changes on the server side, so still baffled as to why it should work fine for months, then suddenly stop working... could be a weather variable that hasn't occurred for the past several months?

  71. Posted May 6, 2008 at 9:53 pm | Permalink

    woops, sorry -- didn't see that you had responded -- but yes, I'm using version 0.2.7, and its still not working.

  72. Posted May 7, 2008 at 3:19 am | Permalink

    I'm getting the same error as stefan. Worked monday, stopped tuesday. At first on version 0.2.6, then updated to 0.2.7...same line is calling the error "$days = $day_forecast->children();" on line 366.

  73. Posted May 7, 2008 at 9:11 am | Permalink

    Do you guys have a valid license key and partner id saved in the settings? I know previously they let you access the xml feed without one, but they clamped down on that Monday and require one now. Without these, you won't get the full xml data which will cause the call to ->children() to fail.

  74. PB
    Posted May 7, 2008 at 12:58 pm | Permalink

    Thanks for the suggestion Matt, this was my problem.
    I had a ID and key, but forgot how I got them, so signed up fresh and all is good now.
    Except I have a stray bullet under the city name that I don't remember seeing before.

  75. Posted May 7, 2008 at 11:19 pm | Permalink

    Same here, thanks Matt, its working now. Great plugin, by the way, works with Wordpress Mu allowing multiple city weather forecast from one install (where each sub-blog localized for a different city), out of the box, no tweaking required. Thanks again

  76. Dave
    Posted May 19, 2008 at 11:43 pm | Permalink

    Is there way of putting the weather into the body of a single page? I like it on the side pane but it takes up too much room so I wanted to create a weather page so I can have a long range forecast as it would have the space of the whole page.

    Also, I tired putting in the short php code mentioned at the top of this page but it removed all the data from my side panel and put it in the bottom of the body of the page.

  77. jay
    Posted May 21, 2008 at 8:23 am | Permalink

    hi ,
    i have one issue please help me to sort it out

    i have installed wpmu in my server for each place in india i have created one blog ,now i want to display the weather report of each blog (i.e weather report of a place corresponding to that particular blog )

    how to do this dynamic display of weather report in wpmu ?

    Thanks in advance

  78. Posted May 22, 2008 at 2:59 pm | Permalink

    Jay, I haven't set up an install of wpmu, so I'm not sure what to advise you. If you look at Stefan's post a few above your's his site is powered by wpmu and utilizes wp-weather. Perhaps he has a contact form and you can ping him about it?

  79. Posted May 22, 2008 at 7:24 pm | Permalink

    Dave -- to accomplish this in a page use a plugin to execute PHP within posts/pages. i tested this one: http://wordpress.org/extend/plugins/inline-php/
    and placed this code on a page:

    CODE:
    1. [exec]
    2.     weather_display();
    3. [/exec]

  80. Posted June 19, 2008 at 11:00 pm | Permalink

    My server recently upgraded to PHP 5.2.5 and disabled fopen functionality. As such, this plugin no longer works for me. Has anyone rewritten the Get XML Query Results section (starts on line 238) using cURL functons? If so, can you please post the code snippet? Thanks.

  81. Erick
    Posted July 13, 2008 at 8:50 am | Permalink

    I am getting this error too.
    Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in .../blog/wp-content/plugins/wp-weather/wp-weather.php on line 237

    PHP version = 5.2.6
    Webserver = Apache

  82. Posted July 13, 2008 at 8:27 pm | Permalink

    That error is definitely an issue that more people are going to run into - hosts tightening up their php configuration. I need to add in a method of retrieving the xml via curl but have not had the time yet. Stay posted and I'll try and add that soon. If anyone else wants to submit a patch that checks for fopen and on failure uses curl, feel free to send it my way and I will include it with kudos.

  83. Posted July 31, 2008 at 3:50 pm | Permalink

    I recently developed a WP site locally on my machine running v 2.5 of WP. I just made the site live today using v 2.6 and when the plugin is activated I get this error:

    Invalid query: Table 'db251978689.wp_weatherxml' doesn't exist.

    Table db251978689 is the name of my hosts database. I uploaded the plugin, activated it, added in all the Weather.com information and added the "" to my sidebar and that's the error I get. I'm not sure if there is something I'm not doing right or what.

    Thanks for the help.

3 Trackbacks

  1. By 月光沼泽-MoonSwamp on March 2, 2007 at 4:24 pm

    WP Plugin:wp-weather...

    This plugin display local weather information on your blog

    Table of Contents

    Name(插件名称)
    Author(插件作者)
    Version(插件版本)
    Download(下载插件)
    Introduction(插件介绍)
    Installation(安装插件)

    Name....

  2. [...] Visit [...]

  3. By WP Plugins March 27, 2007 « PolarityII on July 23, 2008 at 5:51 pm

    [...] wp-weather widget uses Weather.com to show forecast information for a city. [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*