Call to undefined method UsageStatsTemporaryRecordDAO::getNextByLoadId() + white screen of death

My new host (Kualo) says the blank screens we’re getting since migrating to their hosting (e.g. when opening a submission) are being caused by the error below, but I can’t find any previous examples of this error.

Can I disable the usageStats plugin or something? Upgrading OJS also appears to be broken on the new host (it’s on 3.1.1.4 and I wondered if updating would fix the issue).

[24-Sep-2024 22:25:52 UTC] PHP Fatal error:  Uncaught Error: Call to undefined method UsageStatsTemporaryRecordDAO::getNextByLoadId() in /home/osotlorg/press-start.gla.ac.uk/lib/pkp/plugins/generic/usageStats/PKPUsageStatsLoader.inc.php:562

Stack trace:

#0 /home/osotlorg/press-start.gla.ac.uk/lib/pkp/plugins/generic/usageStats/PKPUsageStatsLoader.inc.php(236): PKPUsageStatsLoader->_loadData('usage_events_20...')

#1 /home/osotlorg/press-start.gla.ac.uk/lib/pkp/classes/task/FileLoader.inc.php(167): PKPUsageStatsLoader->processFile('/home/osotlorg/...')

#2 /home/osotlorg/press-start.gla.ac.uk/lib/pkp/plugins/generic/usageStats/PKPUsageStatsLoader.inc.php(135): FileLoader->executeActions()

#3 /home/osotlorg/press-start.gla.ac.uk/lib/pkp/classes/scheduledTask/ScheduledTask.inc.php(148): PKPUsageStatsLoader->executeActions()

#4 /home/osotlorg/press-start.gla.ac.uk/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php(257): ScheduledTask->execute()

#5 [internal function]: PKPAcronPlugin->shutdownFunction()

#6 {main}

  thrown in /home/osotlorg/press-start.gla.ac.uk/lib/pkp/plugins/generic/usageStats/PKPUsageStatsLoader.inc.php on line 562

Hi @matthewbarr,

I can’t speak to the specifics of this particular error, but I should note that 3.1 is quite outdated and no longer supported, so upgrading is highly recommended. It may also resolve your issue.

-Roger
PKP Team