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

Matt Member

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.

Matt Member

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.

Matt Member

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.