Title: Parse error: syntax error, unexpected T_FUNCTION in
Last modified: November 8, 2016

---

# Parse error: syntax error, unexpected T_FUNCTION in

 *  Resolved [andresgl](https://wordpress.org/support/users/andresgl/)
 * (@andresgl)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-in-3/)
 * Hi
 * I am getting the following error when I try to install the plugin on the the 
   production area
 *     ```
       Plugin could not be activated because it triggered a fatal error.
   
       Parse error: syntax error, unexpected T_FUNCTION in public_html/wp-content/plugins/permalink-manager/permalink-manager.php on line 427
       ```
   
 * On my development area is working.. No sure why this is happening, is exactly
   the same Version of WP, same plugins and same server.
 * Hope you can help me.
 * Thanks

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

 *  Plugin Author [Maciej Bis](https://wordpress.org/support/users/mbis/)
 * (@mbis)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-in-3/#post-8410868)
 * Hi andresgl,
 * hmm, that is really strange, as there is only the code comment in line #427 in
   permalink-manager.php
 * > // Fix for not-pages
 * Could you delete the plugin from your production website and reinstall it?
 * If it does not help, could you send me the full content of wp-content/plugins/
   permalink-manager/permalink-manager.php file from your plugin copy (you can save
   it on Gist [https://gist.github.com/](https://gist.github.com/)).
 * Best regards,
    Maciej
 *  Thread Starter [andresgl](https://wordpress.org/support/users/andresgl/)
 * (@andresgl)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-in-3/#post-8411196)
 * H i@mbis
 * I have uninstalled the plugin and installed again using the WP search and also
   I have downloaded the plugin and installed manually but the error persist. It’s
   really weird.. :/
 * Here you go –> [https://gist.github.com/855f594e42555a7f9e34906c472589be](https://gist.github.com/855f594e42555a7f9e34906c472589be)
 * Many Thanks
 *  Plugin Author [Maciej Bis](https://wordpress.org/support/users/mbis/)
 * (@mbis)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-in-3/#post-8411994)
 * Hi adresgl,
 * ok, thank you – in 0.4.9 version line #427 contain anonymous function and they
   are were added in PHP 5.3.0. The most probably scenario is that your development
   version uses 5.3.0 or newest version (where anonymous functions are supported)
   and your production website does not.
 * The only way to make it working is to change your server settings (use one of
   newer PHP versions).
 * Best Regards,
    Maciej
 *  Thread Starter [andresgl](https://wordpress.org/support/users/andresgl/)
 * (@andresgl)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-in-3/#post-8414374)
 * **Hi Maciej,**
 * Yep, you were right. I have changed the PHP version to 5.5 and worked although
   the PHP version of the production server was 5.4.
 * Thanks a lot for the help 🙂
 * Regards,

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

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

 * ![](https://ps.w.org/permalink-manager/assets/icon.svg?rev=2625166)
 * [Permalink Manager Lite](https://wordpress.org/plugins/permalink-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/permalink-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/permalink-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/permalink-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/permalink-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/permalink-manager/reviews/)

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