• Hello-

    I have perused these forums and tried some suggested solutions to this problem to no avail. Any search I try returns nothing. I have indexed and reindexed and deactivated and reactivated and installed and uninstalled and reinstalled and etc.

    Here is my search.php:

    <?php get_header(); ?>
    <?php
    $home_layout = cs_get_option(‘layout_images’);
    if ($home_layout == ‘default-left’) { ?>
    <div class=”content-center small-right large-left”>
    <!–Style 03–>
    <?php get_sidebar(); ?>

    <div id=”content”>
    <!–Content Page With Tabs Anded And blogroll Started–>
    <?php
    $blogroll_content_design= cs_get_option(‘blog_roll_design_select’);
    if ($blogroll_content_design== ‘personal_design’) { ?>
    <?php get_template_part(‘personal’, ‘design’) ?>
    <?php } elseif ($blogroll_content_design== ‘magazine_design’) { ?>
    <?php get_template_part(‘magazine’, ‘design’) ?>
    <?php } elseif ($blogroll_content_design== ‘gridcont_design’) { ?>
    <?php get_template_part(‘grid’, ‘design’) ?>
    <?php } ?>
    <!–blogroll End–>
    </div>

    <?php get_template_part(‘new’, ‘sidebar’); ?>
    </div>
    <?php } elseif ($home_layout == ‘classic-layout’) { ?>
    <div class=”content-left small-left large-right”>
    <!–Style 02–>

    <div id=”content”>
    <!–Content Page With Tabs Anded And blogroll Started–>
    <?php
    $blogroll_content_design= cs_get_option(‘blog_roll_design_select’);
    if ($blogroll_content_design== ‘personal_design’) { ?>
    <?php get_template_part(‘personal’, ‘design’) ?>
    <?php } elseif ($blogroll_content_design== ‘magazine_design’) { ?>
    <?php get_template_part(‘magazine’, ‘design’) ?>
    <?php } elseif ($blogroll_content_design== ‘gridcont_design’) { ?>
    <?php get_template_part(‘grid’, ‘design’) ?>
    <?php } ?>
    <!–blogroll End–>
    </div>

    <?php get_template_part(‘new’, ‘sidebar’); ?>
    <?php get_sidebar(); ?>
    </div>
    <?php } elseif ($home_layout == ‘classic-left’) { ?>
    <div class=”content-center small-left large-right”>
    <!–Style 01–>
    <?php get_template_part(‘new’, ‘sidebar’); ?>

    <div id=”content”>
    <!–Content Page With Tabs Anded And blogroll Started–>
    <?php
    $blogroll_content_design= cs_get_option(‘blog_roll_design_select’);
    if ($blogroll_content_design== ‘personal_design’) { ?>
    <?php get_template_part(‘personal’, ‘design’) ?>
    <?php } elseif ($blogroll_content_design== ‘magazine_design’) { ?>
    <?php get_template_part(‘magazine’, ‘design’) ?>
    <?php } elseif ($blogroll_content_design== ‘gridcont_design’) { ?>
    <?php get_template_part(‘grid’, ‘design’) ?>
    <?php } ?>
    <!–blogroll End–>
    </div>

    <?php get_sidebar(); ?>
    </div>
    <?php } elseif ($home_layout == ‘default-left’) { ?>
    <div class=”content-right large-left small-right”>
    <!–Style 03–>
    <?php get_sidebar(); ?>
    <?php get_template_part(‘new’, ‘sidebar’); ?>

    <div id=”content”>
    <!–Content Page With Tabs Anded And blogroll Started–>
    <?php
    $blogroll_content_design= cs_get_option(‘blog_roll_design_select’);
    if ($blogroll_content_design== ‘personal_design’) { ?>
    <?php get_template_part(‘personal’, ‘design’) ?>
    <?php } elseif ($blogroll_content_design== ‘magazine_design’) { ?>
    <?php get_template_part(‘magazine’, ‘design’) ?>
    <?php } elseif ($blogroll_content_design== ‘gridcont_design’) { ?>
    <?php get_template_part(‘grid’, ‘design’) ?>
    <?php } ?>
    <!–blogroll End–>
    </div>

    </div>
    <?php } else { ?>
    <div class=”content-full-post-default”>
    <?php get_template_part(‘personal’, ‘design’) ?>
    </div>
    <?php }
    get_footer(); ?>

    And here is my searchform.php:

    <form action=”<?php bloginfo(‘siteurl’); ?>” id=”searchform” method=”get”>
    <input type=”text” id=”s” name=”s” value=”<?php _e(‘Type and hit Enter….’, ‘spraymagwp’); ?>”>
    </form>

    Is there anything I can do to fix this?

    https://www.ads-software.com/plugins/relevanssi/

Viewing 6 replies - 1 through 6 (of 6 total)
  • same here, only got a blank page. not sure what is happening

    Plugin Author Mikko Saari

    (@msaari)

    Well, at least your search results template is completely missing the post loop. It’s hidden somewhere in the get_template_part() functions. Which template is your site using?

    Anyway, blank page often means an error, so can you access the error log to see if there’s a helpful error message?

    Thread Starter crashprojects

    (@crashprojects)

    Thanks for your response. The error log reads only this:

    [15-Jul-2015 01:45:31 UTC] PHP Notice: get_bloginfo was called with an argument that is deprecated since version 2.2! The siteurl option is deprecated for the family of bloginfo() functions. Use the url option instead. in /home/content/65/10606665/html/pcg/wp-includes/functions.php on line 3508
    [15-Jul-2015 01:57:14 UTC] PHP Notice: get_bloginfo was called with an argument that is deprecated since version 2.2! The siteurl option is deprecated for the family of bloginfo() functions. Use the url option instead. in /home/content/65/10606665/html/pcg/wp-includes/functions.php on line 3508

    Plugin Author Mikko Saari

    (@msaari)

    Ok, that’s not it. How large is your site, how many posts in the Relevanssi index? Blank page can also mean performance issues.

    You can also try to disable custom snippets.

    Thread Starter crashprojects

    (@crashprojects)

    It’s definitely something in the theme bc when I deactivate it and activate another theme, search works fine. The developer of this theme is not remotely helpful on this issue and has been unable to provide any answers or insight.

    Any ideas as to where I can poke around to see if I can find something?

    Thanks.

    Plugin Author Mikko Saari

    (@msaari)

    I’d take a closer look at the template you’re using, ‘personal’, ‘magazine’ or ‘grid’. Also, adding breakpoints like echo "stop"; exit(); in the template may help you figure out where it breaks down.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘No results for anything; blank page’ is closed to new replies.