Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter wmaurojr

    (@wmaurojr)

    Hello again,

    Getting this now:

    Notice: Undefined property: stdClass::$name in /home/…/…/…/wp-content/plugins/awesome-weather/awesome-weather.php on line 267

    Notice: Undefined property: stdClass::$list in /home/…/…/…/wp-content/plugins/awesome-weather/awesome-weather.php on line 379

    I saw you mentioned turning off php notices–if possible I’d prefer to turn them off for the plugin but not the rest of the site (ie not via php.ini). Would you suggest editing the plugin file and adding the code back each time there’s an update?

    Thanks

    Thread Starter wmaurojr

    (@wmaurojr)

    Thanks Hal,

    It’s a great plugin and we really love using it. Any way to hide PHP Notices (as opposed to errors)?

    The City we’re using is Avoca, PA 5178741.

    Thanks again.

    Thread Starter wmaurojr

    (@wmaurojr)

    Code Formatted:

    <div id="blog_content" class="col-md-9">
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    				 	<article <?php post_class('blog_post'); ?> id="post<?php the_ID(); ?>">
    
    						<header>
    
    							<?php if(comments_open() && !post_password_required()){
    								comments_popup_link('0', '1', '%', 'article-meta-comments');
    								} ?>
    							<p class="post_categories"><?php the_category('&nbsp&nbsp/&nbsp&nbsp'); ?></p>
    							<h1 class="post_title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
    							<p class="post_date"><?php the_time(get_option('date_format')); ?>, by <?php the_author_posts_link(); ?></p>
    
    						</header>
    
    						<?php if (has_post_thumbnail()) : ?>
    
    						<figure class="post_thumbnail">
    							<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
    						</figure>
    
    					<?php endif; ?>
    
    					<?php the_content('Read More &raquo'); ?>
    
    					</article>
    
    					<hr class="fancy-hr" />
    
    				 <?php endwhile; else : ?>
    
    				 <h1>No posts were found.</h1>
    
    				<?php endif; ?>
    
    </div><!--End blog_content-->
Viewing 3 replies - 1 through 3 (of 3 total)