35. PDOException
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­Connector.php47
34. PDO __construct
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­Connector.php0
33. {closure}
<#unknown>0
32. ErrorException
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­Connector.php47
31. Illuminate\Exception\Handler handleError
<#unknown>0
30. PDO __construct
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­Connector.php47
29. Illuminate\Database\Connectors\Connector createConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­MySqlConnector.php20
28. Illuminate\Database\Connectors\MySqlConnector connect
…/­bootstrap/­compiled.php7713
27. Illuminate\Database\Connectors\ConnectionFactory createSingleConnection
…/­bootstrap/­compiled.php7709
26. Illuminate\Database\Connectors\ConnectionFactory make
…/­bootstrap/­compiled.php7621
25. Illuminate\Database\DatabaseManager makeConnection
…/­bootstrap/­compiled.php7576
24. Illuminate\Database\DatabaseManager connection
…/­bootstrap/­compiled.php7457
23. Illuminate\Database\Eloquent\Model resolveConnection
…/­bootstrap/­compiled.php7444
22. Illuminate\Database\Eloquent\Model getConnection
…/­bootstrap/­compiled.php7024
21. Illuminate\Database\Eloquent\Model newBaseQueryBuilder
…/­bootstrap/­compiled.php7001
20. Illuminate\Database\Eloquent\Model newQueryWithoutScopes
…/­bootstrap/­compiled.php6991
19. Illuminate\Database\Eloquent\Model newQuery
…/­bootstrap/­compiled.php6590
18. Illuminate\Database\Eloquent\Model with
…/­app/­filters.php33
17. {closure}
…/­bootstrap/­compiled.php233
16. Illuminate\Container\Container build
…/­bootstrap/­compiled.php205
15. Illuminate\Container\Container make
…/­bootstrap/­compiled.php583
14. Illuminate\Foundation\Application make
…/­vendor/­laravel/­framework/­src/­Illuminate/­Support/­helpers.php33
13. app
…/­app/­filters.php48
12. {closure}
<#unknown>0
11. call_user_func_array
…/­bootstrap/­compiled.php6259
10. Illuminate\Events\Dispatcher fire
…/­bootstrap/­compiled.php6241
9. Illuminate\Events\Dispatcher until
…/­bootstrap/­compiled.php5176
8. Illuminate\Routing\Router callFilter
…/­bootstrap/­compiled.php5051
7. Illuminate\Routing\Router dispatch
…/­bootstrap/­compiled.php715
6. Illuminate\Foundation\Application dispatch
…/­bootstrap/­compiled.php696
5. Illuminate\Foundation\Application handle
…/­bootstrap/­compiled.php7825
4. Illuminate\Session\Middleware handle
…/­bootstrap/­compiled.php8432
3. Illuminate\Cookie\Queue handle
…/­bootstrap/­compiled.php8379
2. Illuminate\Cookie\Guard handle
…/­bootstrap/­compiled.php11205
1. Stack\StackedHttpKernel handle
…/­bootstrap/­compiled.php657
0. Illuminate\Foundation\Application run
/­data/­3/­6/­3650b096-82ea-40fd-a770-c08163e166fa/­autodielytatra.sk/­web/­index.php49

PDOException (2006)

