Title: Parse error: syntax error, unexpected T_FUNCTION in &#8230;
Last modified: September 1, 2016

---

# Parse error: syntax error, unexpected T_FUNCTION in …

 *  ResolvedPlugin Contributor [responsivemenu](https://wordpress.org/support/users/responsivemenu/)
 * (@responsivemenu)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-in-2/)
 * If you see the above notice when trying to activate it means you are using an
   outdated and insecure version of PHP.
 * Please upgrade to PHP 5.4+
 * [https://wordpress.org/plugins/responsive-menu/](https://wordpress.org/plugins/responsive-menu/)

Viewing 8 replies - 16 through 23 (of 23 total)

[←](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-in-2/?output_format=md)
[1](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-in-2/?output_format=md)
2

 *  [therous](https://wordpress.org/support/users/therous/)
 * (@therous)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-in-2/page/2/#post-7566175)
 * Hello,
 * I am experiencing the same issue at my site: [http://www.pghrugby.com](http://www.pghrugby.com)
 * This is my error msg: Parse error: syntax error, unexpected T_FUNCTION in /home1/
   rugbymer/public_html/wp-content/plugins/responsive-menu/responsive-menu.php on
   line 36
 * If the solution is to update my php file (I have the latest wordpress installed)
   How do I do that?
 * Thanks in advance and I appreciate this thread.
 *  Plugin Contributor [responsivemenu](https://wordpress.org/support/users/responsivemenu/)
 * (@responsivemenu)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-in-2/page/2/#post-7566176)
 * Hey there,
 * It’s not about updating a particular file you need to upgrade the whole PHP software
   on your server.
 * If you dont have an option to upgrade inside your particular hosting company 
   control panel then you will need to speak to your host and ask them to upgrade
   it on your behalf.
 * Hope that helps
 *  [bowljam](https://wordpress.org/support/users/bowljam/)
 * (@bowljam)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-in-2/page/2/#post-7566177)
 * I am also getting
    Parse error: syntax error, unexpected T_FUNCTION in /home/
   content/44/8297944/html/wp-content/plugins/responsive-menu/responsive-menu.php
   on line 36 After recent plugin update. Just upgraded to PHP 5.4 on my server,
   no dice. Any help would be greatly appreciated!
 *  Plugin Contributor [responsivemenu](https://wordpress.org/support/users/responsivemenu/)
 * (@responsivemenu)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-in-2/page/2/#post-7566178)
 * Hi bowljam,
 * This cant be possible – what does adding this to a file and loading it in a browser
   show:
 * `<?php echo PHP_VERSION; ?>`
 * All the best
 *  [bowljam](https://wordpress.org/support/users/bowljam/)
 * (@bowljam)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-in-2/page/2/#post-7566180)
 * locally?
 *  Plugin Contributor [responsivemenu](https://wordpress.org/support/users/responsivemenu/)
 * (@responsivemenu)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-in-2/page/2/#post-7566181)
 * paste that code in whatever site you are having the issue
 *  [bowljam](https://wordpress.org/support/users/bowljam/)
 * (@bowljam)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-in-2/page/2/#post-7566182)
 * Ok, i added it to index.php
 * <?php echo PHP_VERSION; ?>
    <?php /** * [@package](https://wordpress.org/support/users/package/)
   WordPress * @subpackage YOUR_THEME * * Template Name: Blog * */
 * get_header(); ?>
 * <?php
    get_sidebar(); ?>
 * <div id=”page” class=”single”>
 * SITE:
    [http://greensburgymca.org/](http://greensburgymca.org/)
 *  Plugin Contributor [responsivemenu](https://wordpress.org/support/users/responsivemenu/)
 * (@responsivemenu)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-in-2/page/2/#post-7566183)
 * Hey there,
 * Ok it does say 5.4.19 – and this is the site you are still unable to activate
   the plugin on?
 * Can we take this over to email as its not something I wll be able to solve here.
 * All the best

Viewing 8 replies - 16 through 23 (of 23 total)

[←](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-in-2/?output_format=md)
[1](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-in-2/?output_format=md)
2

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

 * ![](https://ps.w.org/responsive-menu/assets/icon-256x256.png?rev=1782326)
 * [Responsive Menu - Create Mobile-Friendly Menu](https://wordpress.org/plugins/responsive-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsive-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsive-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/responsive-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsive-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsive-menu/reviews/)

 * 23 replies
 * 7 participants
 * Last reply from: [responsivemenu](https://wordpress.org/support/users/responsivemenu/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-in-2/page/2/#post-7566183)
 * Status: resolved