Forums

[resolved] Tried to edit footer.php / locked out of FTP (7 posts)

  1. NomadMik
    Member
    Posted 2 years ago #

    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

  2. NomadMik
    Member
    Posted 2 years ago #

    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.

  3. renato_s
    Member
    Posted 2 years ago #

    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.

  4. NomadMik
    Member
    Posted 2 years ago #

    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 :)

  5. whooami
    Member
    Posted 2 years ago #

    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.

  6. NomadMik
    Member
    Posted 2 years ago #

    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?

  7. NomadMik
    Member
    Posted 2 years ago #

    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 :)

Topic Closed

This topic has been closed to new replies.

About this Topic