Title: syntax error
Last modified: August 21, 2016

---

# syntax error

 *  Resolved [b4pro](https://wordpress.org/support/users/b4pro/)
 * (@b4pro)
 * [12 years ago](https://wordpress.org/support/topic/yntax-error/)
 * Parse error: syntax error, unexpected T_FUNCTION in /var/www/u2206335/data/www/
   lytcity.ru/obt/wp-content/plugins/buddypress-profile-tabs/includes/language.php
   on line 36
 * How to solve the problem?
 * [https://wordpress.org/plugins/buddypress-profile-tabs/](https://wordpress.org/plugins/buddypress-profile-tabs/)

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

 *  Plugin Author [Jacob Schweitzer](https://wordpress.org/support/users/primetimejas/)
 * (@primetimejas)
 * [12 years ago](https://wordpress.org/support/topic/yntax-error/#post-5163474)
 * I was not able to re-produce this error. Are you using a language translation
   plugin ? If so, which language translation plugin ?
 *  Thread Starter [b4pro](https://wordpress.org/support/users/b4pro/)
 * (@b4pro)
 * [12 years ago](https://wordpress.org/support/topic/yntax-error/#post-5163546)
 * I use WP RUS. This error occurs when you install the plugin. The plugin is not
   activated.
 *  Plugin Author [Jacob Schweitzer](https://wordpress.org/support/users/primetimejas/)
 * (@primetimejas)
 * [12 years ago](https://wordpress.org/support/topic/yntax-error/#post-5163562)
 * I’ve done some research and found this is due to the fact that your WordPress
   installation is running on PHP version less than 5.3 which does not support anonymous
   functions. Anyways I have changed the code in that file so it should fix this
   problem. Let me know if it is working for you now.
 *  Thread Starter [b4pro](https://wordpress.org/support/users/b4pro/)
 * (@b4pro)
 * [12 years ago](https://wordpress.org/support/topic/yntax-error/#post-5163572)
 * Parse error: syntax error, unexpected T_FUNCTION in /var/www/u2206335/data/www/
   lytcity.ru/obt/wp-content/plugins/buddypress-profile-tabs/admin/class-bp-profile-
   tabs-admin.php on line 58
 *  Plugin Author [Jacob Schweitzer](https://wordpress.org/support/users/primetimejas/)
 * (@primetimejas)
 * [12 years ago](https://wordpress.org/support/topic/yntax-error/#post-5163573)
 * Alright I have removed that anonymous function as well. I would really suggest
   updating the PHP version on your server or switching to a new hosting service
   though, as the PHP version you are using is from more than 5 years ago – [PHP Version 5.3 changelog](http://php.net/ChangeLog-5.php#5.3.0).
   It could cause you problems with other plugins or themes in the future, so I 
   would suggest updating.

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

The topic ‘syntax error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-profile-tabs.svg)
 * [BuddyPress Profile Tabs](https://wordpress.org/plugins/buddypress-profile-tabs/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/buddypress-profile-tabs/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-profile-tabs/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-profile-tabs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-profile-tabs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-profile-tabs/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Jacob Schweitzer](https://wordpress.org/support/users/primetimejas/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/yntax-error/#post-5163573)
 * Status: resolved