Viewing 15 replies - 181 through 195 (of 207 total)
  • salami

    (@salami)

    I posted in the How-To-Forum before and got the link to this forum from Jeremiah. After reading this thread I still don’t get the weather plugin running. I am still quite new to WordPress and know as much as nothing about php – is it possible anyway to have this plugin? I am trying it on my testblog https://www.rhabarbara.info and keep getting these error messages. I tried to create a folder ‘weather_cache’ in my plugins folder and in that I created a file named ‘metar_cache_LSZB.txt’, but when I do so, the weather icon is not displayed any more.
    So if anyone could tell me where I am going wrong and what I have to change I would be very glad.

    salami

    (@salami)

    pigpen, thanks for answering!
    Meanwhile I have only got one error message left, but can’t get rid of that one. You can see it on my site, it says ‘open_basedir restriction in effect. File is in wrong directory in /home/www/web86/html/blog/wp-content/plugins/weather.php on line 70’. How do I count the lines in a php-file? I know this sounds completely stupid, but I have no idea whether to count just the lines with a ‘$’ at the beginning or also the empty lines or also the commenting part or…? If I knew where line 70 was, I might find a solution to my problem.
    My $cache_path should be correct – at least I think so.
    I read about this ‘open_basdir restriction’ in another thread, maybe it’s a problem of my host. But before I contact him I’d like to know what line 70 says.

    shanest

    (@shanest)

    I have a problem of my own: I’m getting a cannot open directory error for the cache directory because the cache directory doesn’t exist. Is there a way to turn cacheing off?

    shanest

    (@shanest)

    I made a cache directory so that error is now gone. However, not all the information is displayed because there isnt a file with the information in it. What do I do to fix this? My URL: https://shanest.com

    shanest

    (@shanest)

    Ok, so all of that cache business works for me now. However, the conditions debug part is showing up and I’d rather not have it there.
    Conditions Debug
    * Cond status:
    * Cloud status: 0
    * Cond severity:
    Icon: 0cloud
    It always shows up as that above the header for my location. Any ideas?

    brave3

    (@brave3)

    Great plugin! I’m not having any problems except that a line in weather.php won’t seem to pass XHTML validation:
    XHTML Error: document type does not allow element “li” here
    (it highlights the “>” right after class=”weather” in the lines below as the problem spot)
    else
    {
    $weather = $weather . ‘<li id=”weather-‘ . $station . ‘” class=”weather”>’. “$location

      “;
      My site is in my profile if a closer look is warranted. TIA
    brave3

    (@brave3)

    Screwed up the last post. Trying again…
    else
    {
    $weather = $weather . '<li id="weather-' . $station . '" class="weather">'. "$location

      ";

    Beel

    (@beel)

    That is not an issue with the plugin but how you have it in your menu. Either do not wrap the call in an li or wrap it with an li and a ul.

    brave3

    (@brave3)

    I tried seemingly every combination of li and ul with the weather function call in index.php and still no dice. Here’s how it’s called in my index.php. The other li elements in the menu don’t cause any validation problems.
    <li id="weather">
    <font color="#000000"><?php WeatherIcon('KFTY','Current Atlanta conditions:') ?></font>

    brave3

    (@brave3)

    I closed the ul above it and re-started the ul below so it is not wrapped in anything. It now displays on the page with a dot next to the city name and the same validation error remains. Sorry to be such a pain.

    brave3

    (@brave3)

    Got it! Both center and font in index.php were causing problems. Thanks!

    Anonymous

    I’ve tried various things and cannot for the life of me get this to validate on my page: https://www.hexfactor.com
    Can someone help me out with this please?
    Shawn

    Beel

    (@beel)

    From above: “Yes, that will make it not validate because it needs to be within the unordered list “

    Anonymous

    @beel: I’ve tried that and it didn’t help. Thats why I posted. I had read the above post and tried that first.

    Anonymous

    Can’t edit my post, but nevermind that post Beel, I got it sorted, I uploaded the wrong edited file to the server. Oops!
    Thanks anyway,
    Shawn

Viewing 15 replies - 181 through 195 (of 207 total)
  • The topic ‘Weather Hack’ is closed to new replies.