title: Parse error: syntax error, unexpected end of file - line 59
body: <p>This error appears up when activating a modified theme in Wordpress:</p>
  
  <p>Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\wp-content\themes\manifest_v1.1\functions.php on line 59</p>
  
  <p>The functions.php file has been modified to allow "subject" lines to be chosen when posting a comment.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>&lt;?php
  $cats=array(
  1=&gt;'Category 1',
  2=&gt;'Category 2',
  3=&gt;'Category 3'
  );
  
  function showCats($cats){
  
  ?&gt;
  &lt;select name="commentCats"&gt;
  &lt;?php
  foreach($cats as $key=&gt;$cat){
  ?&gt;
  &lt;option value="&lt;?php print $key; ?&gt;"&gt;&lt;?php print $cat; ?&gt;&lt;/option&gt;
  &lt;?
  }
  ?&gt;
  &lt;/select&gt;
  &lt;?php
  }
  add_action ('comment_post', 'add_comment_fields', 1);
  function add_comment_fields($comment_id) {
              add_comment_meta($comment_id, 'commentCats', $_POST['commentCats'], true);
  }
  function manifest_comment($comment, $args, $depth){
  print $depth;
  global $cats;
   $catID = get_comment_meta(get_comment_ID(),"commentCats", true);
   $GLOBALS['comment'] = $comment; ?&gt;
     &lt;li &lt;?php comment_class(); ?&gt; id="li-comment-&lt;?php comment_ID() ?&gt;"&gt;
       &lt;div id="comment-&lt;?php comment_ID(); ?&gt;"&gt;
        &lt;div class="comment-author vcard"&gt;
           &lt;?php echo get_avatar($comment,$size='48',$default='&lt;path_to_url&gt;' ); ?&gt;
  
           &lt;?php printf(__('&lt;cite class="fn"&gt;%s&lt;/cite&gt; &lt;span class="says"&gt;says:&lt;/span&gt;'),         get_comment_author_link()) ?&gt;
        &lt;/div&gt;
  
        &lt;?php if ($comment-&gt;comment_approved == '0') : ?&gt;
           &lt;em&gt;&lt;?php _e('Your comment is awaiting moderation.') ?&gt;&lt;/em&gt;
           &lt;br /&gt;
        &lt;?php endif; ?&gt;
  
        &lt;div class="comment-meta commentmetadata"&gt;&lt;a href="&lt;?php echo htmlspecialchars( get_comment_link( $comment-&gt;comment_ID ) ) ?&gt;"&gt;&lt;?php printf(__('%1$s at %2$s'), get_comment_date(),  get_comment_time()) ?&gt;&lt;/a&gt;&lt;?php edit_comment_link(__('(Edit)'),'  ','') ?&gt;&lt;/div&gt;
        &lt;?php if($catID){ ?&gt;
        &lt;h3&gt;&lt;?php 
  
        print $cats[$catID]; ?&gt;&lt;/h3&gt;
      &lt;?php } ?&gt;
        &lt;?php comment_text() ?&gt;
  
        &lt;div class="reply"&gt;
           &lt;?php comment_reply_link(array_merge($args, array('depth' =&gt; $depth, 'max_depth' =&gt; $args['max_depth']))) ?&gt;
        &lt;/div&gt;
       &lt;/div&gt;
  &lt;?php 
  } 
  
  ?&gt;
  </code></pre>
  
  <p>I can't figure out what the problem is, I have been told it was working on another test machine. I am currently testing the theme on a local machine. I am testing using XAMPP (http://www.apachefriends.org/en/xampp-windows.html) which includes Apache, MySQL, PHP and PHPmyAdmin. I am using a fresh installation of Wordpress version 3.4.1.</p>
  
  <p>Thanks!</p>