Uncaught exception thrown in session handler.

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction: INSERT INTO "sessions" ("sid", "uid", "hostname", "session", "timestamp") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4); Array ( [:db_insert_placeholder_0] => khBrCJCVHIQaDgsLqNHgyUnGVrrxMfL13CZKi-IqzmU [:db_insert_placeholder_1] => 0 [:db_insert_placeholder_2] => 216.73.217.13 [:db_insert_placeholder_3] => _symfony_flashes|a:1:{s:5:"error";a:1:{i:0;O:25:"Drupal\Core\Render\Markup":1:{s:9:"*string";s:2336:"<em class="placeholder">Deprecated function</em>: Using null as an array offset is deprecated, use an empty string instead in <em class="placeholder">Drupal\language\LanguageNegotiator-&gt;negotiateLanguage()</em> (line <em class="placeholder">201</em> of <em class="placeholder">core/modules/language/src/LanguageNegotiator.php</em>). <pre class="backtrace">Drupal\language\LanguageNegotiator-&gt;negotiateLanguage(&#039;language_url&#039;, &#039;language-url&#039;) (Line: 137) Drupal\language\LanguageNegotiator-&gt;initializeType(&#039;language_url&#039;) (Line: 218) Drupal\language\ConfigurableLanguageManager-&gt;getCurrentLanguage(&#039;language_url&#039;) (Line: 155) Drupal\path_alias\AliasManager-&gt;getPathByAlias(&#039;/content/1596-تشخیص-بیماری-کودک-مبتلا-اوتیسم-امر-آموزش&#039;) (Line: 37) Drupal\path_alias\PathProcessor\AliasPathProcessor-&gt;processInbound(&#039;/content/1596-تشخیص-بیماری-کودک-مبتلا-اوتیسم-امر-آموزش&#039;, Object) (Line: 70) Drupal\Core\PathProcessor\PathProcessorManager-&gt;processInbound(&#039;/content/1596-تشخیص-بیماری-کودک-مبتلا-اوتیسم-امر-آموزش&#039;, Object) (Line: 138) Drupal\redirect\EventSubscriber\RedirectRequestSubscriber-&gt;onKernelRequestCheckRedirect(Object, &#039;kernel.request&#039;, Object) call_user_func(Array, Object, &#039;kernel.request&#039;, Object) (Line: 111) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher-&gt;dispatch(Object, &#039;kernel.request&#039;) (Line: 139) Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw(Object, 1) (Line: 74) Symfony\Component\HttpKernel\HttpKernel-&gt;handle(Object, 1, 1) (Line: 58) Drupal\Core\StackMiddleware\Session-&gt;handle(Object, 1, 1) (Line: 48) Drupal\Core\StackMiddleware\KernelPreHandle-&gt;handle(Object, 1, 1) (Line: 106) Drupal\page_cache\StackMiddleware\PageCache-&gt;pass(Object, 1, 1) (Line: 85) Drupal\page_cache\StackMiddleware\PageCache-&gt;handle(Object, 1, 1) (Line: 48) Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&gt;handle(Object, 1, 1) (Line: 51) Drupal\Core\StackMiddleware\NegotiationMiddleware-&gt;handle(Object, 1, 1) (Line: 51) Drupal\Core\StackMiddleware\StackedHttpKernel-&gt;handle(Object, 1, 1) (Line: 686) Drupal\Core\DrupalKernel-&gt;handle(Object) (Line: 18) </pre>";}}}_sf2_meta|a:3:{s:1:"u";i:1796094285;s:1:"c";i:1796094285;s:1:"l";i:2000000;} [:db_insert_placeholder_4] => 1796094285 ) in Drupal\Core\Session\SessionHandler->write() (line 87 of /var/www/amoozak.org/public/core/lib/Drupal/Core/Session/SessionHandler.php).

Drupal\Core\Session\SessionHandler->write() (Line: 95)
Drupal\Core\Session\WriteSafeSessionHandler->write() (Line: 54)
Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy->write()
session_write_close() (Line: 250)
Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->save() (Line: 178)
Drupal\Core\Session\SessionManager->save() (Line: 159)
Symfony\Component\HttpFoundation\Session\Session->save() (Line: 61)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 686)
Drupal\Core\DrupalKernel->handle() (Line: 18)


The website encountered an unexpected error. Please try again later.
RuntimeException: Failed to start the session because headers have already been sent by "/var/www/amoozak.org/public/core/lib/Drupal/Core/Session/SessionHandler.php" at line 96. in Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() (line 132 of vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php).
Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() (Line: 144)
Drupal\Core\Session\SessionManager->startNow() (Line: 109)
Drupal\Core\Session\SessionManager->start() (Line: 59)
Symfony\Component\HttpFoundation\Session\Session->start() (Line: 240)
Drupal\big_pipe\Render\BigPipe->performPreSendTasks() (Line: 295)
Drupal\big_pipe\Render\BigPipe->sendContent() (Line: 112)
Drupal\big_pipe\Render\BigPipeResponse->sendContent() (Line: 377)
Symfony\Component\HttpFoundation\Response->send() (Line: 19)