Title: search.php error
Last modified: August 20, 2016

---

# search.php error

 *  Resolved [kuppikahvia](https://wordpress.org/support/users/kuppikahvia/)
 * (@kuppikahvia)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/searchphp-error/)
 * What’s wrong with my search.php? I’m totally clueless here.
 * search.php
 *     ```
       <?php
       /*
        * @package themeton
        */
       get_template_part('page', 'defaults');
       $blogConf['sidebar_position']=' right';
       get_header();
       global $blogConf; ?>
       <section id="page" class="clearfix">
           <!-- Start Page -->
           <?php if ($data['full_width'] == 'fixed') echo '<div class="container"><div class="row">'; ?>
                   <?php
                   if (have_posts ()) { ?>
                       <div class="<?php if ($data['full_width'] == 'fixed') echo 'span12'; ?>">
                           <div class="header-page">
                               <h2 class="item-title">
                                   <?php _e('Search result', 'themeton');?>
                               </h2>
                               <div class="page-teaser">
                                   <div class="widget_search"><?php get_search_form(); ?></div>
                               </div>
                           </div>
                           <div id="masonry" class="clearfix">
                               <div class="mansonry-container">
                                   <!-- Start Featured Article --><?php
                                   if (have_posts ()) the_post();
   
                                   rewind_posts();
                                   get_template_part('loop'); ?>
                                   <!-- End Featured Article -->
                               </div>
                           </div>
                       </div><?php
                   } else { ?>
                       <div class="<?php if ($data['full_width'] == 'fixed') echo 'span12'; ?> content-container">
                           <div class="row">
                               <div class="<?php echo $blogConf['content_span']; ?>">
                                   <div class="item-single ">
       								<div class="not-found-message">
       									<h1><?php _e( 'Not Found', 'themeton' ); ?></h1>
       									<p><?php _e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'themeton'); ?></p>
       								</div>
       								<div class="widget_search"><?php get_search_form(); ?></div>
                                   </div>
                               </div>
                               <div class="span3"><?php
                                   $blogConf['sidebar_position'] = "right";
                                   get_sidebar(); ?>
                               </div>
                           </div>
                       </div><?php
                   } ?>
       	<?php if ($data['full_width'] == 'fixed') echo '</div></div>'; ?>
           <?php infiniteScroll(); ?>
           <!-- End Page -->
       </section><?php
       get_footer(); ?>
       ```
   
 * There’s no searchform.php. See example: [http://kuppikahvia.com/?s=saksa](http://kuppikahvia.com/?s=saksa)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/searchphp-error/#post-3517212)
 * It might help if you described what the error/problem is.
 *  Thread Starter [kuppikahvia](https://wordpress.org/support/users/kuppikahvia/)
 * (@kuppikahvia)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/searchphp-error/#post-3517217)
 * The search isn’t working in frontend at all on any term or page. But live search
   plugin is working fine.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/searchphp-error/#post-3517270)
 * What happens if you remove your search.php template file?
 *  Thread Starter [kuppikahvia](https://wordpress.org/support/users/kuppikahvia/)
 * (@kuppikahvia)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/searchphp-error/#post-3517330)
 * The same thing, 404 error.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘search.php error’ is closed to new replies.

## Tags

 * [search.php](https://wordpress.org/support/topic-tag/search-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [kuppikahvia](https://wordpress.org/support/users/kuppikahvia/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/searchphp-error/#post-3517330)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
