Support » Fixing WordPress » Can’t edit theme files after upgrade to 2.8. “Update file” redirects to homepage

  • Resolved Z


    I’ve never had a problem with editing my theme files before, but now that I’ve upgraded WordPress to 2.8, I’m having a weird issue. When I try to edit a theme file such as “header.php” and hit “update file”, the browser redirects me to my blog’s homepage and doesn’t save the changes to the file.

    I checked to see if the files were chmoded differently, but they’re not – all are writeable, so I am not sure what the problem could be.

    Is anyone else having this issue? It’s extremely annoying to have to log in to FTP to edit a theme file… any help would be MUCH appreciated!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter Z


    I finally figured out the cause of this issue – by deactivating all my plugins and reactivating them one by one, it appears to be “WordPress Firewall” that’s causing this problem in 2.8. Deactivating it makes my site work again.


    Sorry to hear you had problems with the plugin. You probably just need to whitelist the theme editor, though.

    Let me know if you want to try this out and I can help you.

    Hi collegefashion,

    You just need to whitelist your IP on the plugin’s options page. You’ll then be able to edit your themes as usual.

    someone has a tip on this….

    when I add images to a gallery in the plugin NextGen Gallery this Warning comes up.
    the Add Images function executes alright and the images goes right into the gallery – so there is really no problem – but what shall I do with the warning?
    what does it mean?

    Warning: preg_match() expects parameter 2 to be string, array given in /home/…/wp-content/plugins/wordpress-firewall/wordpress-firewall.php on line 169

    this is line 169: if(preg_match($regex, $file[‘name’])){
    (copied from wordpress-firewall/wordpress-firewall.php)

    best wishes


    Hey everyone!

    I’m having a similar problem, since upgrading to 2.8– my theme editor displays old theme file versions of my header.php, footer.php, etc. and doesn’t update my changes. But my sidebar is perfectly okay! I have to go into the FTP to change everything else, and those changes are never reflected in my WP theme editor. I have changed permissions and disabled plugins after combing through the forums looking for solutions, my files are all also writeable. My theme also shows up as my current theme with what looks like no problem. What am I missing here everyone? Thanks in advance for your suggestions!


    @beautyjunkieunite, I am having the same problem I thought I was going crazy. I didn’t have anything to compare the problem to since I am new to wordpress. Is the solution to downgrade to the previous version of wordpress?

    Hi Flixbda,

    I was thinking the same thing too, but since I’m still relatively new to navigating my way around, I have no idea how to downgrade either!


    But then again, I’ve read that going back to 2.7 isn’t such a great idea afterall due to potential hacks… I guess if there’s no other way around this for the time being I’ll have to deal with it and hope it’s fixed on the next update!


    You seem to know what you are talking about.

    How do you whitelist your own ip?

    The updates I save in my sidebar are not showing online. I think this may be similar to this thread.


    Hi Janetfl,

    Here’s a little walk-through :
    1- prior to editing templates, go to
    2- whitelist your IP : simply copy the one shown, paste it in the field and save
    3- you can now edit your files without being flagged as potentially dangerous


    solved my problem too.
    my blog

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Can’t edit theme files after upgrade to 2.8. “Update file” redirects to homepage’ is closed to new replies.