Title: syntax error, unexpected $end
Last modified: August 19, 2016

---

# syntax error, unexpected $end

 *  [twinpix](https://wordpress.org/support/users/twinpix/)
 * (@twinpix)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-end/)
 * Tags on my site are leading to “Parse error: syntax error, unexpected $end in/
   web/partfaliaz/www/wp-content/themes/ImageBlogger/archive.php on line 66”
    I’m
   on WP2.7 and using last version of simpletags. [http://www.partfaliaz.com/](http://www.partfaliaz.com/)
 * I’m hosted on PHP5, Short_Open_Tag are off.
    Here is the archive.php… I don’t
   see anything open that isn’t closed:
 *     ```
       <?php get_header(); ?>
       <div class="authorbox">    <?php if (have_posts()) : ?>
           <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
           <?php /* If this is a category archive */ if (is_category()) { ?>
           <h1>Archive of ‘
             <?php single_cat_title(); ?>
             ’</h1>
           <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
           <h1>Archive for
             <?php the_time('F jS, Y'); ?>
           </h1>
           <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
           <h1>Posts Tagged ‘
             <?php single_tag_title(); ?>
             ’</h1>
           <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
           <h1>Archive for
             <?php the_time('F, Y'); ?>
           </h1>
           <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
           <h1>Archive for
             <?php the_time('Y'); ?>
           </h1>
           <?php /* If this is an author archive */ } elseif (is_author()) { ?>
           <h2>Author Archive</h2>
           <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
             <h2>
             Blog Archives
             </h2>
             <?php } ?>
           <?php if (have_posts()) : the_post(); ?>
           <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
   
       <?php endif; ?>
       <?php echo category_description(); ?></div>
   
       <div id="pagebox">
       <div id="leftcontent">
       <div class="archivebox">
           <?php if (have_posts()) : ?>
           <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
   
           <h1>All entries filed under this archive</h1>
         <br style="clear:both;" />
           <?php while (have_posts()) : the_post(); ?>
               <div style="float:left;margin-bottom:10px;width:100%;"><div class="thumblist"><?php the_thumb(); ?></div><div style=""><strong><a href="<?php the_permalink(); ?>">
                 <?php the_title(); ?>
                 </a></strong><br /><span class="linetwo"><a href="<?php comments_link(); ?>"><?php comments_number('no responses','1 response','% responses'); ?></a> - Posted <?php the_time('d.m.Y') ?></span><br /> <?php the_content_rss('', FALSE, '', 50); ?><span class="continuebox"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">continue</a></span></div></div>
           <?php endwhile; ?>
   
         <div class="navigation">
           <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
         </div>
         <?php else : ?>
         <h1>No additional entries found.</h1>
   
       <?php endif; ?>
   
       <br style="clear:both;" />
       </div>
       </div>
       <?php get_sidebar(); ?>
       <br style="clear:both;" />
       <?php get_footer(); ?>
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-end/#post-968706)
 * what happens when you switch to the default theme temporarily?
    same problem?
 *  Thread Starter [twinpix](https://wordpress.org/support/users/twinpix/)
 * (@twinpix)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-end/#post-968717)
 * the default theme works alright

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘syntax error, unexpected $end’ is closed to new replies.

## Tags

 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)
 * [tags](https://wordpress.org/support/topic-tag/tags/)

 * 2 replies
 * 2 participants
 * Last reply from: [twinpix](https://wordpress.org/support/users/twinpix/)
 * Last activity: [17 years, 4 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-end/#post-968717)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
