Why doesn't the search on the site on the local server, and hosting work?

Good afternoon. The situation is this: on the local North entering data in the search and he begins to handle them, but the results shows a blank page, although on the hosting search works fine, shows correct results. I assume that somewhere something is not connected. Tell me what could be the problem? at least in what area? Inquiry: local server - open right now, the site is on WordPress. Files search.php and searchform.php there are on the local North. I attach the code of both. Code is not mine, so the questions why and why so, probably can not answer, but I'll try.

<form method="get" id="searchform" action="<?php echo home_url(); ?>">
<input type="text" class="search_input" value="Search" name="s" id="sform" 
onfocus="if (this.value == 'Search') {this.value = ";}" onblur="if (this.value == ") {this.value = 'Search';}" />
<input type="hidden" id="searchsubmit" value="Search"/>
<button type="submit" class="icon-binoculars button-search"></button> 

<?php get_header(); ?>
 $mySearch =& new WP_Query("s=$s&showposts=-1");
 $num = $mySearch->post_count;
 echo '<h1 class="catheader">'; printf(__('%1$s search results for "%2$s"', "feed-me-seymour"), $num, get_search_query()); echo '</h1>';
 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
 <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
 <div class="date_post">Published <?php the_time('d.m.Y H:i','Published: '); ?></div>
 <h2><a href="<?php the_permalink() ?>" title="<?php printf(__("Permanent Link to %s", "feed-me-seymour"), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2>

 <div class="entry">
 if(function_exists('has_post_thumbnail') && has_post_thumbnail()) { 
 echo '<a href="'.get_permalink().'">';
 the_post_thumbnail('thumbnail', array('class'=>'alignleft'));
 echo '</a>';
 } else { 
 echo resize(get_option('thumbnail_size_w'),get_option('thumbnail_size_h')); 
 <?php the_excerpt() ?>

 <p class="meta"><?php the_tags(__('Tags', "feed-me-seymour").": ", ', ', '<br />'); echo __('Posted in', "feed-me-seymour")." "; 
 the_category(', ') ?> | <?php edit_post_link(__('Edit', "feed-me-seymour"), ", ' | '); ?> 
 <?php comments_popup_link(__('No Comments &#187;', "feed-me-seymour"), __('1 Comment &#187;', "feed-me-seymour"), __('% Comments &#187;', "feed-me-seymour")); ?></p>

 <?php endwhile; ?>
 <div class="navigation">
 <div class="alignright"><?php next_posts_link(__('Next page &raquo;', "feed-me-seymour")) ?></div>
 <div class="alignleft"><?php previous_posts_link(__('&laquo; Previous page ', "feed-me-seymour")) ?></div>

 <?php else : ?>
 <p><?php _e("Sorry, but you are looking for something that isnt here.", "feed-me-seymour"); ?></p>
 <?php endif; ?>

<?php get_footer(); ?>
April 19th 20 at 12:30
1 answer
April 19th 20 at 12:32
If the page is just white (the so-called "White Screen of Death") rather than just an error has occurred PHP. Turn on debugging for any errors, warnings etc are displayed.

Find more questions by tags WordPress