Title: Upgrading to 2.7 error
Last modified: August 19, 2016

---

# Upgrading to 2.7 error

 *  Resolved [nemo-maritime](https://wordpress.org/support/users/nemo-maritime/)
 * (@nemo-maritime)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/upgrading-to-27-error/)
 * I just upgraded to 2.7 from 2.6.3 and I uploaded the new files to the server.
   When I go to the site, I get an error. It says – Parse error: syntax error, unexpected
   T_CONSTANT_ENCAPSED_STRING in /home/MyRootUser/public_html/wp-config.php on line
   56
    What is going on?

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

1 [2](https://wordpress.org/support/topic/upgrading-to-27-error/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/upgrading-to-27-error/page/2/?output_format=md)

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/upgrading-to-27-error/#post-949488)
 * what did you change in wp-config.php and why?
    That is one file you are not supposed
   to touch on upgrade.
 *  Thread Starter [nemo-maritime](https://wordpress.org/support/users/nemo-maritime/)
 * (@nemo-maritime)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/upgrading-to-27-error/#post-949511)
 * Ohhh I didnt really change anything. I thought I was supposed to copy my settings
   from the old wp-change.php and into the new one. I copyed my info from the old
   wp-config.php into the new version. Am I just supposed to leave things alone?
   I didnt change anything in the new one, I just took my old ones settings and 
   put it in the new one. In this case the $table_prefix – I put my old info into
   this new one. My old one was not the standard wp_ I changed it into a different
   one before my original installation.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [17 years, 4 months ago](https://wordpress.org/support/topic/upgrading-to-27-error/#post-949512)
 * Well, copying the settings into the new one would not be a problem, however you
   clearly changed something in a bad way.
 * Put the original wp-config.php file back and try using it unchanged from 2.6.3.
 *  Thread Starter [nemo-maritime](https://wordpress.org/support/users/nemo-maritime/)
 * (@nemo-maritime)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/upgrading-to-27-error/#post-949516)
 * Thats what I did. It looks like it works, I dont have errors at least… the way
   I changed it is I took all the info I needed to from wp-config and put it into
   wp-config-sample then I copied everything from the sample into the main config
   and I uploaded it…. thats when I got an error. So I just tried reversing everything
   I did and put the old one back, and no more error, I can get into the admin panel,
   and I can post comments with no prob…. is this something I should be worried 
   about though? Any errors forseen down the road?
 * Update – One additional thing. I cant seem to get the different button between
   html/visual post writing. I have had this issue on another blog on the same server,
   the drop down for any of the menus that are supposed to have this option. Any
   ideas in that area? Would it be something with a server or something else. I 
   tried erasing cached files from my browser, didnt seem to do anything
 *  Thread Starter [nemo-maritime](https://wordpress.org/support/users/nemo-maritime/)
 * (@nemo-maritime)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/upgrading-to-27-error/#post-949536)
 * The option on the top right does not work for me. It shows new post, and I assume
   other options, but it does not drop down for me. Other options work, but this
   one does not. I am having the same issue on another site of mine. It also wont
   allow me to re-arange widgets and if I click add or edit widget, it just reloads
   the page. Please help me with this one, I have been stuck on it for 3 weeks now.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [17 years, 4 months ago](https://wordpress.org/support/topic/upgrading-to-27-error/#post-949548)
 * Check that all your javascript files got uploaded to your site. Check that they
   are accessible. Check that your browser’s error console isn’t throwing any not
   found errors.
 * Usually, when the dynamic bits don’t work, it’s because your javascript files
   are missing/broken.
 *  Thread Starter [nemo-maritime](https://wordpress.org/support/users/nemo-maritime/)
 * (@nemo-maritime)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/upgrading-to-27-error/#post-949553)
 * **SOLVED** kind off…… the issue I have been having this whole time is because
   of the .htaccess file!! I could have sworn that was the first thing I got rid
   of, but I was wrong. Ok. Now. The issue I have is how am I supposed to set the.
   htaccess file the right way? Here is what I have:
 * For wp-includes:
    Order Allow,Deny Deny from all <Files ~ “.(css|jpe?g|png|gif
   |js)$”> <Files ~ “.(/themes/)$”> Allow from all </Files>
 * For wp-content:
    Order Allow,Deny Deny from all <Files ~ “\.(css|jpe?g|png|gif
   |js)$”> Allow from all </Files>
 * <Files ~ “.(/themes/)$”>
    Allow from all </Files>
 * I found out that if I delete these from my server, everything tends to work fine.
   However, as a security precaution, how do I edit this the right way.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [17 years, 4 months ago](https://wordpress.org/support/topic/upgrading-to-27-error/#post-949554)
 * Why would you have those in the first place? They’re not helpful nor do they 
   make anything more secure. No wonder the site was broken.
 * Delete them. Leave them off entirely. They can only do bad things, not helpful
   ones.
 *  Thread Starter [nemo-maritime](https://wordpress.org/support/users/nemo-maritime/)
 * (@nemo-maritime)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/upgrading-to-27-error/#post-949559)
 * Really? Shoot, I thought I needed them. Ok, that is what I am looking to pass
   up then. I do however need it to be as secure as it can. But id doesnt really
   do much?
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [17 years, 4 months ago](https://wordpress.org/support/topic/upgrading-to-27-error/#post-949561)
 * The purpose of those is clearly to disallow browsers from pulling anything except
   certain types of files from those subdirectories. The problem is that all the
   WordPress files are safe to pull directly. They don’t do anything dangerous. 
   I understand the idea as a general precaution, but really, WP was designed to
   be secure in that respect, so there’s nothing there that is dangerous.
 *  Thread Starter [nemo-maritime](https://wordpress.org/support/users/nemo-maritime/)
 * (@nemo-maritime)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/upgrading-to-27-error/#post-949563)
 * Anything you would suggest? I have been to other users sites where it disallows
   access to the wp-content, wp-admin, and wp-includes folder for their site. Is
   that done with .htaccess?
 *  Thread Starter [nemo-maritime](https://wordpress.org/support/users/nemo-maritime/)
 * (@nemo-maritime)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/upgrading-to-27-error/#post-949601)
 * Also, about the wp-config file, is that going to be an issue? Or can I just leave
   it the way it is?
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [17 years, 4 months ago](https://wordpress.org/support/topic/upgrading-to-27-error/#post-949606)
 * You don’t need to disallow anything. It’s fine the way it is. And wp-content 
   is already blocked by default with that index.php file in there. And you can’t
   block wp-admin, you kinda need to access that to do things on the site.
 * Also, your wp-config file should not change at all during a upgrade, unless you’re
   changing the secret keys.
 *  [annicole72](https://wordpress.org/support/users/annicole72/)
 * (@annicole72)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/upgrading-to-27-error/#post-949688)
 * in 2.7 wp-config.php, there is a NONCE_KEY … what is that? what do i put on there?
   it wasn’t there in 2.6
 *  Thread Starter [nemo-maritime](https://wordpress.org/support/users/nemo-maritime/)
 * (@nemo-maritime)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/upgrading-to-27-error/#post-949729)
 * [@otto42](https://wordpress.org/support/users/otto42/) Ok, the thing I had then
   was also about blocking the plugins page and wp-includes page. I went to your
   page, and this was blocked, how do you do this? How do you block acess. The admin
   I have blocked successfully, I just put a .htaccess in there not allowing anyone
   else in there except my home computers ip, no problems yet. How do I block access
   to those files though?
 * [@annicole72](https://wordpress.org/support/users/annicole72/) – I was wondering
   that too. You need to go to the link that is given to you in the commented out
   text above that. It will gave a url you can go to and the page automatically 
   loads a random, hard to guess code.
    **EDIT** – the link is [http://api.wordpress.org/secret-key/1.1/](http://api.wordpress.org/secret-key/1.1/)

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

1 [2](https://wordpress.org/support/topic/upgrading-to-27-error/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/upgrading-to-27-error/page/2/?output_format=md)

The topic ‘Upgrading to 2.7 error’ is closed to new replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 19 replies
 * 4 participants
 * Last reply from: [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * Last activity: [17 years, 4 months ago](https://wordpress.org/support/topic/upgrading-to-27-error/page/2/#post-949794)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
