Your best friend for file transfer.

Fetch application logoFetch

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

  • Started 2 years ago by Matt
  • Latest reply 2 months ago from Jim Matthews
  • 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 2 years ago #

  • Matt Member

    UPDATE:

    Posted 2 years 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 2 years 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 2 years ago #

  • Matt Member

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

    Thanks,

    Matt

    Posted 2 years ago #

  • Liz Member

    Hi,
    I have the same issue where I cannot put in a file because it is saying a file is not found" what do i do to fix this problem or find the file that isn't found, because on Fetch its not telling me anything how to fix this issue. I want to fix this issue asap, I wish Fetch just tell me the issue without being really vague.

    Posted 2 months ago #

  • Jim Matthews Administrator

    Hi Liz,

    Thanks for posting. I apologize for the vague error message. To get more detail about what's going wrong I would want to look at the Fetch.log file. Could you:

    1) Choose Fetch Transcript from the Window menu the next time you see this error
    2) Then choose Show Fetch.log in Finder from the File menu
    3) Email the Fetch.log file to bugs@fetchsoftworks.com

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 2 months ago #

Reply

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