"ojs2: 404 not found" appears in php_error_log thousands of times per day

I have entries like this one in my php_error_log thousand times a day: [25-Feb-2019 19:51:34 America/Halifax] ojs2: 404 Not Found.

php.ini is set to error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE & ~E_WARNING
If I set it to error_reporting=E_ALL & ~E_DEPRECATED, these errors are replaced by various other, more verbose warnings and notifications.

How could I find out what is causing this and get rid of it?

You could compare entries in your access log that have the same timestamp. There you can see what was called that caused 404.

edit: it could be something as simple as a missing .ico file.

Thank you, @ajnyga.

I compared php_error_log with access.log entries with the same timestamps. Sometimes there are more than two entries in access.log for one “ojs2: 404 not found” error, but here are some examples:

62.210.83.206 - - [26/Feb/2019:12:03:40 -0400] “GET /index.php/atlantis/about/index.php HTTP/1.0” 404 22 “http://journals.msvu.ca/index.php” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36”
62.210.83.206 - - [26/Feb/2019:12:03:40 -0400] “GET /atlantis/about/index.php HTTP/1.0” 404 936 “http://journals.msvu.ca/atlantis/about/index.php” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36”
62.210.83.206 - - [26/Feb/2019:12:03:41 -0400] “GET /index.php/atlantis/about/index.php HTTP/1.0” 404 22 “http://journals.msvu.ca/index.php” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36”
62.210.83.206 - - [26/Feb/2019:12:03:41 -0400] “GET /atlantis/about/index.php HTTP/1.0” 404 936 “http://journals.msvu.ca/atlantis/about/index.php” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36”
62.210.83.206 - - [26/Feb/2019:12:03:41 -0400] “GET /index.php/atlantis/about/index.php HTTP/1.0” 404 22 “http://journals.msvu.ca/index.php” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36”
62.210.83.206 - - [26/Feb/2019:12:03:42 -0400] “GET /atlantis/about/index.php HTTP/1.0” 404 936 “http://journals.msvu.ca/atlantis/about/index.php” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36”
40.77.167.166 - - [26/Feb/2019:15:04:00 -0400] “GET /index.php/atlantis/about/statistics HTTP/1.1” 404 22 “-” “Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)”
8.37.71.83 - - [26/Feb/2019:15:47:04 -0400] “GET /index.php/atlantis/article/view/161-172%2520PDF HTTP/1.1” 404 22 “-” “AddThis.com (http://support.addthis.com/)”
46.229.168.146 - - [26/Feb/2019:15:48:43 -0400] “GET /index.php/atlantis/booksForReview/viewBookForReview/171 HTTP/1.1” 404 22 “-” “Mozilla/5.0 (compatible; SemrushBot/3~bl; +http://www.semrush.com/bot.html)”
40.77.167.166 - - [26/Feb/2019:16:37:09 -0400] “GET /index.php/atlantis/booksForReview/viewBookForReview/107 HTTP/1.1” 404 22 “-” “Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)”

Does any of this ring a bell, by any chance?

1 Like

@ Lolekbolek

I am having exactly same problem.
Did you find any solution for it ?

Regards,

zaratushtra

Hi Zaratustra,

Unfortunately, so far no resolution.

I just open my php_error_log periodically in Notepad++, go to Search>Mark… Type “ojs2: 404 not found” and put a check mark into “Bookmark line”. Click on Mark All, which marks all the lines with this text, despite different dates/times in the beginning of each line. Then I go to Search>Bookmark>Remove Bookmarked Lines and it removes thousands of lines at once.

It would be nice to figure out what causes these, but for now I have to resort to just deleting these lines.

Same here … I thought it would be something to do with our installation… as we upgraded from OJS 2… is yours an upgraded one too?

Yes, @hilongo. We have the latest version. I just came from a 6 months sabbatical and had to delete over 200,000 lines using Notepad ++ :slight_smile:

62.210.83.206 is a known spammer - it looks like it is just trying through various combinations of URLs. You should put it in a bad bot exclude list.

The rest are bots that come in with old URLs from their index which do not seem to exist anymore on your new site.

hi all, sorry to reopen this thread.

I have been trying to track down this error and its side effects of this error.

About this error, the metadata list in the OAI URL becomes uncollected and the indexer cannot retrieve metadata.

Is this error has solved?

This topic was automatically closed after 13 days. New replies are no longer allowed.