start log [02-Oct-2026 12:57:45 UTC] OpenEMR has already been installed. If you wish to force re-installation, then edit /var/www/localhost/htdocs/a/openemr/library/classes/../../sites/default/sqlconf.php (change the 'config' variable to 0), and re-run the setup.php script. [02-Oct-2026 14:06:32 UTC] OpenEMR Error - api site error, so forced exit siteId: , pathInfo: /api/patients [02-Oct-2026 14:06:32 UTC] OpenEMR.ERROR: ExceptionHandlerListener exception OpenEMR Error: api site error, so forced exit. Please ensure that the site is set up correctly in the OpenEMR configuration. {"trace":"#0 /var/www/localhost/htdocs/a/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(206): OpenEMR\\RestControllers\\Subscriber\\SiteSetupListener->onKernelRequest() #1 /var/www/localhost/htdocs/a/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\\Component\\EventDispatcher\\EventDispatcher->callListeners() #2 /var/www/localhost/htdocs/a/openemr/vendor/symfony/http-kernel/HttpKernel.php(159): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch() #3 /var/www/localhost/htdocs/a/openemr/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() #4 /var/www/localhost/htdocs/a/openemr/src/RestControllers/ApiApplication.php(123): Symfony\\Component\\HttpKernel\\HttpKernel->handle() #5 /var/www/localhost/htdocs/a/openemr/apis/dispatch.php(30): OpenEMR\\RestControllers\\ApiApplication->run() #6 {main}"} [] [02-Oct-2026 14:06:32 UTC] OpenEMR.ERROR: TelemetryListener telemetry error {"exception":"[object] (Symfony\\Component\\HttpFoundation\\Exception\\SessionNotFoundException(code: 0): Session has not been set. at /var/www/localhost/htdocs/a/openemr/vendor/symfony/http-foundation/Request.php:784) [stacktrace] #0 /var/www/localhost/htdocs/a/openemr/src/RestControllers/Subscriber/TelemetryListener.php(24): Symfony\\Component\\HttpFoundation\\Request->getSession() #1 /var/www/localhost/htdocs/a/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(206): OpenEMR\\RestControllers\\Subscriber\\TelemetryListener->onRequestTerminated() #2 /var/www/localhost/htdocs/a/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\\Component\\EventDispatcher\\EventDispatcher->callListeners() #3 /var/www/localhost/htdocs/a/openemr/vendor/symfony/http-kernel/HttpKernel.php(114): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch() #4 /var/www/localhost/htdocs/a/openemr/src/RestControllers/ApiApplication.php(133): Symfony\\Component\\HttpKernel\\HttpKernel->terminate() #5 /var/www/localhost/htdocs/a/openemr/apis/dispatch.php(30): OpenEMR\\RestControllers\\ApiApplication->run() #6 {main} "} [] [02-Oct-2026 14:06:32 UTC] Session has not been set. [02-Oct-2026 14:06:32 UTC] #0 /var/www/localhost/htdocs/a/openemr/src/RestControllers/Subscriber/ApiResponseLoggerListener.php(46): Symfony\Component\HttpFoundation\Request->getSession() #1 /var/www/localhost/htdocs/a/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(206): OpenEMR\RestControllers\Subscriber\ApiResponseLoggerListener->onRequestTerminated() #2 /var/www/localhost/htdocs/a/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher->callListeners() #3 /var/www/localhost/htdocs/a/openemr/vendor/symfony/http-kernel/HttpKernel.php(114): Symfony\Component\EventDispatcher\EventDispatcher->dispatch() #4 /var/www/localhost/htdocs/a/openemr/src/RestControllers/ApiApplication.php(133): Symfony\Component\HttpKernel\HttpKernel->terminate() #5 /var/www/localhost/htdocs/a/openemr/apis/dispatch.php(30): OpenEMR\RestControllers\ApiApplication->run() #6 {main} [02-Oct-2026 22:21:44 UTC] PHP Warning: Undefined array key "content-type" in /var/www/localhost/htdocs/openemr/src/RestControllers/AuthorizationController.php on line 259 [02-Oct-2026 22:21:44 UTC] OpenEMR.ERROR: Exception occurred Unexpected content type {"trace":"#0 /var/www/localhost/htdocs/openemr/src/RestControllers/Subscriber/OAuth2AuthorizationListener.php(169): OpenEMR\\RestControllers\\AuthorizationController->clientRegistration() #1 /var/www/localhost/htdocs/openemr/src/RestControllers/Subscriber/OAuth2AuthorizationListener.php(81): OpenEMR\\RestControllers\\Subscriber\\OAuth2AuthorizationListener->authorizeRequest() #2 /var/www/localhost/htdocs/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(206): OpenEMR\\RestControllers\\Subscriber\\OAuth2AuthorizationListener->onKernelRequest() #3 /var/www/localhost/htdocs/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\\Component\\EventDispatcher\\EventDispatcher->callListeners() #4 /var/www/localhost/htdocs/openemr/vendor/symfony/http-kernel/HttpKernel.php(159): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch() #5 /var/www/localhost/htdocs/openemr/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() #6 /var/www/localhost/htdocs/openemr/src/RestControllers/ApiApplication.php(123): Symfony\\Component\\HttpKernel\\HttpKernel->handle() #7 /var/www/localhost/htdocs/openemr/oauth2/authorize.php(26): OpenEMR\\RestControllers\\ApiApplication->run() #8 {main}"} [] [02-Oct-2026 22:22:55 UTC] PHP Warning: Undefined array key "grant_type" in /var/www/localhost/htdocs/openemr/src/RestControllers/AuthorizationController.php on line 1364 [02-Oct-2026 22:22:55 UTC] OpenEMR.ERROR: ExceptionHandlerListener exception Cannot assign null to property OpenEMR\RestControllers\AuthorizationController::$grantType of type string {"trace":"#0 /var/www/localhost/htdocs/openemr/src/RestControllers/Subscriber/OAuth2AuthorizationListener.php(126): OpenEMR\\RestControllers\\AuthorizationController->oauthAuthorizeToken() #1 /var/www/localhost/htdocs/openemr/src/RestControllers/Subscriber/OAuth2AuthorizationListener.php(81): OpenEMR\\RestControllers\\Subscriber\\OAuth2AuthorizationListener->authorizeRequest() #2 /var/www/localhost/htdocs/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(206): OpenEMR\\RestControllers\\Subscriber\\OAuth2AuthorizationListener->onKernelRequest() #3 /var/www/localhost/htdocs/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\\Component\\EventDispatcher\\EventDispatcher->callListeners() #4 /var/www/localhost/htdocs/openemr/vendor/symfony/http-kernel/HttpKernel.php(159): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch() #5 /var/www/localhost/htdocs/openemr/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() #6 /var/www/localhost/htdocs/openemr/src/RestControllers/ApiApplication.php(123): Symfony\\Component\\HttpKernel\\HttpKernel->handle() #7 /var/www/localhost/htdocs/openemr/oauth2/authorize.php(26): OpenEMR\\RestControllers\\ApiApplication->run() #8 {main}"} [] [02-Oct-2026 22:22:58 UTC] PHP Warning: Undefined array key "grant_type" in /var/www/localhost/htdocs/openemr/src/RestControllers/AuthorizationController.php on line 1364 [02-Oct-2026 22:22:58 UTC] OpenEMR.ERROR: ExceptionHandlerListener exception Cannot assign null to property OpenEMR\RestControllers\AuthorizationController::$grantType of type string {"trace":"#0 /var/www/localhost/htdocs/openemr/src/RestControllers/Subscriber/OAuth2AuthorizationListener.php(126): OpenEMR\\RestControllers\\AuthorizationController->oauthAuthorizeToken() #1 /var/www/localhost/htdocs/openemr/src/RestControllers/Subscriber/OAuth2AuthorizationListener.php(81): OpenEMR\\RestControllers\\Subscriber\\OAuth2AuthorizationListener->authorizeRequest() #2 /var/www/localhost/htdocs/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(206): OpenEMR\\RestControllers\\Subscriber\\OAuth2AuthorizationListener->onKernelRequest() #3 /var/www/localhost/htdocs/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\\Component\\EventDispatcher\\EventDispatcher->callListeners() #4 /var/www/localhost/htdocs/openemr/vendor/symfony/http-kernel/HttpKernel.php(159): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch() #5 /var/www/localhost/htdocs/openemr/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() #6 /var/www/localhost/htdocs/openemr/src/RestControllers/ApiApplication.php(123): Symfony\\Component\\HttpKernel\\HttpKernel->handle() #7 /var/www/localhost/htdocs/openemr/oauth2/authorize.php(26): OpenEMR\\RestControllers\\ApiApplication->run() #8 {main}"} [] [02-Oct-2026 22:23:03 UTC] PHP Warning: Undefined array key "grant_type" in /var/www/localhost/htdocs/openemr/src/RestControllers/AuthorizationController.php on line 1364 [02-Oct-2026 22:23:03 UTC] OpenEMR.ERROR: ExceptionHandlerListener exception Cannot assign null to property OpenEMR\RestControllers\AuthorizationController::$grantType of type string {"trace":"#0 /var/www/localhost/htdocs/openemr/src/RestControllers/Subscriber/OAuth2AuthorizationListener.php(126): OpenEMR\\RestControllers\\AuthorizationController->oauthAuthorizeToken() #1 /var/www/localhost/htdocs/openemr/src/RestControllers/Subscriber/OAuth2AuthorizationListener.php(81): OpenEMR\\RestControllers\\Subscriber\\OAuth2AuthorizationListener->authorizeRequest() #2 /var/www/localhost/htdocs/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(206): OpenEMR\\RestControllers\\Subscriber\\OAuth2AuthorizationListener->onKernelRequest() #3 /var/www/localhost/htdocs/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\\Component\\EventDispatcher\\EventDispatcher->callListeners() #4 /var/www/localhost/htdocs/openemr/vendor/symfony/http-kernel/HttpKernel.php(159): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch() #5 /var/www/localhost/htdocs/openemr/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() #6 /var/www/localhost/htdocs/openemr/src/RestControllers/ApiApplication.php(123): Symfony\\Component\\HttpKernel\\HttpKernel->handle() #7 /var/www/localhost/htdocs/openemr/oauth2/authorize.php(26): OpenEMR\\RestControllers\\ApiApplication->run() #8 {main}"} [] [02-Oct-2026 22:23:10 UTC] PHP Warning: Undefined array key "grant_type" in /var/www/localhost/htdocs/openemr/src/RestControllers/AuthorizationController.php on line 1364 [02-Oct-2026 22:23:10 UTC] OpenEMR.ERROR: ExceptionHandlerListener exception Cannot assign null to property OpenEMR\RestControllers\AuthorizationController::$grantType of type string {"trace":"#0 /var/www/localhost/htdocs/openemr/src/RestControllers/Subscriber/OAuth2AuthorizationListener.php(126): OpenEMR\\RestControllers\\AuthorizationController->oauthAuthorizeToken() #1 /var/www/localhost/htdocs/openemr/src/RestControllers/Subscriber/OAuth2AuthorizationListener.php(81): OpenEMR\\RestControllers\\Subscriber\\OAuth2AuthorizationListener->authorizeRequest() #2 /var/www/localhost/htdocs/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(206): OpenEMR\\RestControllers\\Subscriber\\OAuth2AuthorizationListener->onKernelRequest() #3 /var/www/localhost/htdocs/openemr/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\\Component\\EventDispatcher\\EventDispatcher->callListeners() #4 /var/www/localhost/htdocs/openemr/vendor/symfony/http-kernel/HttpKernel.php(159): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch() #5 /var/www/localhost/htdocs/openemr/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() #6 /var/www/localhost/htdocs/openemr/src/RestControllers/ApiApplication.php(123): Symfony\\Component\\HttpKernel\\HttpKernel->handle() #7 /var/www/localhost/htdocs/openemr/oauth2/authorize.php(26): OpenEMR\\RestControllers\\ApiApplication->run() #8 {main}"} []