runScheduledTasks.php fails in OJS 3.0.1 (Call to undefined method ScheduledTaskTool::ScheduledTaskTool())

@bozana,

I have double checked, for now in log files I see even abstract views. All information certainly is recorded there. But in the metrics table only some of the logs are recorded.

Upon processing logs there are huge number of this errors:

PHP Warning: preg_match(): Delimiter must not be alphanumeric or backslash in .../lib/pkp/classes/core/PKPString.inc.php on line 342

and after:

PHP Fatal error:  Uncaught Error: Using $this when not in object context in .../lib/pkp/classes/i18n/PKPLocale.inc.php:111
Stack trace:
#0 .../lib/pkp/classes/i18n/PKPLocale.inc.php(731): PKPLocale::translate('common.openJour...', Array, 'en_US')
#1 .../lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php(175): __('common.openJour...')
#2 .../lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php(142): ScheduledTaskHelper->getMessage('/home/doc/Docum...')
#3 .../lib/pkp/classes/scheduledTask/ScheduledTask.inc.php(153): ScheduledTaskHelper->notifyExecutionResult('585f963c671af', 'Usage statistic...', false, '/home/doc/Docum...')
#4 .../lib/pkp/classes/cliTool/ScheduledTaskTool.inc.php(113): ScheduledTask->execute()
#5 .../lib/pkp/classes/cliTool/ScheduledTaskTool.inc.php(95): ScheduledT in .../lib/pkp/classes/i18n/PKPLocale.inc.php on line 111