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

---

# Parse error: syntax error, unexpected T_FUNCTION i

 *  Resolved [Marcus Thompson](https://wordpress.org/support/users/marcus-thompson/)
 * (@marcus-thompson)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-i/)
 * I just installed the upgrade and now I’m getting this error.
 * Parse error: syntax error, unexpected T_FUNCTION in /home/content/00/7572100/
   html/wp-content/plugins/newsletter-sign-up/php/frontend.php on line 11
 * Please help.
 * Marcus

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

 *  [Knut Sparhell](https://wordpress.org/support/users/knutsp/)
 * (@knutsp)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-i/#post-2046908)
 * It seems this plugin uses an anonymous function as a parameter to an action hook.
   Anonymous functions was introduced in PHP 5.3. What is your PHP version?
 * Two strange things:
    * Why didn’t WordPress detect that there was a fatal error
   when activationg this plugin? Did you upgrade an active plugin by overwriting
   files through FTP, or did you use the upgrade facility in WordPress? * And after
   activation, the plugin itself should have deactivated itself, if the requires
   PHP version was not met.
 * Until this is resolved you have to deactgivate this plugin. Do deactivate a plugin
   when you cannot log in, use FTP to rename or delete the folder `newsletter-sign-
   up` from your wp-content/plugins folder.
 * Contact the plugin author, qoute the error message and mention your PHP version.
   Your PHP version may be found through your hosts admin panel or through the plugin
   WP Serverinfo.
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-i/#post-2047009)
 * Knut, thanks for your thorough explanation, you were spot on.
 * Marcus, please update to v1.3.1. Your issue should be fixed in that version. 
   🙂
 *  [aboveadmin](https://wordpress.org/support/users/aboveadmin/)
 * (@aboveadmin)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-i/#post-2047247)
 * Help! I tried to remove my RSS feed and per the request of another thread I found
   about how to do this the wordpress page has crashed all together. I followed 
   these directions
 * “Go to your theme and paste this in your function.php”
    /** * Disable Our Feed
   Urls */ function disable_our_feeds() { wp_die( __(‘**Error:** No RSS Feed Available,
   Please visit our [homepage](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-i/&apos;. get_bloginfo(&apos;url&apos;) .&apos;?output_format=md).’));}
 * add_action(‘do_feed’, ‘disable_our_feeds’, 1);
    add_action(‘do_feed_rdf’, ‘disable_our_feeds’,
   1); add_action(‘do_feed_rss’, ‘disable_our_feeds’, 1); add_action(‘do_feed_rss2’,‘
   disable_our_feeds’, 1); add_action(‘do_feed_atom’, ‘disable_our_feeds’, 1);
 * After I did this this came up
 * Parse error: syntax error, unexpected T_FUNCTION, expecting ‘)’ in /usr/home/
   goabov/www/htdocs/main/wp-content/themes/above/functions.php on line 11
 * How do I get the wordpress page back? in addition how can I remove the RSS feed
   which I set up to get rid of.
 *  [aboveadmin](https://wordpress.org/support/users/aboveadmin/)
 * (@aboveadmin)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-i/#post-2047248)
 * In addition I can’t move around inside my wordpress page. Every click to any 
   of the pages, appearance, themes, tools, users…etc all return me to the Parse
   error: syntax….line 11. This mistake on my part is extremely frustrating as I
   feel I just crashed my whole wordpress site.
    Please help me understand how to
   resolve this issue. Thank you
 *  [Knut Sparhell](https://wordpress.org/support/users/knutsp/)
 * (@knutsp)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-i/#post-2047249)
 * Use FTP and replace the file with the original. Or just rename it.
 * 1. You shuld not edit an active .php file. Change theme, edit, then change back.
 * 2. You should not use this thread (a solved issue) to ask a question about another
   topic, even if it sems to result in the same PHP error code. Start a new thread
   for your specific problem.
 *  [aboveadmin](https://wordpress.org/support/users/aboveadmin/)
 * (@aboveadmin)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-i/#post-2047250)
 * Thanks Knut,
    Excuse my lack of knowledge but using the FTP service I can find
   the original file, then I can replace it in wordpress? Or with the Filezilla 
   program?
 * the theme for my wordpress was a custom theme provided by a friend. Do you suggest
   I still change the theme if possible (as I can’t navigate) in the wordpress currently.
   Every adjustment I try and make the error comes up with line 11…etc.
 *  [amwicker](https://wordpress.org/support/users/amwicker/)
 * (@amwicker)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-i/#post-2047260)
 * Hi,
 * I just tried to edit functions.php with code to remove search bar from my site.
   However, I cannot access my site admin panel anymore. I receive Parse error: 
   syntax error, unexpected T_FUNCTION in /hermes/web02/b2849/moo.leatherheadsfootball/
   wp-content/themes/twentyten/functions.php on line 509. Can anyone help me fix
   this error?
 * Thanks.
 *  [Knut Sparhell](https://wordpress.org/support/users/knutsp/)
 * (@knutsp)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-i/#post-2047261)
 * [@amwicker](https://wordpress.org/support/users/amwicker/): This case is resolved.
   Please don’t use this thread for other cases. Btw: Rename the file by FTP, reinstall
   theme. Don’t mess with active PHP files from within WordPress itself. Have backup.

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

The topic ‘Parse error: syntax error, unexpected T_FUNCTION i’ is closed to new 
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/newsletter-sign-up.svg)
 * [Newsletter Sign-Up](https://wordpress.org/plugins/newsletter-sign-up/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/newsletter-sign-up/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/newsletter-sign-up/)
 * [Active Topics](https://wordpress.org/support/plugin/newsletter-sign-up/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/newsletter-sign-up/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/newsletter-sign-up/reviews/)

 * 8 replies
 * 5 participants
 * Last reply from: [Knut Sparhell](https://wordpress.org/support/users/knutsp/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-i/#post-2047261)
 * Status: resolved