Title: Parse error: syntax error, unexpected &#039;;&#039; in category php
Last modified: August 20, 2016

---

# Parse error: syntax error, unexpected ';' in category php

 *  Resolved [dorotta](https://wordpress.org/support/users/dorotta/)
 * (@dorotta)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-category-php/)
 * Hi guys!
 * I just wanted to find out if it’s possible to remove the category names from 
   appearing from above my posts. I messed around my category php and as a result
   I have this error saying: Parse error: syntax error, unexpected ‘;’ in category.
   php on line 28
 * The line in question is the last line from this excerpt:
 *     ```
       <header class="page-header">
                                              <h1 class="page-title category-title"><span class="category-title-label"><?php
       						printf( __( 'Category Archives: %s','weaver-ii'), '</span><span>' . ?></h1>
       ```
   
 * Any suggestions how this could be fixed?
    I’m using weaver ii

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

 *  [racer x](https://wordpress.org/support/users/racer-x-1/)
 * (@racer-x-1)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-category-php/#post-2912308)
 * You certainly cut off way too much. There is an ending “)” missing in the php
   section. [printf](http://php.net/manual/en/function.printf.php) outputs a formatted
   string and we won’t know exactly what the intention of the formating was without
   seeing the code.
 * There is also a closing span tag missing (that’s not part of the php error though).
 * If you have a backup of the theme, check that of course. Otherwise, [re-download](http://weavertheme.com/download/)
   the theme if you can?
 * Future tips (yes, from captain hindsight):
 * 1. You have to be very careful when editing php files. Omitting one single quote
   or anything “simple” can cause the whole site to error.
 * 2. Always make a copy of the file before editing.
 *  Thread Starter [dorotta](https://wordpress.org/support/users/dorotta/)
 * (@dorotta)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-category-php/#post-2912365)
 * I added the missing ending “)” and “;” However, it still says Parse error: syntax
   error, unexpected ‘,’ in xxxxxxx/wp-content/themes/weaver-ii/category.php on 
   line 28
    Here’s the whole code in pastebin [ I hope that will help to sort things
   out. Man, I never ever gonna touch php again!
 *  [Rachel Baker](https://wordpress.org/support/users/rachelbaker/)
 * (@rachelbaker)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-category-php/#post-2912366)
 * If you are trying to remove the text for “Category Archives: $categoryname” in
   the h1 tag you can remove all of this code:
 *     ```
       <header class="page-header">
                                               <h1 class="page-title category-title"><span class="category-title-label"><?php
                                                       printf( __( 'Category Archives: %s','weaver-ii')), '</span><span>' . ( '', false ) . '</span>' ); ?></h1>
   
                                               <?php
                                                       $category_description = category_description();
                                                       if ( ! empty( $category_description ) )
                                                               echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' );
                                               ?>
                                       </header>
       ```
   
 *  Thread Starter [dorotta](https://wordpress.org/support/users/dorotta/)
 * (@dorotta)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-category-php/#post-2912367)
 * Dear rachelbaker, thank you so sooo much! It’s working again 🙂

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

The topic ‘Parse error: syntax error, unexpected ';' in category php’ is closed 
to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [dorotta](https://wordpress.org/support/users/dorotta/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-category-php/#post-2912367)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
