Title: SiteOrigin &#8211; unexpected T_FUNCTION
Last modified: June 20, 2019

---

# SiteOrigin – unexpected T_FUNCTION

 *  Resolved [ndoshi](https://wordpress.org/support/users/ndoshi/)
 * (@ndoshi)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/unexpected-t_function-10/)
 * Someone from our staff updated the SiteOrigin plugin recently and now we are 
   getting this error on our home page.
 * Parse error: syntax error, unexpected T_FUNCTION in /home/uclareag/webapps/wordpress/
   wp-content/plugins/siteorigin-panels/compat/layout-block.php on line 95
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funexpected-t_function-10%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Andrew Misplon](https://wordpress.org/support/users/misplon/)
 * (@misplon)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/unexpected-t_function-10/#post-11655675)
 * Hi, sorry to hear about the hassle.
 * Please, reach out to your hosting provider and check what version of PHP you’re
   using. WordPress recommends PHP 7.3+. PHP 5.6.20+ is the minimum supported version
   but not recommended.
 *  Thread Starter [ndoshi](https://wordpress.org/support/users/ndoshi/)
 * (@ndoshi)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/unexpected-t_function-10/#post-11658489)
 * Thank you Andrew. I appreciate your help.
 * We are on PHP 5.6.40, so it should be working.
    We are running on CentOS 7.6,
   so I did check and there are multiple versions of php installed. I tried updating
   the wordpress config to PHP 7.0 or 7.2 but that causes numerous other things 
   to fail.
 * Do you have any other ideas?
 *  Plugin Support [Andrew Misplon](https://wordpress.org/support/users/misplon/)
 * (@misplon)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/unexpected-t_function-10/#post-11658516)
 * Are you certain about the PHP version? If there is any doubt, are you able to
   create and temporarily upload a PHP info file?
 *  Plugin Support [Andrew Misplon](https://wordpress.org/support/users/misplon/)
 * (@misplon)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/unexpected-t_function-10/#post-11658541)
 * Any version of PHP after 5.3 should be fine.
 * With regards to your site now. Is `WP_DEBUG` enabled? Please, check the wp-config.
   php file in your WordPress root. If you aren’t actively troubleshooting, consider
   setting `WP_DEBUG` to false and then check the site. Ideally, notices and warnings
   wouldn’t be displaying.
 *  Thread Starter [ndoshi](https://wordpress.org/support/users/ndoshi/)
 * (@ndoshi)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/unexpected-t_function-10/#post-11658698)
 * Thanks Andrew! That did it!
 * I guess the PHP version change fixed the issue, but I forgot to turn debug back
   off after that so the errors were still showing up. I guess they were warning
   rather than major errors. I have zero experience configuring wordpress, so I 
   apologize for the back and forth on that.
 * All fixed! Much appreciated!
 *  Plugin Support [Andrew Misplon](https://wordpress.org/support/users/misplon/)
 * (@misplon)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/unexpected-t_function-10/#post-11659435)
 * Super, that’s great news 🙂 Glad to hear you’ve made progress.
 * All the best.

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

The topic ‘SiteOrigin – unexpected T_FUNCTION’ is closed to new replies.

 * ![](https://ps.w.org/siteorigin-panels/assets/icon.svg?rev=2556869)
 * [Page Builder by SiteOrigin](https://wordpress.org/plugins/siteorigin-panels/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/siteorigin-panels/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/siteorigin-panels/)
 * [Active Topics](https://wordpress.org/support/plugin/siteorigin-panels/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/siteorigin-panels/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/siteorigin-panels/reviews/)

## Tags

 * [siteorigin](https://wordpress.org/support/topic-tag/siteorigin/)
 * [T_FUNCTION](https://wordpress.org/support/topic-tag/t_function/)

 * 6 replies
 * 2 participants
 * Last reply from: [Andrew Misplon](https://wordpress.org/support/users/misplon/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/unexpected-t_function-10/#post-11659435)
 * Status: resolved