Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context not initialized #1380

Closed
dmytro-talko opened this issue Jul 3, 2019 · 3 comments
Closed

Context not initialized #1380

dmytro-talko opened this issue Jul 3, 2019 · 3 comments
Labels

Comments

@dmytro-talko
Copy link

dmytro-talko commented Jul 3, 2019

Hello.
I wanted to install syspass 3.0.5. issued permissions to the project, executed the composer update command and there is always an error in the logs:
[EXCEPTION] [N/A] Context not initialized\n#0 /lib/SP/Core/Context/ContextBase.php(143): SP\Core\Context\ContextBase->checkContext()
#1 /lib/SP/Core/Context/SessionContext.php(100): SP\Core\Context\ContextBase->getContextKey('locale', NULL)
#2 /lib/SP/Core/Context/SessionContext.php(392): SP\Core\Context\SessionContext->getContextKey('locale')
#3 /lib/SP/Core/Language.php(209): SP\Core\Context\SessionContext->getLocale()
#4 /lib/SP/Providers/Log/FileLogHandler.php(104): SP\Core\Language->setAppLocales()
#5 /lib/SP/Core/Events/EventDispatcherBase.php(121): SP\Providers\Log\FileLogHandler->updateEvent('upgrade.config....', Object(SP\Core\Events\Event))
#6 /lib/SP/Services/Upgrade/UpgradeConfigService.php(214): SP\Core\Events\EventDispatcherBase->notifyEvent('upgrade.config....', Object(SP\Core\Events\Event))
#7 /lib/SP/Bootstrap.php(420): SP\Services\Upgrade\UpgradeConfigService->upgrade('300.18111001', Object(SP\Config\ConfigData))
#8 /lib/SP/Bootstrap.php(394): SP\Bootstrap->checkConfigVersion()
#9 /lib/SP/Bootstrap.php(297): SP\Bootstrap->initConfig()
#10 /lib/SP/Bootstrap.php(224): SP\Bootstrap->initializeCommon()
#11 [internal function]: SP\Bootstrap->SP\{closure}(Object(Klein\Request), Object(Klein\Response), Object(Klein\ServiceProvider), Object(Klein\App), Object(Klein\Klein), Object(Klein\DataCollection\RouteCollection), Array)
#12 /vendor/klein/klein/src/Klein/Klein.php(886): call_user_func(Object(Closure), Object(Klein\Request), Object(Klein\Response), Object(Klein\ServiceProvider), Object(Klein\App), Object(Klein\Klein), Object(Klein\DataCollection\RouteCollection), Array)
#13 /vendor/klein/klein/src/Klein/Klein.php(588): Klein\Klein->handleRouteCallback(Object(Klein\Route), Object(Klein\DataCollection\RouteCollection), Array)
#14 /lib/SP/Bootstrap.php(461): Klein\Klein->dispatch(Object(Klein\Request))
#15 /lib/Base.php(75): SP\Bootstrap::run(Object(DI\Container))
#16 /index.php(28): require('...')
#17 {main}

I do not know what to do. Can you help me? Thanks.

@nuxsmin
Copy link
Owner

nuxsmin commented Jul 4, 2019

Hello, are there any more messages?. This error could be raised quite often because it means that some application code is trying to access to a session object which isn't available yet (due to logout, etc.).

If this error appears too many times, it could be issued by wrong permissions on PHP directories.

Regards

@dmytro-talko
Copy link
Author

Hello, i have also another messages.

[ERROR] [SP\Core\Language::setLocales] Could not set locale

We get null parameter $lang.

@nuxsmin
Copy link
Owner

nuxsmin commented Aug 20, 2019

These error are a "normal" behavior, because, some parts of the application could raise them on a very early stage when loading.

@nuxsmin nuxsmin closed this as completed Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants