Title: Critical Error, PHP Parse error: syntax error, unexpected &#8216;if&#8217; (T_IF)
Last modified: July 7, 2024

---

# Critical Error, PHP Parse error: syntax error, unexpected ‘if’ (T_IF)

 *  [sackerly](https://wordpress.org/support/users/sackerly/)
 * (@sackerly)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/critical-error-php-parse-error-syntax-error-unexpected-if-t_if/)
 * The plugin seems to be triggering a critical error, the error log file says:
 * [07-Jul-2024 02:48:41 UTC] PHP Parse error: syntax error, unexpected ‘if’ (T_IF)
   in /home/rockymou/forums.rmerc.org/wp-content/themes/buddyboss-theme/buddypress/
   groups/single/invite-anyone.php on line 22
 * Any thoughts on what might be causing this? Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcritical-error-php-parse-error-syntax-error-unexpected-if-t_if%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Critical Error, PHP Parse error: syntax error, unexpected ‘if’ (T_IF)’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/invite-anyone.svg)
 * [Invite Anyone](https://wordpress.org/plugins/invite-anyone/)
 * [Support Threads](https://wordpress.org/support/plugin/invite-anyone/)
 * [Active Topics](https://wordpress.org/support/plugin/invite-anyone/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/invite-anyone/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/invite-anyone/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [sackerly](https://wordpress.org/support/users/sackerly/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/critical-error-php-parse-error-syntax-error-unexpected-if-t_if/)
 * Status: not resolved