Callstack information; navigate with mouse or keyboard using Ctrl+↑ or Ctrl+↓
Copy-to-clipboard button
Exception message and its type
Code snippet where the error was thrown
Server state information
Application provided context information
PDOException thrown with message "SQLSTATE[HY000] [2006] MySQL server has gone away" Stacktrace: #35 PDOException in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:47 #34 PDO:__construct in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:0 #33 {closure} in <#unknown>:0 #32 ErrorException in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:47 #31 Illuminate\Exception\Handler:handleError in <#unknown>:0 #30 PDO:__construct in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:47 #29 Illuminate\Database\Connectors\Connector:createConnection in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:20 #28 Illuminate\Database\Connectors\MySqlConnector:connect in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:7713 #27 Illuminate\Database\Connectors\ConnectionFactory:createSingleConnection in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:7709 #26 Illuminate\Database\Connectors\ConnectionFactory:make in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:7621 #25 Illuminate\Database\DatabaseManager:makeConnection in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:7576 #24 Illuminate\Database\DatabaseManager:connection in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:7457 #23 Illuminate\Database\Eloquent\Model:resolveConnection in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:7444 #22 Illuminate\Database\Eloquent\Model:getConnection in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:7024 #21 Illuminate\Database\Eloquent\Model:newBaseQueryBuilder in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:7001 #20 Illuminate\Database\Eloquent\Model:newQueryWithoutScopes in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:6991 #19 Illuminate\Database\Eloquent\Model:newQuery in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:6590 #18 Illuminate\Database\Eloquent\Model:with in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/app/filters.php:33 #17 {closure} in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:233 #16 Illuminate\Container\Container:build in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:205 #15 Illuminate\Container\Container:make in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:583 #14 Illuminate\Foundation\Application:make in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/vendor/laravel/framework/src/Illuminate/Support/helpers.php:33 #13 app in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/app/filters.php:48 #12 {closure} in <#unknown>:0 #11 call_user_func_array in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:6259 #10 Illuminate\Events\Dispatcher:fire in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:6241 #9 Illuminate\Events\Dispatcher:until in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:5176 #8 Illuminate\Routing\Router:callFilter in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:5051 #7 Illuminate\Routing\Router:dispatch in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:715 #6 Illuminate\Foundation\Application:dispatch in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:696 #5 Illuminate\Foundation\Application:handle in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:7825 #4 Illuminate\Session\Middleware:handle in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:8432 #3 Illuminate\Cookie\Queue:handle in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:8379 #2 Illuminate\Cookie\Guard:handle in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:11205 #1 Stack\StackedHttpKernel:handle in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/laravel/bootstrap/compiled.php:657 #0 Illuminate\Foundation\Application:run in /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/index.php:49

SQLSTATE[HY000] [2006] MySQL server has gone away

	 */
	public function createConnection($dsn, array $config, array $options)
	{
		$username = array_get($config, 'username');
 
		$password = array_get($config, 'password');
 
		return new PDO($dsn, $username, $password, $options);
	}
 
<?php namespace Illuminate\Database\Connectors;
 
use PDO;
 
class Connector {
 
	/**
	 * The default PDO connection options.
	 *
	 * @var array
<#unknown>
	 */
	public function createConnection($dsn, array $config, array $options)
	{
		$username = array_get($config, 'username');
 
		$password = array_get($config, 'password');
 
		return new PDO($dsn, $username, $password, $options);
	}
 
Exception message: PDO::__construct(): MySQL server has gone away
<#unknown>
	 */
	public function createConnection($dsn, array $config, array $options)
	{
		$username = array_get($config, 'username');
 
		$password = array_get($config, 'password');
 
		return new PDO($dsn, $username, $password, $options);
	}
 
		$dsn = $this->getDsn($config);
 
		$options = $this->getOptions($config);
 
		// We need to grab the PDO options that should be used while making the brand
		// new connection instance. The PDO options control various aspects of the
		// connection's behavior, and some might be specified by the developers.
		$connection = $this->createConnection($dsn, $config, $options);
 
