Krisztian Toth
Krisztian Toth

Reputation: 63

Long-deleted image shows up in error log. Why?

This is the error message I am trying to figure out where it is being generated. This happens also with other non-existent files.

I have tried to search the database for attachments with non-existent file and what I've found I deleted from the database, but these messages keep coming. I looked for code that might generate this error, but I didn't find anything.

Yes these files are missing from the server, and that is fine. They have been deleted a long time ago.

How can I find what is generating this error?

2023/11/22 08:39:33 [error] 1687#1687: *1253339 open() "/www/mydomain/public/wp-content/uploads/2019/12/my-image-11.jpg" failed (2: No such file or directory), client: 40.111.21.45, server: www.mydomain.com, request: "GET /wp-content/uploads/2019/12/my-image-11.jpg HTTP/2.0", host: "www.mydomain.com:15846"

Upvotes: 0

Views: 74

Answers (1)

O. Jones
O. Jones

Reputation: 108816

This looks to me like a web server log file entry, not a php debug.log entry.

It says a browser or some other http client running on a machine at IP address 40.111.21.45 requested that nonexistent file. Could that image still be referenced in a post or page somewhere in your site?

If you look at your web server access log, you should see an entry that goes with this one. The access log probably shows the so-called "referer", the URL of the page that requested the image.

Upvotes: 0

Related Questions