Your best friend for file transfer.

Fetch application logoFetch

Fetch could not edit ____ because a file was not found (5 posts)

  • Started 1 year ago by Matt
  • Latest reply 1 year ago from Matt
  • Matt Member

    Hi there,

    We have a development site that is being worked on under a subdomain: http://www.rdpc.mattbrowning.nz.

    When I tried to edit the header file (wp-content > themes > kappe > header.php) it was being opened in TextEdit, which is fine, as it's the default. Every other file with the same file extension was doing the same, but in plain text. This header file, however, was opening with Rich Formatting.

    I cannot recall whether I accidentally pressed something when viewing it (which I might have), but I have definitely not saved this file...however now when I try to edit it I get the error message: "Fetch could not edit "header.php" because a file was not found".

    I have a backup of the file in question, which allowed me to delete the "unfound" file, and then put the backup on the server again. However I am still getting the error message. If I press the spacebar to preview the file I can see it and all its contents, but as soon as I go to edit it Fetch is throwing me an error. I might also have pressed something when viewing another file that references the header file, but again it was not saved. I hope this makes sense.

    Do you have any solutions that I can use to correct this?

    Thanks a lot,

    Matt

    Posted 1 year ago #

  • Matt Member

    UPDATE:

    Posted 1 year ago #

  • Matt Member

    UPDATE:

    I restarted Fetch, and the file can now be edited. But as plain text. The site is not recognising the code in the file, even though it is an exact backup of the original.

    If I use TextEdit to convert it to Rich Formatting it has a whole lot of added RTF code in its place, and the original code comes across as garbled. If I convert it from Plain Text to Rich Text (and get the RTF code) and then convert it back to Plain Text the code is exactly as it should be in preview mode (spacebar on Mac), but if I try to edit the file I get the error message as above ("Fetch could not edit "header.php" because a file was not found"). I am really perplexed, any suggestions would be greatly appreciated.

    Thanks,

    Matt

    Posted 1 year ago #

  • Jim Matthews Administrator

    Hi,

    I would not use TextEdit to edit HTML or PHP files. It will automatically interpret the HTML, which isn't what you want. Instead I would recommend using TextWrangler, which you can download from

    http://www.barebones.com/products/textwrangler/download.html

    TextWrangler will show you what is actually in the file.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 1 year ago #

  • Matt Member

    Ok, thanks a lot. I will download that and go from there.

    Thanks,

    Matt

    Posted 1 year ago #

Reply

  • Or nickname, if you prefer.
  • This will be kept confidential.
  • This is to ensure that you’re a person, not a spambot.