27. PDOException
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­Connector.php47
26. PDO __construct
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­Connector.php47
25. Illuminate\Database\Connectors\Connector createConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­MySqlConnector.php20
24. Illuminate\Database\Connectors\MySqlConnector connect
…/­bootstrap/­compiled.php7208
23. Illuminate\Database\Connectors\ConnectionFactory createSingleConnection
…/­bootstrap/­compiled.php7203
22. Illuminate\Database\Connectors\ConnectionFactory make
…/­bootstrap/­compiled.php7127
21. Illuminate\Database\DatabaseManager makeConnection
…/­bootstrap/­compiled.php7101
20. Illuminate\Database\DatabaseManager connection
…/­bootstrap/­compiled.php3176
19. Illuminate\Support\Facades\Facade __callStatic
…/­app/­Acme/­Smh.php103
18. Acme\Smh getGallery
…/­app/­controllers/­SiteController.php21
17. SiteController getGallery
<#unknown>0
16. call_user_func_array
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Controller.php231
15. Illuminate\Routing\Controller callAction
…/­bootstrap/­compiled.php5437
14. Illuminate\Routing\ControllerDispatcher call
…/­bootstrap/­compiled.php5425
13. Illuminate\Routing\ControllerDispatcher dispatch
…/­bootstrap/­compiled.php4657
12. Illuminate\Routing\Router Illuminate\Routing\{closure}
<#unknown>0
11. call_user_func_array
…/­bootstrap/­compiled.php4984
10. Illuminate\Routing\Route run
…/­bootstrap/­compiled.php4682
9. Illuminate\Routing\Router dispatchToRoute
…/­bootstrap/­compiled.php4670
8. Illuminate\Routing\Router dispatch
…/­bootstrap/­compiled.php706
7. Illuminate\Foundation\Application dispatch
…/­bootstrap/­compiled.php687
6. Illuminate\Foundation\Application handle
…/­bootstrap/­compiled.php1146
5. Illuminate\Http\FrameGuard handle
…/­bootstrap/­compiled.php7311
4. Illuminate\Session\Middleware handle
…/­bootstrap/­compiled.php7908
3. Illuminate\Cookie\Queue handle
…/­bootstrap/­compiled.php7855
2. Illuminate\Cookie\Guard handle
…/­bootstrap/­compiled.php10878
1. Stack\StackedHttpKernel handle
…/­bootstrap/­compiled.php648
0. Illuminate\Foundation\Application run
…/­public_html/­index.php56

PDOException

