Eroare la cautare pe site.

raresfranky

Active Member
Registered
Full Member
Salut! Am gasit o tema mai veche pe net si vreau sa o refac.
Cand caut ceva pe site imi da: "A fost o eroare critică pe situl tău web. "

aici este search.php

PHP:
<?php get_header(); ?>
<div id="primary" class="generos">
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-20 lado1">
                <?php get_sidebar(); ?>
            </div>
            <div class="col-md-80 lado2">
                <div class="list_f">
                    <div class="tiulo-c">
                        <h1><?php $allsearch = &new WP_Query("s=$s&showposts=-1"); $key = wp_specialchars($s, 1); $count = $allsearch->post_count; echo $count . ' '; _e(' results found.', 'nfteme'); wp_reset_query(); ?></h1> 
                    </div>
                    <ul class="list_mt">
                    <?php
                    if ( have_posts() ) : while ( have_posts() ) : the_post();
                    $url = get_permalink();
            $postid = url_to_postid( $url );
                    ?>
                    <li class="item">
                <a class="poster" href="<?php the_permalink(); ?>" title="<?php if(show_info('name', $postid ) == "N/A"){echo show_info('title', $postid ); }else{echo show_info('name', $postid );} ?>">
                <img src="<?php image_show("poster_path", $postid, "w185"); ?>" alt="<?php if(show_info('name', $postid ) == "N/A"){echo show_info('title', $postid ); }else{echo show_info('name', $postid );} ?>" />           
                </a>
                <div class="info">
                <h3 class="name"><a href="<?php the_permalink(); ?>" title="<?php if(show_info('name', $postid ) == "N/A"){echo show_info('title', $postid ); }else{echo show_info('name', $postid );} ?>"><?php if(show_info('name', $postid ) == "N/A"){echo show_info('title', $postid ); }else{echo show_info('name', $postid );} ?></a></h3>
                <span class="genero"><?php $category = get_the_category($postid); echo $category[0]->cat_name; ?></span>
                </div>
            </li>
            <?php endwhile; else: ?>
                <p><?php _e('No results found, please try again.', 'nfteme'); ?>
            <?php endif; ?>
            </ul>
            <div class="clear"></div>
            <?php if(function_exists('pagenavi')) { pagenavi(); } ?>
            <div class="clear"></div>
        </div>
            </div>     
        </div>
    </div>
</div>
<?php get_footer();?>

Daca stie cineva cum se poate rezolava;
posibil sa fie din asta?
PHP:
<h1><?php $allsearch = &new WP_Query("s=$s&showposts=-1"); $key = wp_specialchars($s, 1); $count = $allsearch->post_count; echo $count . ' '; _e(' results found.', 'nfteme'); wp_reset_query(); ?></h1>

Multumesc!
 
In wp_config.php seteaza WP_DEBUG pe true si dupa aceea in site o sa-ti spuna exact care e problema.
 
Loading...
Back
Sus