Support » Plugins » Installed weather plugin-Now can’t login to WP

  • I’m using WP version 1.2. Yesterday, I installed/activated the weather plugin by Jerhemiah. I (think) I followed the instructions in the read me file, created a cache folder and edited my index.php file. Voila! The weather info is now in the right-hand column of my blog. However, when I try to “login” from the login link in the right-hand pannel, I get the following error:
    Warning: Cannot modify header information – headers already sent by (output started at /home/schlax/public_html/fasdo/wp-content/plugins/weather.php:625) in /home/schlax/public_html/fasdo/wp-login.php on line 257
    Warning: Cannot modify header information – headers already sent by (output started at /home/schlax/public_html/fasdo/wp-content/plugins/weather.php:625) in /home/schlax/public_html/fasdo/wp-login.php on line 258
    Warning: Cannot modify header information – headers already sent by (output started at /home/schlax/public_html/fasdo/wp-content/plugins/weather.php:625) in /home/schlax/public_html/fasdo/wp-login.php on line 259
    Warning: Cannot modify header information – headers already sent by (output started at /home/schlax/public_html/fasdo/wp-content/plugins/weather.php:625) in /home/schlax/public_html/fasdo/wp-login.php on line 260
    Warning: Cannot modify header information – headers already sent by (output started at /home/schlax/public_html/fasdo/wp-content/plugins/weather.php:625) in /home/schlax/public_html/fasdo/wp-login.php on line 261
    I’d really like to keep the weather info on the blog, but this won’t fly. Could someone please help me out here? Here is the text for my index.php file and to quickly get the the place where I inserted the “weather stuff”, just search “Lewiston”. Thanks in advance for any help.
    /* Don’t remove this line. */
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “”>
    <html xmlns=””>
    <head profile=”″>
    <title><?php bloginfo(‘name’); ?><?php wp_title(); ?></title>
    <meta http-equiv=”Content-Type” content=”text/html; charset=<?php bloginfo(‘charset’); ?>” />
    <meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this for stats –>
    <style type=”text/css” media=”screen”>
    @import url( <?php wp_stylesheet(Favre); ?>);
    <link rel=”stylesheet” type=”text/css” media=”print” href=”<?php echo get_settings(‘siteurl’); ?>/print.css” />
    <link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” />
    <link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
    <?php wp_get_archives(‘type=monthly&format=link’); ?>
    <?php //comments_popup_script(); // off by default ?>
    <?php wp_head(); ?>
    <div id=”rap”>
    <h1 id=”header”>“><?php bloginfo(‘name’); ?></h1>
    <div id=”content”>
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
    <?php the_date(”,'<h2>’,'</h2>’); ?>
    <div class=”post”>
    <h3 class=”storytitle” id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”><?php the_title(); ?></h3>
    <div class=”meta”><?php _e(“Filed under:”); ?> <?php the_category() ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
    <div class=”storycontent”>
    <?php the_content(); ?>
    <div class=”feedback”>
    <?php wp_link_pages(); ?>
    <?php comments_popup_link(__(‘Comments (0)’), __(‘Comments (1)’), __(‘Comments (%)’)); ?>
    <?php trackback_rdf(); ?>
    <?php include(ABSPATH . ‘wp-comments.php’); ?>
    <?php endforeach; else: ?>
    <?php _e(‘Sorry, no posts matched your criteria.’); ?>
    <?php endif; ?>
    <div id=”menu”>

      <?php WeatherIcon(‘KLEW’,’Lewiston, Maine’) ?>
      <?php get_links_list(); ?>
      <li id=”categories”><?php _e(‘Categories:’); ?>
      <?php wp_list_cats(); ?>

    <li id=”search”>
    <label for=”s”><?php _e(‘Search:’); ?></label>
    <form id=”searchform” method=”get” action=”<?php echo $PHP_SELF; ?>”>
    <input type=”text” name=”s” id=”s” size=”15″ />
    <input type=”submit” name=”submit” value=”<?php _e(‘Search’); ?>” />

    <li id=”archives”><?php _e(‘Archives:’); ?>

      <?php wp_get_archives(‘type=monthly’); ?>

    <li id=”calendar”>
    <?php get_calendar(); ?>

    <li id=”other”><?php _e(‘Other:’); ?>

    <li id=”meta”><?php _e(‘Meta:’); ?>

    <?php wp_style_switcher(); ?>

    <p class=”credit”><!–<?php echo $wpdb->num_queries; ?> queries. <?php timer_stop(1); ?> seconds. –> <cite><?php echo sprintf(__(“Powered by WordPress“), __(“Powered by WordPress, state-of-the-art semantic personal publishing platform”)); ?></cite>

Viewing 7 replies - 1 through 7 (of 7 total)
  • Sounds like a whitespace problem in weather.php. However, check all of the php files you have recently been modifying for extra spaces at the end of the file. IE. After the ending ?>

    Oh, man. First, thanks for the speedy reply. Second, I forgot to say that even though I hold an advanced degree, I’m a PHP and HTML morron. I’m guessing by this you mean any empty lines in between the lines with code?

    Spaces (you can select them by clicking and draging) following the closing php code “?>” without the quotes.

    Wow davidprince. You are some kind of PHP genius. Although I didn’t change anything in the “bottom” of the weather.php file when I set it up last night, I opened it up and noticed that there were about 5-6 empty lines in the bottom of the file. I deleted them, saved them and then tried to “login” from the link on my blog page and all was well. I have no idea why that would have made a difference and so I never would have thought to change that without your advice. Could you briefly describe why this would cause a problem? Thanks again for the help.
    I also have another minor problem, but I’m guessing it’s a problem with IE. The weather images all have a black background when I view the page in IE, but not when I view it in Netscape. Not sure what that’s all about, but maybe you have a suggestion for this too? Thanks in advance (either way).

    Not being a php genius I have no idea why it screws things up. Having experienced the same problem many time I know that “Cannot modify header…” is a sure sign that whitespace is a problem.
    The problem with the black background is that IE is crap.. I mean doesn’t display png transparency properly. There is a link somewhere in the forums to transparent gifs to replace the pngs however this requires.
    1. Modifying weather.php (you need to be comfortable with this).
    2. The gifs don’t look nearly as good (smooth) as the pngs.
    I would just let IE users suffer a tiny bit. I do on my site. 🙂

    >>I would just let IE users suffer a tiny bit. I do on my site. 🙂
    Sounds good to me. Thanks again for the help. I really appreciate it. I definitely enjoy using this software. It makes it easy to keep friends and family up to date and its a heck of a lot easier than having to generate web pages for every update. The plugins are cool for added content, but sometimes its a bit intimidating. When I have to modify the .php files without specific instructions, I feel like my folks must when I tell them to download an email attachment. 🙂

    i was installing a copy of WP for a friend last night, they are weather junkies.
    i tell you, after 3 hours of noodling with that plugin i could not get it to function. every page had php plugin scramble all over it saying that nothing was able to open anything…
    i figured it had something to do with text editing on a pc (which i do not have) vs. text editing on a mac (which i do have.)
    and installed the fully functional, slightly more interesting, but much less attractive alternative.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Installed weather plugin-Now can’t login to WP’ is closed to new replies.