Index: core/kernel/application.php =================================================================== --- core/kernel/application.php +++ core/kernel/application.php @@ -381,7 +381,9 @@ $this->InitDone = true; - $this->HandleEvent(new kEvent('adm:OnStartup')); + if ( PHP_SAPI !== 'cli' && !$this->isAdmin ) { + $this->HandleEvent(new kEvent('adm:OnStartup')); + } return true; }