Title: Can&#039;t access any pages &#8211; Parse error: syntax error, unexpected T_FUNCTION
Last modified: August 21, 2016

---

# Can't access any pages – Parse error: syntax error, unexpected T_FUNCTION

 *  [cwasley](https://wordpress.org/support/users/cwasley/)
 * (@cwasley)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/cant-access-any-pages-parse-error-syntax-error-unexpected-t_function/)
 * If I try and click on any other options/pages in the editor I get the following
   error –
    Parse error: syntax error, unexpected T_FUNCTION in D:\Hosting\8784842\
   html\homes\wp-content\themes\Avenue\lib\post-types.php on line 217
 * I’m currently on the post-types theme editor page. I reverted back to the original
   code but it doesn’t help. No other admins can login.. I wan’t to try and uninstall
   some plugins to see if that’s the issue but I can’t click anywhere else.
 * I don’t know what is broken and I didn’t edit anything on line 217 so I’m not
   even sure how/why they is causing the error.
 * At this point I’d even be happy with going back to a blank site. Any ideas?!!
 * url is oakvillenewhomes.ca
 * The blog I need help with is oakvillenewhomes.ca.

Viewing 1 replies (of 1 total)

 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/cant-access-any-pages-parse-error-syntax-error-unexpected-t_function/#post-4303166)
 * You need to use FTP or Cpanel to deactivate the theme you are using – that’s 
   where this error is from. Once you get FTP/Cpanel access set up (ask your host
   if you don’t know how to use that), find the theme’s folder and rename your theme-
 *     ```
       wp-content
           themes
               Avenue.HOLD
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Can't access any pages – Parse error: syntax error, unexpected T_FUNCTION’
is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/cant-access-any-pages-parse-error-syntax-error-unexpected-t_function/#post-4303166)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
