Mixed Log Formats Causing Rejected Statistics After OJS Upgrade to 3.4.0-9

I updated my OJS from 3.2.1-5 to 3.4.0-9, but now my statistics are being sent to the reject folder. I have been checking the rejected logs and noticed mixed entries, as follows:

{“time”:“2025-10-30 00:53:34”,“ip”:“abbdc8382088c220c0f25e14127d73cc55bc032d12578f1036c7c3c5953b960c”,“userAgent”:“Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; ChatGPT-User/1.0; +https://openai.com/bot”,“canonicalUrl”:“https://x.x.org.co/index.php/rev/issue/view/68”,“assocType”:259,“contextId”:1,“submissionId”:null,“representationId”:null,“submissionFileId”:null,“fileType”:null,“country”:“BR”,“region”:“SP”,“city”:“S\u00e3o Paulo”,“institutionIds”:,“version”:“3.4.0.9”,“issueId”:68,“issueGalleyId”:null}

19.23.99.80 bot - “2025-10-30 00:53:34” https://x.x.org.co/index.php/rev/article/view/594 200 “Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; ChatGPT-User/1.0; +https://openai.com/bot”

When I manually removed the non-JSON entries, it worked. Could this be due to a misconfiguration in my installation?

**

What application are you using?**
OJS 3.4.0-9

Kindly thank you for any help.

Regards,
Alejandro

Does anyone have any suggestions?

Thank’s

Hi @alejopachons

The usage statistics moved into core and the log file format has changed.
I am wondering if you maybe still have the old UsageStatsPlugin running too? It should be removed – all the functionality is now in the core code.

And then yes, you would probably need to repair the log files and only leave the JSON entries. Then you can try to re-process them.

Best,
Bozana

Hi @bozana

Thanks for your answer. I’ve checked my plugins folder, but the UsageStatsPlugin was removed after the upgrade. I was checking the scheduledTaskLogs and only got the following:

translated:

Usage statistics file loading task
[2025-11-10 19:11:35] [Notification] The task has started.
[2025-11-10 19:11:35] [Error] Line number 2 of the file /x/y/z/usageStats/proces>
[2025-11-10 19:11:35] [Notification] The task has stopped.

UsageStatsLoader
[2025-11-10 20:05:57] [Notification] The task has started.
[2025-11-10 20:05:57] [Notification] The task has stopped.

Original

Tareadecargadearchivodeestadísticasdeuso
[2025-11-10 19:11:35] [Notificaci n] Se ha iniciado la tarea.
[2025-11-10 19:11:35] [Error] El n mero de l nea 2 del archivo /x/y/z/usageStats/proces>
[2025-11-10 19:11:35] [Notificaci n] Se ha detenido la tarea.

UsageStatsLoader
[2025-11-10 20:05:57] [Notificaci n] Se ha iniciado la tarea.
[2025-11-10 20:05:57] [Notificaci n] Se ha detenido la tarea.

Thanks,
Alejandro

Hi @alejopachons
I cannot explain your not-JSON entry in the usage stat log file. I do not know/understand then where those come from.

This lines are also in your current usage stats log file?

Best,
Bozana

Hi @bozana ,

Yes, there are. I was checking today’s log usage_events_20251114.log in usageEventLogs and the behavior is the same. Most errors are bots entries:

{“time”:“2025-11-14 13:19:01”,“ip”:“1e43125bd179a53d5e463e6a1dff9ac1a69e8859f573f291715fc4f346d4f8e”,“userAgent”:“Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)”,“canonicalUrl”:“https://x.x.org.co/index.php/x/article/view/2",“assocType”:1048585,“contextId”:1,“submissionId”:2,“representationId”:null,“submissionFileId”:null,“fileType”:null,“country”:“CA”,“region”:“QC”,“city”:“Beauharnois”,“institutionIds”:[],"version”:“3.4.0.9”,“issueId”:24,“issueGalleyId”:null}

51.161.37.215 bot - “2025-11-14 13:19:19” https://x.x.org.co/index.php/x/issue/view/15 200 “Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)”

{“time”:“2025-11-14 13:19:30”,“ip”:“717d705d2304307fc2cffefc0340487f3577c8bf0f2926e4f76e4c16a35a404”,“userAgent”:“Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Chrome/116.0.1938.76 Safari/537.36”,“canonicalUrl”:“https://x.x.org.co/index.php/x/article/view/4”,“assocType”:1048585,“contextId”:1,“submissionId”:4,“representationId”:null,“submissionFileId”:null,“fileType”:null,“country”:“US”,“region”:“VA”,“city”:“Boydton”,“institutionIds”:[],“version”:“3.4.0.9”,“issueId”:6,“issueGalleyId”:null}

54.39.0.148 bot - “2025-11-14 13:19:34” https://x.x.org.co/index.php/x/article/view/257 200 “Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)”
{

Thanks,
Alejandro