Title: Parse error: syntax error
Last modified: August 22, 2016

---

# Parse error: syntax error

 *  [ifadiyimu](https://wordpress.org/support/users/ifadiyimu/)
 * (@ifadiyimu)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-99/)
 * Hi my first time posting. I got a wordpress website from client that he stopped
   development with another consultant. I got the site up and running in my local
   server i can go to wp-admin and launch all pages from there but if I try to go
   to the main page I get the following error.
 * ( ! ) Parse error: syntax error, unexpected end of file in C:\wamp\www\roofing\
   wp-content\themes\roofing\front-page.php on line 61
    Call Stack # Time Memory
   Function Location 1 0.0004 136504 {main}( ) ..\index.php:0 2 0.0008 138416 require(‘
   C:\wamp\www\roofing\wp-blog-header.php’ ) ..\index.php:17 3 0.2257 13390840 require_once(‘
   C:\wamp\www\roofing\wp-includes\template-loader.php’ ) ..\wp-blog-header.php:
   16
 * The front-page.php code is this:
 *     ```
       <?php get_header();
       global $post; ?>
           <section id="left">
               <nav id="sidebar-menu">
                   <?php dynamic_sidebar( 'Sidebar' ); ?>
               </nav>
           </section>
           <section id="main">
               <div class="slider">
                   <ul class="slider-ul">
                       <?php $slider = get_field('slider');
                           if($slider) { ?>
                               <?php foreach($slider as $slide) { ?>
                               <li>
                                   <img src="<?php echo $slide['image'] ?>">
                                   <div class="slide-description">
                                       <h3><?php echo $slide['yellow_text'] ?></h3>
                                       <p><?php echo $slide['white_text'] ?></p>
                                   </div>
                               </li>
                               <? } ?>
                       <?php } ?>
                   </ul>
               </div>
               <?php echo do_shortcode( '[contact-form-7 id="142"]' ); ?>
               <div class="c"></div>
               <div class="main-boxes">
                   <?php $blocks = get_field('blocks');
                       if($blocks) { ?>
                           <?php foreach($blocks as $block) { ?>
                           <div class="main-box">
                               <h3 class="title"><?php echo $block['title'] ?></h3>
                               <img src="<?php echo $block['image'] ?>">
                               <div class="box-description">
                                   <p><?php echo $block['description'] ?></p>
                                   <a href="<?php echo $block['button_link'] ?>" class="green-btn">
                                       <?php echo $block['button_title'] ?>
                                   </a>
                               </div>
                           </div>
                           <? } ?>
                   <?php } ?>
               </div>
               <div class="c"></div>
               <article id="content">
                   <?php if ( have_posts() ) : while ( have_posts() ) : the_post();
                       the_content();
                   endwhile; endif; ?>
                   <h4>Brands weâ€™ve worked with</h4>
                   <ul class="brands-logo">
                   <?php $brands_logos = get_field('brands_logos','options');
                       if($brands_logos) { ?>
                           <?php foreach($brands_logos as $brand_logo) { ?>
                           <li><img src="<?php echo $brand_logo['brand_logo'] ?>"></li>
                       <? } ?>
                   <?php } ?>
                   </ul>
               </article>
               <div class="c"></div>
           </section>
       <?php get_footer(); ?>
       ```
   
 * For index.php is this:
 *     ```
       <?php
       /**
        * Front to the WordPress application. This file doesn't do anything, but loads
        * wp-blog-header.php which does and tells WordPress to load the theme.
        *
        * @package WordPress
        */
   
       /**
        * Tells WordPress to load the WordPress theme and output it.
        *
        * @var bool
        */
       define('WP_USE_THEMES', true);
   
       /** Loads the WordPress Environment and Template */
       require( dirname( __FILE__ ) . '/wp-blog-header.php' );
       ?>
       ```
   
 * For wp-blog-header.php is this:
 *     ```
       <?php
       /**
        * Loads the WordPress environment and template.
        *
        * @package WordPress
        */
   
       if ( !isset($wp_did_header) ) {
   
       	$wp_did_header = true;
   
       	require_once( dirname(__FILE__) . '/wp-load.php' );
   
       	wp();
   
       	require_once( ABSPATH . WPINC . '/template-loader.php' );
   
       }
       ```
   
 * I did run it through a PHP checker and it cleared so I don’t know the problem
   any help will be greatly appreciate it.

Viewing 1 replies (of 1 total)

 *  Thread Starter [ifadiyimu](https://wordpress.org/support/users/ifadiyimu/)
 * (@ifadiyimu)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-99/#post-5539211)
 * This error I realized only occurs when selecting the custom template which this
   site is based on. The thing is that if I go to the test site from the other consultant
   it all works fine.

Viewing 1 replies (of 1 total)

The topic ‘Parse error: syntax error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [ifadiyimu](https://wordpress.org/support/users/ifadiyimu/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-99/#post-5539211)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
