• Resolved Poncereau

    (@poncereau)


    After trying a wrong url on my website, I’ve had this error :

    Parse error: syntax error, unexpected $end in /homez.718/domainepr/www/wp/wp-content/themes/evening-shade-fr/404.php on line 39

    So the 404 page is not correct, but I can’t find out why…
    Tried to google it but didn’t see any answer. Can anybody help me ?

    Check it here

    Code of the 404 page :

    get_header(); ?>
    
    <!-- Start page templates -->
    	<!-- Top Promo area for full width banners -->
    	<?php include (TEMPLATEPATH . '/advertise.php'); ?>
    		<!-- Breadcrumbs -->	 
    
    		<!-- Start two columns -->
    			<div id="columns" class="clearfix">
    				<div id="component">  <!-- remove -2 for full width -->
    					<div id="mainbody" class="clearfix">  <!-- remove -2 for full width -->
    						<div id="main_top">
    							<div id="main_bottom" class="fullheight">
    								<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    			  <div id="postwrap-<?php the_ID(); ?>" class="post">
    				<h1>Erreur 404 - Introuvable</h1>
    
    			      <div class="post"><p class="center">Désolé.</p></div>
    			    </div>
    							</div>
    						</div>
    					</div>
    				</div>
    
    			</div>
    		<!-- end columns -->
    <!-- End Page Templates -->
    
    <?php
    get_footer();
    ?>
Viewing 1 replies (of 1 total)
  • Thread Starter Poncereau

    (@poncereau)

    Found how to solve the problem !

    You need to replace :
    if (have_posts()) : while (have_posts()) : the_post();
    by :
    if (have_posts()) { while (have_posts()) { the_post();}}

    Found it here.

Viewing 1 replies (of 1 total)
  • The topic ‘Syntax error on 404.php’ is closed to new replies.