Title: Syntax error on supportflow.php
Last modified: August 31, 2016

---

# Syntax error on supportflow.php

 *  [ivan.costajr](https://wordpress.org/support/users/ivancostajr/)
 * (@ivancostajr)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-on-supportflowphp/)
 * When the plugin was install from WordPress repository, the WP shows a error on
   supportflow.php line 1041. If I installed from ZIP file (downloaded from Github),
   the error was on supportflow.php line 1039.
 * The line is:
    `$emails = array_filter( $emails, function ( $email ) use ( & $
   invalid_email_ids ) {`
 * Is a PHP version error? My PHP install is 5.4.
 * [https://wordpress.org/plugins/supportflow/](https://wordpress.org/plugins/supportflow/)

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

 *  Plugin Contributor [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-on-supportflowphp/#post-7281076)
 * What is the error?
 *  Thread Starter [ivan.costajr](https://wordpress.org/support/users/ivancostajr/)
 * (@ivancostajr)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-on-supportflowphp/#post-7281118)
 * When I activated the plugin, the message was:
 * `Parse error: syntax error, unexpected T_FUNCTION in /home/.../public_html/wp-
   content/plugins/supportflow-master/supportflow.php on line 1039`
 *  Plugin Contributor [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-on-supportflowphp/#post-7281119)
 * Hmm, ok. I’m on vacation next week, but I’ll take a look when I get back. Thanks
   for the report 🙂
 *  Thread Starter [ivan.costajr](https://wordpress.org/support/users/ivancostajr/)
 * (@ivancostajr)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-on-supportflowphp/#post-7281212)
 * Hi,
 * The problem was fixed when I upgraded the PHP version on my server to 5.5.12.**
   Thanks for your attention**.
 * Is it possible to make a riqueriments section in the “readme” file? Put this 
   type of information there may help someone else.
 *  Plugin Contributor [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-on-supportflowphp/#post-7281310)
 * Huh, it’s probably the `use` keyword and/or the anonymous function, but I thought
   those were introduced in `5.3`.
 * Regardless, I don’t really like closures in PHP anyway, so it’s probably best
   to just make it a named function, which should solve the problem.

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

The topic ‘Syntax error on supportflow.php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/supportflow_037645.svg)
 * [SupportFlow](https://wordpress.org/plugins/supportflow/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/supportflow/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/supportflow/)
 * [Active Topics](https://wordpress.org/support/plugin/supportflow/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/supportflow/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/supportflow/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 5 replies
 * 2 participants
 * Last reply from: [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-on-supportflowphp/#post-7281310)
 * Status: not resolved