Support » Fixing WordPress » Tried to edit footer.php / locked out of FTP

  • Resolved NomadMik

    (@nomadmik)


    Hello,

    I tried to edit my footer.php to add some script before the </body> tag. I then got the following error message.

    Warning: fopen(D:\inetpub\vhosts\thedarktower.info\httpdocs\wp\wordpress/wp-content/themes/takteek01/footer.php) [function.fopen]: failed to open stream: Permission denied in D:\inetpub\vhosts\thedarktower.info\httpdocs\wp\wordpress\wp-admin\theme-editor.php on line 55

    Warning: Cannot modify header information – headers already sent by (output started at D:\inetpub\vhosts\thedarktower.info\httpdocs\wp\wordpress\wp-admin\theme-editor.php:55) in D:\inetpub\vhosts\thedarktower.info\httpdocs\wp\wordpress\wp-admin\theme-editor.php on line 70

    I deleted the stuff that I added but I still get the error message.

    For the past two days I have been locked out of the httpdocs folder of my FTP site. How did that happen?

    Normally I would re-upload the theme but being locked out of the directory precludes me from doing that.

    Thank you,
    Mik

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter NomadMik

    (@nomadmik)

    Does anyone know what could have possibly locked me out of my httpdocs folder? All the other folders are fine but everything I need to access is in that httpdocs folder.

    Did you try to use a stand-alone ftp software like filezilla or even FireFTP (Firefox addon)?

    The error was probably caused by a blank space on the beginning or end of your footer.php.

    Thread Starter NomadMik

    (@nomadmik)

    I am using Filezilla.

    I wondered about the blank space at the beginning or the end of my footer.php, but now I cannot upload and amended file with the directory locked.

    I will try it in the WordPress theme editor and see if it gets rid on the error message and unlocks the directory.

    Thanks 🙂

    nothing that you have described is going to lock you out of a directory.

    if you cant change the permissions, in order to correct that, than contact your host — they can.

    Thread Starter NomadMik

    (@nomadmik)

    That’s what I figured… They seem like two unrelated issues.

    Why is it that I cannot edit the text in the footer or add script (for something like Kontera) before the </body> tag without getting an error?

    Thread Starter NomadMik

    (@nomadmik)

    A-ha! I figured out the FTP problem…yes it was unrelated to WordPress, it just happened at the same time I changed something in WordPress.

    I will post a new topic with my current problem.

    Thanks so much 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Tried to edit footer.php / locked out of FTP’ is closed to new replies.