Title: Parse Error in post.php
Last modified: August 19, 2016

---

# Parse Error in post.php

 *  Resolved [dragolux](https://wordpress.org/support/users/dragolux/)
 * (@dragolux)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/parse-error-in-postphp-1/)
 * Hello everyone,
 * I just installed WordPress on my website, and when I go to the /wp-admin/install.
   php page, I get this error:
 * **Parse error**: parse error, unexpected ‘:’, expecting T_VARIABLE or ‘$’ in **…/
   Wordpress/wp-includes/post.php** on line **856**
 * Any help? I would _really_ like to get this working, so any help would be really
   appreciated.
 * Thanks!
 * Dragolux

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

 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/parse-error-in-postphp-1/#post-706640)
 * Something dropped a character in your file that does not make sense. **Delete**
   all the files in your WordPress directory. FTP them again (make sure you are 
   FTPing in ASCII).
 *  Thread Starter [dragolux](https://wordpress.org/support/users/dragolux/)
 * (@dragolux)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/parse-error-in-postphp-1/#post-706765)
 * I tried uploading everything again in ASCII, but that didn’t work. I’ll try downloading
   a fresh copy and doing it again.
 * By the way – what FTP should I be using? I’m using WS_FTP LE 6.0. Should I try
   a different one, or does it not matter?
 * Thanks!
 *  Thread Starter [dragolux](https://wordpress.org/support/users/dragolux/)
 * (@dragolux)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/parse-error-in-postphp-1/#post-706776)
 * Ok, I tried downloading a fresh copy, and installing it again, but it still doesn’t
   work! I see the **post.php** file on my computer, and it’s fine – line 856 is
   clean. On my computer, it looks like this:
 * `$tags = (is_array($tags)) ? $tags : explode( ',', $tags );`
 * But when I view it on the server, it looks like this:
 * `$tags = (is_array($tags)) ? $ : plode( ',', $tags );`
 * So it must have something to do with uploading it. How can I fix this?
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/parse-error-in-postphp-1/#post-706777)
 * Did you delete all the files and directories in your WordPress folder? I may 
   be seeing 2 style.css files.
 * I don’t think it matters which FTP you use. After you FTP you should go to your
   site admin and check to see if the files you FTP’d are indeed there.
 * BTW, there is a line 856 and there is a $. There should not be a :
 *  Thread Starter [dragolux](https://wordpress.org/support/users/dragolux/)
 * (@dragolux)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/parse-error-in-postphp-1/#post-706778)
 * I think you missed my above comment. Read the post right above your last one.
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/parse-error-in-postphp-1/#post-706779)
 * upload in ascii, not binary.
 *  Thread Starter [dragolux](https://wordpress.org/support/users/dragolux/)
 * (@dragolux)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/parse-error-in-postphp-1/#post-706781)
 * I did that. But it still is doing something to the code.
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/parse-error-in-postphp-1/#post-706783)
 * You could open the file on the server and fix the error there. I think you will
   just get additional errors that don’t show now as it stops at the first parse
   problem. Still, that may be worth a try.
 * I know of nothing that will change code in FTP unless somewhere “auto” or “binary”
   is set. Maybe it wouldn’t hurt to use a different FPT program. Do you have Firefox?
   You could try FireFTP.
 *  Thread Starter [dragolux](https://wordpress.org/support/users/dragolux/)
 * (@dragolux)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/parse-error-in-postphp-1/#post-706808)
 * I deleted/uploaded everything again, this time using FireFTP, but the same thing
   happened.
 * By the way, how do I edit something on the server in FireFTP? Do I just right
   click on it and go to **Open With…Notepad**? Then how do I save it?
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/parse-error-in-postphp-1/#post-706811)
 * you dont need to edit files that way — you seemingly havent mastered editing 
   files as they sit on your desktop. 😛 (Besides, this is a WP support forum– not
   a windows application help site)
 * Seriously, this isnt rocket science.
 * delete the directory of WP files that are on your desktop.
 * Unpack the zip again, recreating the folder and the files that you just deleted.
 * Download your wp-config.php and put it inside the folder on your desktop that
   contains wp-config-sample.php.
 * Delete all the WP files off your server.
 * Upload new files in ascii.
 *  Thread Starter [dragolux](https://wordpress.org/support/users/dragolux/)
 * (@dragolux)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/parse-error-in-postphp-1/#post-706815)
 * Lol, I know this isn’t “rocket science”, so I should be able to do it, right?
   I did everything exactly the way you said, and it still shows this error:
 * `Parse error: parse error, unexpected ':', expecting T_VARIABLE or '$' in /homepages/
   5/d132483652/htdocs/tutorial_wow/Wordpress/wp-includes/post.php on line 856`
 * I could try downloading it _again_ and doing the whole thing over, but this is
   getting kind of boring…
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/parse-error-in-postphp-1/#post-706816)
 * If you email me your ftp info, I will upload WP for you
 * whoo AT——– whoo.org —-
 *  Thread Starter [dragolux](https://wordpress.org/support/users/dragolux/)
 * (@dragolux)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/parse-error-in-postphp-1/#post-706881)
 * I just solved the problem! It just so happens that I have an internet filter 
   on my computer that’s too good. 🙂 And it took out some of the words in the code.(
   they weren’t bad words, it was just the way the code was set up.) When I took
   the filter off, it worked fine!
 * Thanks for all your help!

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

The topic ‘Parse Error in post.php’ is closed to new replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 13 replies
 * 3 participants
 * Last reply from: [dragolux](https://wordpress.org/support/users/dragolux/)
 * Last activity: [18 years, 3 months ago](https://wordpress.org/support/topic/parse-error-in-postphp-1/#post-706881)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
