title: Wordpress Fatal error: Uncaught Error: syntax error
body: <p>I am facing error in the code line no 134</p>
  
  <p>Fatal error: Uncaught Error: syntax error, unexpected end of file
  in /taxonomy-product_category.php on line 134</p>
  
  <p>The code working in some server can and some server looking above the error message can anyone please help me what's wrong in the code, how can I resolve the syntax error thanks in advance </p>
  
  <pre><code>&lt;?php
  /**
   * The template for displaying Archive pages
   *
   * Used to display archive-type pages if nothing more specific matches a query.
   * For example, puts together date-based pages if no date.php file exists.
   *
   * If you'd like to further customize these archive views, you may create a
   * new template file for each specific one. For example, Twenty Fourteen
   * already has tag.php for Tag archives, category.php for Category archives,
   * and author.php for Author archives.
   *
   * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
   *
   * @package WordPress
   * @subpackage Twenty_Fourteen
   * @since Twenty Fourteen 1.0
   */
  
  get_header(); ?&gt;
  
      &lt;section id="primary" class="content-area"&gt;
          &lt;div id="content" class="site-content" role="main"&gt;
  
              &lt;?php if ( have_posts() ) : ?&gt;
  
              &lt;header class="page-header"&gt;&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
                  &lt;h1 class="page-title"&gt;
                      &lt;?php
                      if ( is_day() ) {
                          /* translators: %s: Date. */
                          printf( __( 'Daily Archives: %s', 'twentyfourteen' ), get_the_date() );
                      } elseif ( is_month() ) {
                          /* translators: %s: Date. */
                          printf( __( 'Monthly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyfourteen' ) ) );
                      } elseif ( is_year() ) {
                          /* translators: %s: Date. */
                          printf( __( 'Yearly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyfourteen' ) ) );
                      } else {
                          _e( 'Archives', 'twentyfourteen' );
                      }
                      ?&gt;
                  &lt;/h1&gt;
              &lt;/header&gt;&lt;!-- .page-header --&gt;
  &lt;section id="product-list" class="section"&gt;
              &lt;div class="bandInner"&gt;
  &lt;?php
  if ( function_exists('yoast_breadcrumb') ) {
  yoast_breadcrumb('
  &lt;p id="breadcrumbs"&gt;','&lt;/p&gt;
  ');
  }
  
  ?&gt;  &lt;h1 class='pageTitle'&gt;&lt;?php
      printf( __( ' %s', 'twentyten' ), '&lt;span&gt;' . single_cat_title( '', false ) . '&lt;/span&gt;' );
  ?&gt;&lt;/h1&gt;
  &lt;? 
  wp_nav_menu( array( 
      'theme_location' =&gt; 'product-category',
      'container'      =&gt; 'ul',
      'menu_class'     =&gt; 'prodCats',
  ) );
  
  ?&gt;
  &lt;style&gt;
  ul.prodCats li{
      display:initial!important;
  }
  ul.prodCats li.current-menu-item a {
      color: #8b2131!important;
  }
  &lt;/style&gt;
  &lt;article id="mainContent"&gt;
  
                      &lt;ul id="prodList"&gt;
      &lt;?php
                  // Start the Loop.
                  while ( have_posts() ) :
                      the_post();
  
                      /*
                       * Include the post format-specific template for the content. If you want
                       * to use this in a child theme, then include a file called content-___.php
                       * (where ___ is the post format) and that will be used instead.
                       */
                      ?&gt;  
                      &lt;li&gt;
                      &lt;div class="prodCtn"&gt;
                                      &lt;a class="prodImgCtn prodLink" href="&lt;?php echo get_permalink(); ?&gt;"&gt;
                                          &lt;?php 
                                          $img = wp_get_attachment_image_src( get_field('product_image'), "thumb_product" ); 
                                          ?&gt;
                                          &lt;img class="prodImg" src="&lt;?php echo $img[0]; ?&gt;"/&gt;
                                      &lt;/a&gt;
                                      &lt;div class="prodCont"&gt;
                                          &lt;a href="&lt;?php echo get_permalink(); ?&gt;" class=""&gt;
                                              &lt;p class="prodHd"&gt;&lt;?php the_title(); ?&gt;&lt;/p&gt;
                                          &lt;/a&gt;
                                          &lt;p&gt;
                                              &lt;?php  
                                                  $givchars = 350; 
                                                  //$postgiv = the_field('product_description'); 
                                                  $postgiv = get_field('product_description'); 
                                                  $modgiv = substr($postgiv, 0, $givchars); 
                                                  echo ' ' .$modgiv. '... ';
                                              ?&gt;
                                          &lt;/p&gt;
                                          &lt;a href="&lt;?php echo get_permalink(); ?&gt;" class="btn"&gt;
                                              &lt;span class="btnTxt"&gt;View More&lt;/span&gt;
                                          &lt;/a&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                                  &lt;/li&gt;
  &lt;?
  
                      endwhile;?&gt;
                      &lt;/ul&gt;
                      &lt;div id="show-hide-content" class="cat-content less-mode"&gt;&lt;?php echo category_description(); ?&gt;&lt;/div&gt;
  
                  &lt;/article&gt;
  
                      &lt;?
                      // Previous/next page navigation.
  
  
                  endif;
                  ?&gt;&lt;/div&gt;&lt;!-- #content --&gt;
      &lt;/section&gt;
          &lt;/div&gt;&lt;!-- #content --&gt;
      &lt;/section&gt;&lt;!-- #primary --&gt;
  
  &lt;?php
  get_footer();
  ?&gt;
  </code></pre>