SQLSTATE[HY000] [2002] Operation timed out

	 */
	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);
	}
 
	 */
	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);
 
		// 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.
		$options = $this->getOptions($config);
 
		$connection = $this->createConnection($dsn, $config, $options);
 
		$collation = $config['collation'];
            return $this->createReadWriteConnection($config);
        } else {
            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);
        } else {
            return $this->createSingleConnection($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)
    {
        $name = $name ?: $this->getDefaultConnection();
        if (!isset($this->connections[$name])) {
            $connection = $this->makeConnection($name);
            $this->connections[$name] = $this->prepare($connection);
        }
    public static function __callStatic($method, $args)
    {
        $instance = static::getFacadeRoot();
        switch (count($args)) {
            case 0:
                return $instance->{$method}();
            case 1:
                return $instance->{$method}($args[0]);
            case 2:
                return $instance->{$method}($args[0], $args[1]);
 
        return $feeds;
    }
 
    public function getGallery()
    {
        //return false;
        return DB::connection('otto_smh')->table('post_web')
            ->where('post_web.post_web_deleted_from_source', 0)
            ->join('post', 'post_web.post_id', '=', 'post.post_id')
    }
 
    public function getGallery()
    {
        $data = [];
 
        $smh = new \Acme\Smh();
        $data['items'] = $smh->getGallery()->paginate(12);
//        $data['users'] = $users = DB::table('users')->paginate(15);
//        dd($data['items']);
<#unknown>
	 * @param array   $parameters
	 * @return \Symfony\Component\HttpFoundation\Response
	 */
	public function callAction($method, $parameters)
	{
		$this->setupLayout();
 
		$response = call_user_func_array(array($this, $method), $parameters);
 
		// If no response is returned from the controller action and a layout is being
    {
        Controller::setFilterer($this->filterer);
        return $this->container->make($controller);
    }
    protected function call($instance, $route, $method)
    {
        $parameters = $route->parametersWithoutNulls();
        return $instance->callAction($method, $parameters);
    }
    protected function before($instance, $route, $request, $method)
    }
    public function dispatch(Route $route, Request $request, $controller, $method)
    {
        $instance = $this->makeController($controller);
        $this->assignAfter($instance, $route, $request, $method);
        $response = $this->before($instance, $route, $request, $method);
        if (is_null($response)) {
            $response = $this->call($instance, $route, $method);
        }
        return $response;
    {
        $me = $this;
        $d = $this->getControllerDispatcher();
        return function () use($me, $d, $controller) {
            $route = $me->current();
            $request = $me->getCurrentRequest();
            list($class, $method) = explode('@', $controller);
            return $d->dispatch($route, $request, $class, $method);
        };
    }
<#unknown>
        }
    }
    public function run()
    {
        $parameters = array_filter($this->parameters(), function ($p) {
            return isset($p);
        });
        return call_user_func_array($this->action['uses'], $parameters);
    }
    public function matches(Request $request, $includingMethod = true)
    }
    public function dispatchToRoute(Request $request)
    {
        $route = $this->findRoute($request);
        $this->events->fire('router.matched', array($route, $request));
        $response = $this->callRouteBefore($route, $request);
        if (is_null($response)) {
            $response = $route->run($request);
        }
        $response = $this->prepareResponse($request, $response);
        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);
        }
        $response = $this->prepareResponse($request, $response);
            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 ($this->runningUnitTests()) {
    protected $app;
    public function __construct(HttpKernelInterface $app)
    {
        $this->app = $app;
    }
    public function handle(SymfonyRequest $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        $response = $this->app->handle($request, $type, $catch);
        $response->headers->set('X-Frame-Options', 'SAMEORIGIN', false);
        return $response;
    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
REDIRECT_UNIQUE_ID XeBaikGFVwevN4j895DLZwAAAAw
REDIRECT_HTTPS on
REDIRECT_SCRIPT_URL /galleri
REDIRECT_SCRIPT_URI http://www.otto.se/galleri
REDIRECT_CACHE_ROOT /var/cache/sites/vol18/yz/1g8qa0k5tfgz8zq/otto.se/cache/
REDIRECT_LOOPIA_CUSTOMER_DIR /www/webvol18/yz/1g8qa0k5tfgz8zq/
REDIRECT_STATUS 200
UNIQUE_ID XeBaikGFVwevN4j895DLZwAAAAw
HTTPS on
SCRIPT_URL /galleri
SCRIPT_URI http://www.otto.se/galleri
CACHE_ROOT /var/cache/sites/vol18/yz/1g8qa0k5tfgz8zq/otto.se/cache/
LOOPIA_CUSTOMER_DIR /www/webvol18/yz/1g8qa0k5tfgz8zq/
HTTP_X_FORWARDED_FOR 31.208.12.131
HTTP_HOST www.otto.se
HTTP_X_LOOPIA_SSL on
HTTP_X_FORWARDED_PROTO https
HTTP_CONNECTION close
HTTP_REFERER http://www.otto.se/
HTTP_COOKIE $Version=1; laravel_session=eyJpdiI6IlNLTEV1ejhWejRPYVRWVGN5cXRzdFRQVDA0YTZ1OGJhTkRRbkI2ZlIydXM9IiwidmFsdWUiOiJ3YUM4NlFrbUxkaWdhSkJFemt6MlVPQTdveUpsXC9pSndhSkVmaVJpY0llRDBjdjZVTEQ5QkY4NXV6ODg3OUFJYjhieEUwMjBNQnE2aWNWdHdMRlRmbWc9PSIsIm1hYyI6IjNmODExMjU5OWYyZDQ3MTIwMmIxOWZiZDJhMGFkZDBhZTczMzU2MTQ4ZmI1NDRmMjY4MDBlMWM2ZTY2ZGNhNWUifQ%3D%3D; $Path=/
HTTP_USER_AGENT Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)
HTTP_ACCEPT text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1
HTTP_ACCEPT_LANGUAGE en, *
HTTP_ACCEPT_ENCODING gzip, identity;q=0.9
PATH /sbin:/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH /usr/local/lib
SERVER_SIGNATURE <address>Apache/2.4.41 (FreeBSD) mpm-itk/2.4.7-04 PHP/7.1.32 Server at www.otto.se Port 80</address>
SERVER_SOFTWARE Apache/2.4.41 (FreeBSD) mpm-itk/2.4.7-04 PHP/7.1.32
SERVER_NAME www.otto.se
SERVER_ADDR 172.22.223.47
SERVER_PORT 80
REMOTE_ADDR 31.208.12.131
DOCUMENT_ROOT /www/webvol18/yz/1g8qa0k5tfgz8zq/otto.se/public_html
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /www/webvol18/yz/1g8qa0k5tfgz8zq/otto.se/public_html
SERVER_ADMIN [no address given]
SCRIPT_FILENAME /www/webvol18/yz/1g8qa0k5tfgz8zq/otto.se/public_html/index.php
REMOTE_PORT 48532
REDIRECT_URL /galleri
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /galleri
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1574984330.986
REQUEST_TIME 1574984330
argv Array ( )
argc 0
email_contact_form tove@otto.se
email_new_customer_to_admin_1 tove@otto.se
email_new_customer_to_admin_2 mats@otto.se
empty
empty
empty
Key Value
$Version 1
laravel_session eyJpdiI6IlNLTEV1ejhWejRPYVRWVGN5cXRzdFRQVDA0YTZ1OGJhTkRRbkI2ZlIydXM9IiwidmFsdWUiOiJ3YUM4NlFrbUxkaWdhSkJFemt6MlVPQTdveUpsXC9pSndhSkVmaVJpY0llRDBjdjZVTEQ5QkY4NXV6ODg3OUFJYjhieEUwMjBNQnE2aWNWdHdMRlRmbWc9PSIsIm1hYyI6IjNmODExMjU5OWYyZDQ3MTIwMmIxOWZiZDJhMGFkZDBhZTczMzU2MTQ4ZmI1NDRmMjY4MDBlMWM2ZTY2ZGNhNWUifQ==
$Path /
empty
Key Value
REMOTE_ADDR 31.208.12.131
DOCUMENT_ROOT /www/webvol18/yz/1g8qa0k5tfgz8zq/otto.se/public_html
SCRIPT_FILENAME /www/webvol18/yz/1g8qa0k5tfgz8zq/otto.se/public_html/index.php
SCRIPT_NAME /index.php
HTTP_HOST www.otto.se
PATH /sbin:/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH /usr/local/lib
PWD /
HOME /
RC_PID 9529
email_contact_form tove@otto.se
email_new_customer_to_admin_1 tove@otto.se
email_new_customer_to_admin_2 mats@otto.se
0. Whoops\Handler\PrettyPageHandler