Title: $end error message
Last modified: August 20, 2016

---

# $end error message

 *  Resolved [Dusty](https://wordpress.org/support/users/ameliapower/)
 * (@ameliapower)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/end-error-message/)
 * I’m getting error message:
    Parse error: syntax error, unexpected $end on last
   line:
 * [http://pastebin.com/y6YbaL6h](http://pastebin.com/y6YbaL6h)
 * Any ideas?

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/end-error-message/#post-2294025)
 * Try changing:
 * `</div><!--end sidebar-->`
 * to:
 * `<?php endif;?></div><!--end sidebar-->`
 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/end-error-message/#post-2294026)
 * I’m no php expert….
 * but on line 2 you have an if statement
 * I don’t see a corresponding endif
 *     ```
       <?php endif; ?>
       ```
   
 * I would guess before the last closing div
 *  Thread Starter [Dusty](https://wordpress.org/support/users/ameliapower/)
 * (@ameliapower)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/end-error-message/#post-2294028)
 * And I’m even less of a php expert.
    Thanks, you’re both right.

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

The topic ‘$end error message’ is closed to new replies.

 * 3 replies
 * 3 participants
 * Last reply from: [Dusty](https://wordpress.org/support/users/ameliapower/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/end-error-message/#post-2294028)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