		if (isset($config['unix_socket']))
        if (isset($config['read'])) {
            return $this->createReadWriteConnection($config);
        }
        return $this->createSingleConnection($config);
    }
    protected function createSingleConnection(array $config)
    {
        $pdo = $this->createConnector($config)->connect($config);
        return $this->createConnection($config['driver'], $pdo, $config['database'], $config['prefix'], $config);
    }
    }
    public function make(array $config, $name = null)
    {
        $config = $this->parseConfig($config, $name);
        if (isset($config['read'])) {
            return $this->createReadWriteConnection($config);
        }
        return $this->createSingleConnection($config);
    }
    protected function createSingleConnection(array $config)
        if (isset($this->extensions[$name])) {
            return call_user_func($this->extensions[$name], $config, $name);
        }
        $driver = $config['driver'];
        if (isset($this->extensions[$driver])) {
            return call_user_func($this->extensions[$driver], $config, $name);
        }
        return $this->factory->make($config, $name);
    }
    protected function prepare(Connection $connection)
        $this->app = $app;
        $this->factory = $factory;
    }
    public function connection($name = null)
    {
        list($name, $type) = $this->parseConnectionName($name);
        if (!isset($this->connections[$name])) {
            $connection = $this->makeConnection($name);
            $this->setPdoForType($connection, $type);
            $this->connections[$name] = $this->prepare($connection);
    public function setConnection($name)
    {
        $this->connection = $name;
        return $this;
    }
    public static function resolveConnection($connection = null)
    {
        return static::$resolver->connection($connection);
    }
    public static function getConnectionResolver()
    public function setRelations(array $relations)
    {
        $this->relations = $relations;
        return $this;
    }
    public function getConnection()
    {
        return static::resolveConnection($this->connection);
    }
    public function getConnectionName()
    }
    public function newEloquentBuilder($query)
    {
        return new Builder($query);
    }
    protected function newBaseQueryBuilder()
    {
        $conn = $this->getConnection();
        $grammar = $conn->getQueryGrammar();
        return new QueryBuilder($conn, $grammar, $conn->getPostProcessor());
    public function newQueryWithoutScope($scope)
    {
        $this->getGlobalScope($scope)->remove($builder = $this->newQuery(), $this);
        return $builder;
    }
    public function newQueryWithoutScopes()
    {
        $builder = $this->newEloquentBuilder($this->newBaseQueryBuilder());
        return $builder->setModel($this)->with($this->with);
    }
    }
    public function freshTimestampString()
    {
        return $this->fromDateTime($this->freshTimestamp());
    }
    public function newQuery()
    {
        $builder = $this->newQueryWithoutScopes();
        return $this->applyGlobalScopes($builder);
    }
    }
    public static function with($relations)
    {
        if (is_string($relations)) {
            $relations = func_get_args();
        }
        $instance = new static();
        return $instance->newQuery()->with($relations);
    }
    public function hasOne($related, $foreignKey = null, $localKey = null)
	 *  Load global settings
	 */
 
	// create global settings singleton
	App::singleton('globals', function(){
		$globals = Cache::tags('global')->get('global_settings');
		if (!$globals){
			$globals = Settings::with('localization')
				->with('businessConditions')
				->with('phones')
    protected function missingLeadingSlash($abstract)
    {
        return is_string($abstract) && strpos($abstract, '\\') !== 0;
    }
    public function build($concrete, $parameters = array())
    {
        if ($concrete instanceof Closure) {
            return $concrete($this, $parameters);
        }
        $reflector = new ReflectionClass($concrete);
    {
        $abstract = $this->getAlias($abstract);
        if (isset($this->instances[$abstract])) {
            return $this->instances[$abstract];
        }
        $concrete = $this->getConcrete($abstract);
        if ($this->isBuildable($concrete, $abstract)) {
            $object = $this->build($concrete, $parameters);
        } else {
            $object = $this->make($concrete, $parameters);
    }
    public function make($abstract, $parameters = array())
    {
        $abstract = $this->getAlias($abstract);
        if (isset($this->deferredServices[$abstract])) {
            $this->loadDeferredProvider($abstract);
        }
        return parent::make($abstract, $parameters);
    }
    public function bound($abstract)
	 * @param  string  $make
	 * @return mixed
	 */
	function app($make = null)
	{
		if ( ! is_null($make))
		{
			return app()->make($make);
		}
 
				->find(1);
			Cache::tags('global')->put('global_settings',$globals,1);
		}
		return $globals;
	});
 
	// share through views
	View::share('globals', app('globals'));
 
	/**
<#unknown>
    {
        $responses = array();
        if (!is_array($payload)) {
            $payload = array($payload);
        }
        $this->firing[] = $event;
        foreach ($this->getListeners($event) as $listener) {
            $response = call_user_func_array($listener, $payload);
            if (!is_null($response) && $halt) {
                array_pop($this->firing);
        if (is_string($subscriber)) {
            return $this->container->make($subscriber);
        }
        return $subscriber;
    }
    public function until($event, $payload = array())
    {
        return $this->fire($event, $payload, true);
    }
    public function flush($event)
        }
    }
    protected function callFilter($filter, $request, $response = null)
    {
        if (!$this->filtering) {
            return null;
        }
        return $this->events->until('router.' . $filter, array($request, $response));
    }
    public function callRouteBefore($route, $request)
    {
        $group = last($this->groupStack);
        return isset($group['namespace']) ? $group['namespace'] . '\\' . $uses : $uses;
    }
    public function dispatch(Request $request)
    {
        $this->currentRequest = $request;
        $response = $this->callFilter('before', $request);
        if (is_null($response)) {
            $response = $this->dispatchToRoute($request);
            if (!is_null($response)) {
                return $this->prepareResponse($response, $request);
            }
        }
        if ($this->runningUnitTests() && !$this['session']->isStarted()) {
            $this['session']->start();
        }
        return $this['router']->dispatch($this->prepareRequest($request));
    }
    public function terminate(SymfonyRequest $request, SymfonyResponse $response)
        });
    }
    public function handle(SymfonyRequest $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        try {
            $this->refreshRequest($request = Request::createFromBase($request));
            $this->boot();
            return $this->dispatch($request);
        } catch (\Exception $e) {
            if (!$catch || $this->runningUnitTests()) {
    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        $this->checkRequestForArraySessions($request);
        if ($this->sessionConfigured()) {
            $session = $this->startSession($request);
            $request->setSession($session);
        }
        $response = $this->app->handle($request, $type, $catch);
        if ($this->sessionConfigured()) {
            $this->closeSession($session);
    public function __construct(HttpKernelInterface $app, CookieJar $cookies)
    {
        $this->app = $app;
        $this->cookies = $cookies;
    }
    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        $response = $this->app->handle($request, $type, $catch);
        foreach ($this->cookies->getQueuedCookies() as $cookie) {
            $response->headers->setCookie($cookie);
    public function __construct(HttpKernelInterface $app, Encrypter $encrypter)
    {
        $this->app = $app;
        $this->encrypter = $encrypter;
    }
    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        return $this->encrypt($this->app->handle($this->decrypt($request), $type, $catch));
    }
    protected function decrypt(Request $request)
    public function __construct(HttpKernelInterface $app, array $middlewares)
    {
        $this->app = $app;
        $this->middlewares = $middlewares;
    }
    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        return $this->app->handle($request, $type, $catch);
    }
    public function terminate(Request $request, Response $response)
        if ($this->isBooted()) {
            $this->fireAppCallbacks(array($callback));
        }
    }
    public function run(SymfonyRequest $request = null)
    {
        $request = $request ?: $this['request'];
        $response = with($stack = $this->getStackedClient())->handle($request);
        $response->send();
        $stack->terminate($request, $response);
| Once we have the application, we can simply call the run method,
| which will execute the request and send the response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have whipped up for them.
|
*/
 
$app->run();
 
Key Value
catid 332
empty
empty
empty
empty
Key Value
REDIRECT_HTTPS on
REDIRECT_GEOIP_COUNTRY_CODE US
REDIRECT_UNIQUE_ID ZgXpiKRTD4Cu5-cdGgSviwAAAAI
REDIRECT_DOCROOT /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/
REDIRECT_filter-errordocs
REDIRECT_STATUS 200
HTTPS on
GEOIP_COUNTRY_CODE US
UNIQUE_ID ZgXpiKRTD4Cu5-cdGgSviwAAAAI
DOCROOT /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/
filter-errordocs
HTTP_HOST www.autodielytatra.sk
HTTP_X_REAL_IP 54.166.170.195
HTTP_X_FORWARDED_FOR 54.166.170.195, 54.166.170.195
HTTP_X_FORWARDED_PROTO https
HTTP_HTTPS 1
HTTP_X_PROXY_IP 10.20.5.1
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_WS_GEO_COUNTRY US
HTTP_MAX_FORWARDS 7
HTTP_X_FORWARDED_HOST www.autodielytatra.sk
HTTP_X_FORWARDED_SERVER www.autodielytatra.sk
HTTP_CONNECTION close
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME www.autodielytatra.sk
SERVER_ADDR 127.0.0.1
SERVER_PORT 443
REMOTE_ADDR 54.166.170.195
DOCUMENT_ROOT /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/
SERVER_ADMIN admin@websupport.sk
SCRIPT_FILENAME /data/3/6/3650b096-82ea-40fd-a770-c08163e166fa/autodielytatra.sk/web/index.php
REMOTE_PORT 50520
REDIRECT_URL /sk/produkty/gufero-ac-40x52x7-bdslkf-fpm
REDIRECT_QUERY_STRING catid=332
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING catid=332
REQUEST_URI /sk/produkty/gufero-ac-40x52x7-bdslkf-fpm?catid=332
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711663496.72
REQUEST_TIME 1711663496
argv Array ( [0] => catid=332 )
argc 1
empty
0. Whoops\Handler\PrettyPageHandler