• When typing in a search topic, if I hit enter or the search icon instead of selecting an option in the dropdown I get an error on every search. I see it is not supposed to work that way and need assistance.

    Thank you

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter xzyla

    (@xzyla)

    I wanted to add that I have disabled each plugin one-by-one and determined there were no conflicts. Could it be that the php7 server is causing an issue?

    The dropdown results work but, hitting return or selecting “More Results” end in a 500 error.

    Please help with this issue. Thank you

    Plugin Author wpdreams

    (@wpdreams)

    Hi!

    I am not sure if this is an issue with the plugin to be honest.

    When I visit a random search URL on your site (for example yoursite.com/?s=a b c d), I am getting this error regardless. However in that case the plugin does not affect the results.

    Can you try visiting the results page with the plugin deactivated? Error 500 usually happens when there is a programatical error within the theme files. If you recently edited the search.php file in your theme directory, there might be an error there.

    Let me know!

    Best regards,
    Ernest M.

    Thread Starter xzyla

    (@xzyla)

    Thanks for the reply. I disabled the plugin but still an error page does not work. I also tested if it was a conflict with any other plugins.

    I am no sure why it displays correct drop down links with no errors but when you hit return or more results it gives an error?

    Please help with this.

    Thread Starter xzyla

    (@xzyla)

    I have not modified the search.php file. Below is the code

    <?php

    get_header();

    $NV_layout = of_get_option(‘pagelayout’,’layout_four’);

    if( $NV_hidecontent != “yes” )
    {
    $columns = ”;

    if( $NV_layout == “layout_one” ) $columns = ‘twelve’;
    elseif( $NV_layout == “layout_two” ) $columns = ‘eight last’;
    elseif( $NV_layout == “layout_three” ) $columns = ‘six last’;
    elseif( $NV_layout == “layout_four” ) $columns = ‘eight’;
    elseif( $NV_layout == “layout_five” ) $columns = ‘six’;
    elseif( $NV_layout == “layout_six” ) $columns = ‘six’;
    else $columns = ‘eight’;

    echo “\n\t”. ‘<div id=”content” class=”columns ‘. $columns .’ ‘. $NV_layout .'”>’; ?>

    <article>
    <?php if ( have_posts() ) : ?>

    <h2 class=”pagetitle”><?php _e(‘Search Results For: ‘, ‘themeva’ ); ?> <?php /* Search Count */ $allsearch = &new WP_Query(“s=$s&showposts=-1″); $key = esc_html($s, 1); $count = $allsearch->post_count; echo ‘<span class=”search-terms”> “‘. $key .'</span>” ( ‘. $count . ‘ ‘. __(‘articles found’,’themeva’). ‘ )’; wp_reset_query(); ?></h2>

    <?php while (have_posts()) : the_post(); ?>

    <p>
    <h3 id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php $title = get_the_title(); $keys= explode(” “,$s); $title = preg_replace(‘/(‘.implode(‘|’, $keys) .’)/iu’, ‘<strong class=”search-excerpt”>\0‘, $title); ?><?php echo $title; ?></h3>
    <p>
    <?php the_excerpt(); ?>
    </p>
    <hr />
    </p>

    <?php endwhile; ?>
    <?php else : ?>

    <h2><?php _e(‘No posts found. Try a different search? ‘, ‘themeva’ ); ?></h2>

    <?php

    get_search_form();

    endif;

    global $wp_query;

    $total_pages = $wp_query->max_num_pages;

    if ($total_pages > 1)
    {
    $current_page = max(1, get_query_var(‘paged’));

    echo ‘<div class=”page_nav”>’;

    echo paginate_links(array(
    ‘base’ => get_pagenum_link(1) . ‘%_%’,
    ‘format’ => ‘&paged=%#%’,
    ‘current’ => $current_page,
    ‘total’ => $total_pages,
    ‘prev_text’ => ‘«’,
    ‘next_text’ => ‘»’
    ));

    echo ‘</div>’;
    } ?>
    </article>

    <?php
    echo “\n\t”. ‘</div><!– #content –>’;

    get_sidebar();

    } // Hide Content *END*

    get_footer();

    Thread Starter xzyla

    (@xzyla)

    I installed Ajax Search Lite version 4.7.13 on another site to test and the search does nothing if you hit return after typing or selecting the magnifying glass icon.

    I understand most people will select from the drop down but others do not and just hit enter for the results.

    Please help.

    Thank you

    Thread Starter xzyla

    (@xzyla)

    Would it be helpful if I purchased the PRO version on the envato market?

    Would this resolve any issues? How would I import the plugin without interfering with the settings?

    Thanks you for your time.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘error not using the dropdown options’ is closed to new replies.