Title: error code Parse error: syntax error, unexpected T_FUNCTION &#8230;
Last modified: April 8, 2019

---

# error code Parse error: syntax error, unexpected T_FUNCTION …

 *  [4-wheel-nomads](https://wordpress.org/support/users/4-wheel-nomads/)
 * (@4-wheel-nomads)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-code-parse-error-syntax-error-unexpected-t_function/)
 * Hello everybody,
    while updating my blog I got the following error code Parse
   error: syntax error, unexpected T_FUNCTION in /kunden/427475_26474/webseiten/
   wordpress/wp-content/plugins/wp-maintenance-mode/includes/classes/wp-maintenance-
   mode.php on line 918 … and since then don’t have any access to the site. I am
   not sure if this is the correct forum here, but it would be great if anybody 
   could help … All the best from (currently) Israel, Michael
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-code-parse-error-syntax-error-unexpected-t_function%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [jamisonb](https://wordpress.org/support/users/jamisonb/)
 * (@jamisonb)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-code-parse-error-syntax-error-unexpected-t_function/#post-11403100)
 * Hi Michael,
 * Do you know what version of PHP you are running? I’m guessing the problem is 
   with PHP version.
 * You may be able to just re name the directory
    /kunden/427475_26474/webseiten/
   wordpress/wp-content/plugins/wp-maintenance-mod to /kunden/427475_26474/webseiten/
   wordpress/wp-content/plugins/wp-maintenance-mod.old
 * or anything really, so WordPress cannot find the plugin and therefore the error
   won’t persist, but that will only work if you do not need the wp-maintenance-
   mode plugin anymore.
 * Best of luck,
    Jamison
 *  [jamisonb](https://wordpress.org/support/users/jamisonb/)
 * (@jamisonb)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-code-parse-error-syntax-error-unexpected-t_function/#post-11403142)
 * Actually, I checked, your PHP is running version 5.2
 * The plugin says it requires PHP 5.6 or newer.
 * So updating PHP I think is your best bet, and then if that can not be done, using
   FTP or any alternative to manipulating files, and renaming the specific plugin’s
   directory.
 * Let me know if you need more help with either.
 * Best,
 * Jamison
 *  Thread Starter [4-wheel-nomads](https://wordpress.org/support/users/4-wheel-nomads/)
 * (@4-wheel-nomads)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-code-parse-error-syntax-error-unexpected-t_function/#post-11403221)
 * Hi Jamison,
    thanks for your reply … The only thing is that I cannot access the
   page to enter anything as what I see is only the error code. Do you have any 
   idea on how to access the admin area of the blog? Best, Michael
 *  [jamisonb](https://wordpress.org/support/users/jamisonb/)
 * (@jamisonb)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-code-parse-error-syntax-error-unexpected-t_function/#post-11403281)
 * Hey Michael,
 * FTP is your best option. Once you access FTP, you can rename the folder of the
   plugin as I said, then your website will more than likely work, and you will 
   be able to enter the backend.
 * If you do not know your FTP credentials or have FTP access, then you might want
   to contact your host.
 * If you have a cPanel, then you can always just use File Manager instead of FTP,
   which will give you a windows explorer kinda interface to work with.
 * I can send you guides on how to FTP but you will still need to know credentials
   which I can’t give. Your best option might be contacting the host provider, if
   you call or e-mail them, they will probably verify your account and would be 
   more than happy to modify a file for you (Probably the easiest request they will
   get all day so they should be nice about it).
 * Let me know if you need more info,
 * Jamison
    -  This reply was modified 7 years, 2 months ago by [jamisonb](https://wordpress.org/support/users/jamisonb/).
 *  Thread Starter [4-wheel-nomads](https://wordpress.org/support/users/4-wheel-nomads/)
 * (@4-wheel-nomads)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-code-parse-error-syntax-error-unexpected-t_function/#post-11403365)
 * Hi Jamison,
    I am not really into the subject, but as I do have access to the
   customer’s area on my host’s site, it might help if you tell me how to FTP … 
   All the best, Michael
 * What I do have are the following details:
    FTP host SSH/SFTP-Key Fingerprints
   Username
 *  [jamisonb](https://wordpress.org/support/users/jamisonb/)
 * (@jamisonb)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-code-parse-error-syntax-error-unexpected-t_function/#post-11403420)
 * Sure, I can give you some info, but it depends on the setup on the server, so
   it’s again something your web host could answer better for you.
 * You will first want an FTP client program, Filezilla is popular, cyberduck is
   also popular.
 * Once you download and install it is a pretty basic program, it will ask for host,
   username, password, and port.
 * If it’s filezilla, then you can go to file >> Add Site and since you have an 
   ssh/sftp key, and not a password, change protocol to sftp, try supplying the 
   username, the host, and I would go with port 22, and select your keyfile
 * [https://blog.runcloud.io/2018/02/10/filezilla-sftp.html](https://blog.runcloud.io/2018/02/10/filezilla-sftp.html)
 * that site goes over the process a bit.
 * Cyberduck is more for Mac, which I, unfortunately, do not use, but it works the
   same way, just a different interface,
    -  This reply was modified 7 years, 2 months ago by [jamisonb](https://wordpress.org/support/users/jamisonb/).

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

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [jamisonb](https://wordpress.org/support/users/jamisonb/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/error-code-parse-error-syntax-error-unexpected-t_function/#post-11403420)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
