Title: Parse error on functions.php
Last modified: August 12, 2017

---

# Parse error on functions.php

 *  Resolved [jmchaves](https://wordpress.org/support/users/jmchaves/)
 * (@jmchaves)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-on-functions-php-2/)
 * I used the dashboard to download and install the theme (1.1.43) but when I went
   to test it with the live preview I got this message:
 * Parse error: syntax error, unexpected T_FUNCTION in …public_html/wp/wp-content/
   themes/hestia/functions.php on line 39
 * My server uses PHP version 5.2.17
 * How can I fix this?
 * Thanks in advance!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fparse-error-on-functions-php-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [jmchaves](https://wordpress.org/support/users/jmchaves/)
 * (@jmchaves)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-on-functions-php-2/#post-9404554)
 * After the system update the problem was solved
 *  [heathology](https://wordpress.org/support/users/heathj85/)
 * (@heathj85)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-on-functions-php-2/#post-9404700)
 * jmchaves,
 * I was having this same error with the Hestia theme and others. I downloaded these
   last night. What system update are you referring to? I was running PHP 5.2.17,
   but I updated it to the most recent version: 7.1.3. I have not updates needed
   in the WordPress updates or theme updates.
 * heathj85
 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-on-functions-php-2/#post-9408030)
 * Hey there,
 * Is it still not working on your site, heathj85? Having an updated PHP version
   should fix it, also make sure that you didn’t upload the theme using FTP. 🙂
 *  [heathology](https://wordpress.org/support/users/heathj85/)
 * (@heathj85)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-on-functions-php-2/#post-9408918)
 * Hardeep,
 * Updating the PHP to 7.1.3 did not seem to fix the issue. I was not downloading
   the theme through FTP nor was I installing it on my wordpress website using FTP.
   I tried multiple themes and I was having the same issue. I wound up moving on
   to the Allegiant theme. Same problems. Then, I just returned to my dashboard 
   and I was able to move forward and finish setting things up … until I tried to
   import the dummy XML data. I started bumping into memory upload issues despite
   the fact that HostGator setup my php.ini and .htaccess file with the maximum 
   allotments. I finally called HostGator and walked one of their technical support
   reps through my issue. He uploaded the XML file and it worked for him.
 * heathj85

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

The topic ‘Parse error on functions.php’ is closed to new replies.

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

## Tags

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

 * 4 replies
 * 3 participants
 * Last reply from: [heathology](https://wordpress.org/support/users/heathj85/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-on-functions-php-2/#post-9408918)
 * Status: resolved