Title: Parse error: syntax error, unexpected T_FUNCTION
Last modified: August 22, 2016

---

# Parse error: syntax error, unexpected T_FUNCTION

 *  Resolved [crashrus](https://wordpress.org/support/users/crashrus/)
 * (@crashrus)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-16/)
 * Just updated from Minamaze Free 1.06 to 1.09 and got this error:
    Parse error:
   syntax error, unexpected T_FUNCTION in /home2/crashrus/public_html/rememberthattime.
   com.au/wp-content/themes/minamaze/lib/widgets/categories.php on line 145
 * Any suggestions please.

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-16/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-16/page/2/?output_format=md)

 *  [ruthlosada](https://wordpress.org/support/users/ruthlosada/)
 * (@ruthlosada)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-16/#post-5430766)
 * Same problem here, the website breaks with that syntax error, any solution?
 *  [ruthlosada](https://wordpress.org/support/users/ruthlosada/)
 * (@ruthlosada)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-16/#post-5430770)
 * I replaced the widgets folder for the 1.06 version one and it works ok. It’s 
   a solution until the official fix, I guess
 *  [riga](https://wordpress.org/support/users/riga/)
 * (@riga)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-16/#post-5430788)
 * Ruthlosada, may I trouble you to elaborate the step you mentioned above (step-
   by-step)? I have no idea at all on what to do in order to correct this problem!
 *  [ruthlosada](https://wordpress.org/support/users/ruthlosada/)
 * (@ruthlosada)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-16/#post-5430800)
 * You have login your ftp client to see the root folder of your wordpress installation.
   You have to go the folder wp-content/themes/minamaze/lib/widgets
 * That folder named widgets is the one I have replaced with the same folder of 
   the 1.06 version. (You can download the 1.06 version from WordPress.org)
 * It works on my website, I don’t know if it works for everyone with this error,
   but meanwhile we have the official answer it’s a solution.
 * I hope you can fix it too Riga.
 *  Thread Starter [crashrus](https://wordpress.org/support/users/crashrus/)
 * (@crashrus)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-16/#post-5430835)
 * I fixed it by downloading an archived zip version of 1.0.6 ([here](https://wordpress.org/themes/download/minamaze.1.0.6.zip?nostats=1)).
   Via ftp I renamed the current Minamaze theme as Minamaze2. I unzipped the 1.0.6
   file and uploaded the extracted folder to /public_html/<domainname>/wp-content/
   themes/. At least my customers can see my website again. Was about to **buy the
   full theme** until this error hit. Hope it’s fixed quickly.
 *  Thread Starter [crashrus](https://wordpress.org/support/users/crashrus/)
 * (@crashrus)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-16/#post-5430836)
 * So ruthlosada, are you using 1.0.6 or .9?
    And thank you for your solution.
 *  [ruthlosada](https://wordpress.org/support/users/ruthlosada/)
 * (@ruthlosada)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-16/#post-5430839)
 * I am using 9 version but the widget folder is form the 6. Just this folder, the
   other folders and archives are the new ones
 *  [riga](https://wordpress.org/support/users/riga/)
 * (@riga)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-16/#post-5430856)
 * Managed to get a friend to fix it by using the info you supplied. Thanks ruthlosada.
 *  [Magnus_Wallin](https://wordpress.org/support/users/magnus_wallin/)
 * (@magnus_wallin)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-16/#post-5430877)
 * I just want to confirm that you can solve this by downloading the 1.06 version
   that crashrus provided in post #6, then upload the widgets directory to your 
   current minamaze theme:
 * `wp-content/themes/minamaze/lib/widgets`
 * I am not all that pleased that the developers release an update that breaks the
   entire website.
 * Also note that this update changes some core files that (at least on my end) 
   breaks functionality.
 * I will not update this theme in the near future.
 *  Theme Author [ThinkUpThemes](https://wordpress.org/support/users/thinkupthemes/)
 * (@thinkupthemes)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-16/#post-5430920)
 * Hello all,
 * Sorry to hear your having problems. It’s best to always update the theme so we’ll
   work on this right away and release a fix.
 * The update does not break your site. The issue is caused by the web host not 
   using PHP 5.3.
 * We’re on hand to help everyone experiencing this issue and will get it fixed 
   in the next update.
 * For specific help on this 1 issue please do kindly contaact us directly at [http://www.thinkupthemes.com](http://www.thinkupthemes.com).
   We’ll need to take a look at your setup to put a patch in place until the next
   theme update is released.
 *  Theme Author [ThinkUpThemes](https://wordpress.org/support/users/thinkupthemes/)
 * (@thinkupthemes)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-16/#post-5430921)
 * [@crashrus](https://wordpress.org/support/users/crashrus/)
 * Please don’t mix and match theme files. We have now released an update with a
   fix for this issue. The update is in the review queue and will be available once
   the review is complete. If you need this fixed in the meantime please activate
   Minamaze v1.0.9 and get in touch with us directly.
 * To help some edits will need to be made to the core theme files until the update
   is available.
 * Apologies for the inconvenience caused.
 *  [Magnus_Wallin](https://wordpress.org/support/users/magnus_wallin/)
 * (@magnus_wallin)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-16/#post-5430936)
 * [@thinkupthemes](https://wordpress.org/support/users/thinkupthemes/)
 * I realized after some research that the update and the fatal error was indeed
   due to the webhost not using php 5.3. Sorry if I was too harsh in my critique.
 * Nevertheless, I have to ask if the ”fix” handles this (i.e. php < 5.3), I really
   would like to be sure of non-fatal errors. I too have been forced to ”mix” versions(
   everything 1.0.9 except the `widgets` directory which is 1.0.6).
 * Thanks!
 *  [Magnus_Wallin](https://wordpress.org/support/users/magnus_wallin/)
 * (@magnus_wallin)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-16/#post-5430937)
 * [@thinkupthemes](https://wordpress.org/support/users/thinkupthemes/)
 * Emm, I thought the reason for the breakage was due to my webhost using a PHP 
   version < 5.3
 * But, the version on my webhost is:
    `PHP Version 5.4.26`
 * So: does this error happen to all that use a PHP version both lower AND higher
   than 5.3?
 * Confused…
 *  [ruthlosada](https://wordpress.org/support/users/ruthlosada/)
 * (@ruthlosada)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-16/#post-5430964)
 * I changed my PHP version to 5.5 and the new theme version 1.1.1 and everything
   is OK now.
 *  Theme Author [ThinkUpThemes](https://wordpress.org/support/users/thinkupthemes/)
 * (@thinkupthemes)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-16/#post-5430965)
 * Hi Ruthlosada,
 * Great! So happy to hear that the issue is now resolved. We released 1.1.1 with
   a number of fixes so you shouldn’t experience this issue again in future.
 * If you get a chance we’d absolutely love for you to leave a review for Minamaze.
   Don’t worry if you don’t get a chance, we know how busy it can get when building
   a new site. 🙂
 * If you have anymore questions let us know!

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-16/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-16/page/2/?output_format=md)

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

 * ![](https://i0.wp.com/themes.svn.wordpress.org/minamaze/1.11.2/screenshot.png)
 * Minamaze
 * [Support Threads](https://wordpress.org/support/theme/minamaze/)
 * [Active Topics](https://wordpress.org/support/theme/minamaze/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/minamaze/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/minamaze/reviews/)

## Tags

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

 * 19 replies
 * 5 participants
 * Last reply from: [Magnus_Wallin](https://wordpress.org/support/users/magnus_wallin/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_function-16/page/2/#post-5430969)
 * Status: resolved