Title: Parse error: syntax error, unexpected T_STRING
Last modified: August 19, 2016

---

# Parse error: syntax error, unexpected T_STRING

 *  [animechronicles](https://wordpress.org/support/users/animechronicles/)
 * (@animechronicles)
 * [18 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-4/)
 * When i try to access my website, an error comes up saying Parse error: syntax
   error, unexpected T_STRING in /home/dadtech/public_html/dubhappy/wp-content/themes/
   businesslite/functions.php on line 1
 * Here’s the code.
 * `<?phpfunction getNav(){ echo str_replace(array("<ul>","</ul>","<li class=\"page_item\"
   >","<li class=\"page_item current_page_item\">","</li>"),"",wp_list_pages('depth
   =-1&echo=0&title_li='));}if ( function_exists('register_sidebar') ) register_sidebar(
   array('before_widget' => ", 'after_widget' => ", 'before_title' => '<h2>', 'after_title'
   => '</h2>', ));?>`

Viewing 1 replies (of 1 total)

 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [18 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-4/#post-730348)
 * `<?phpfunction`
 * That should be:
    `<?php function`
 * Note the space.

Viewing 1 replies (of 1 total)

The topic ‘Parse error: syntax error, unexpected T_STRING’ 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/)
 * [T_STRING](https://wordpress.org/support/topic-tag/t_string/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-4/#post-730348)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
