@dung I have the acron plugin installed and have running. The scheduledTasks = On is set in config file. The database table for ScheduledTasks shows as seen in the pic. Maybe Acron is not working?
@talknshare look at this link of mine [OJS 3.1.2-1] Journal statistic - #5 by dung
Make sure base_url(s) are defined for each of your journals. This produce stats for us. Let us know.
D.
We only have one journal, and the base url is set correctly. When I am checking the usageEventLogs, there are no log files even for today and other days that the chart is not showing for. I think I am just going to let this one go haha! Thanks for all your help @dung.
@bozana I had a problem like that, but mine is in folder “usageStats/usageEventLogs” files log is normal, adding a log automatically, but in DB table “metric” is not updated ? anyone can help me please ?
Hi there, I’m having some trouble with the UsageStats plugin. My OJS version is 3.3.0.8. It stopped working all of a sudden on 11/03/2024. The statistics are being collected with the UsageEvents plugin, but they are not being processed nor loaded into the metrics. The scheduled tasks are set to ON in the config.inc.php file. I have also tried turning off ACRON and instead using CRON jobs, but when I run sudo php /datos/htdocs/htdocs-ojs-3_3_0_8/tools/runScheduledTasks.php /datos/htdocs/htdocs-ojs-3_3_0_8/plugins/generic/usageStats/scheduledTasks.xml, I get the following error:
PHP Warning: require_once(/datos/htdocs/htdocs-ojs-3_3_0_8/lib/pkp/classes/task/FileLoader/inc/php.inc.php): Failed to open stream: No such file or directory in /datos/htdocs/htdocs-ojs-3_3_0_8/lib/pkp/includes/functions.inc.php on line 25 PHP Fatal error: Uncaught Error: Failed opening required ‘/datos/htdocs/htdocs-ojs-3_3_0_8/lib/pkp/classes/task/FileLoader/inc/php.inc.php’ (include_path=‘.:/usr/share/pear:/usr/share/php’) in /datos/htdocs/htdocs-ojs-3_3_0_8/lib/pkp/includes/functions.inc.php:25 Stack trace: #0 /datos/htdocs/htdocs-ojs-3_3_0_8/plugins/generic/usageStats/UsageStatsLoader.inc.php(16): import() #1 /datos/htdocs/htdocs-ojs-3_3_0_8/lib/pkp/includes/functions.inc.php(25): require_once(‘…’) #2 /datos/htdocs/htdocs-ojs-3_3_0_8/lib/pkp/includes/functions.inc.php(204): import() #3 /datos/htdocs/htdocs-ojs-3_3_0_8/lib/pkp/classes/cliTool/ScheduledTaskTool.inc.php(106): instantiate() #4 /datos/htdocs/htdocs-ojs-3_3_0_8/lib/pkp/classes/cliTool/ScheduledTaskTool.inc.php(94): ScheduledTaskTool->executeTask() #5 /datos/htdocs/htdocs-ojs-3_3_0_8/lib/pkp/classes/cliTool/ScheduledTaskTool.inc.php(66): ScheduledTaskTool->parseTasks() #6 /datos/htdocs/htdocs-ojs-3_3_0_8/tools/runScheduledTasks.php(34): ScheduledTaskTool->execute() #7 {main} ** thrown in /datos/htdocs/htdocs-ojs-3_3_0_8/lib/pkp/includes/functions.inc.php on line 25**
But funny enough, when I run sudo php /datos/htdocs/htdocs-ojs-3_3_0_8/tools/runScheduledTasks.php /datos/htdocs/htdocs-ojs-3_3_0_8/plugins/generic/usageStats/scheduledTasksAutoStage.xml, I get absolutely no output, so I don’t really know what’s the difference between both instructions.
These are my server and OS config in case it’s useful. I would really use some wisdom here because it’s a problem that needs to be fixed ASAP! I really appreciate any help.
Have you modified plugins/generic/usageStats/UsageStatsLoader.inc.php
? What does line 16 of that file look like?
Regards,
Alec Smecher
Public Knowledge Project Team
Hi @asmecher, thx for replying!
The line 16 of UsageStatsLoader.inc.php looks like this:
import(‘lib/pkp/classes/task/FileLoader.inc.php’);
if you need to see the full content of the file let me know please.
That has been modified locally for some reason, which is causing the problem.
Regards,
Alec Smecher
Public Knowledge Project Team
Oh, i did not know it was modified because it did not seem like it had been, so what should I do?
should I revert the changes? the thing is i don’t know the past version of the file content :(, could you please asist me with that?
Thanks a lot.
I’d suggest comparing the files in your install with a fresh download of the same version from the PKP website. The modification to line 16 is definitely a broken change, but as to why it was introduced and what other changes might also be there, I’m afraid I have no way of knowing.
Thanks,
Alec Smecher
Public Knowledge Project Team
Thanks a lot @asmecher, i’ll try that tomorrow, the thing is I recently took controll over our OJS platform so I don’t really know what other changes where made when I wasn’t around here, I’ll let you know if I can fix the problem following your advice.
Best regards!