31. PDOException
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­Connector.php47
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
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­ConnectionFactory.php59
27. Illuminate\Database\Connectors\ConnectionFactory createSingleConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­ConnectionFactory.php47
26. Illuminate\Database\Connectors\ConnectionFactory make
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­DatabaseManager.php127
25. Illuminate\Database\DatabaseManager makeConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­DatabaseManager.php63
24. Illuminate\Database\DatabaseManager connection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php2771
23. Illuminate\Database\Eloquent\Model resolveConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php2737
22. Illuminate\Database\Eloquent\Model getConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php1754
21. Illuminate\Database\Eloquent\Model newBaseQueryBuilder
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php1670
20. Illuminate\Database\Eloquent\Model newQuery
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php633
19. Illuminate\Database\Eloquent\Model find
…/­app/­controllers/­BaseController.php13
18. BaseController __construct
<#unknown>0
17. ReflectionClass newInstanceArgs
…/­vendor/­laravel/­framework/­src/­Illuminate/­Container/­Container.php536
16. Illuminate\Container\Container build
…/­vendor/­laravel/­framework/­src/­Illuminate/­Container/­Container.php425
15. Illuminate\Container\Container make
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php463
14. Illuminate\Foundation\Application make
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­ControllerDispatcher.php78
13. Illuminate\Routing\ControllerDispatcher makeController
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­ControllerDispatcher.php51
12. Illuminate\Routing\ControllerDispatcher dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php930
11. Illuminate\Routing\Router Illuminate\Routing\{closure}
<#unknown>0
10. call_user_func_array
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Route.php105
9. Illuminate\Routing\Route run
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php996
8. Illuminate\Routing\Router dispatchToRoute
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php964
7. Illuminate\Routing\Router dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php738
6. Illuminate\Foundation\Application dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php708
5. Illuminate\Foundation\Application handle
…/­vendor/­laravel/­framework/­src/­Illuminate/­Session/­Middleware.php72
4. Illuminate\Session\Middleware handle
…/­vendor/­laravel/­framework/­src/­Illuminate/­Cookie/­Queue.php47
3. Illuminate\Cookie\Queue handle
…/­vendor/­laravel/­framework/­src/­Illuminate/­Cookie/­Guard.php51
2. Illuminate\Cookie\Guard handle
…/­vendor/­stack/­builder/­src/­Stack/­StackedHttpKernel.php23
1. Stack\StackedHttpKernel handle
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php606
0. Illuminate\Foundation\Application run
…/­index.php49

PDOException (1040) PDOException thrown with message "SQLSTATE[HY000] [1040] Too many connections" Stacktrace: #31 PDOException in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:47 #30 PDO:__construct in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:47 #29 Illuminate\Database\Connectors\Connector:createConnection in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:20 #28 Illuminate\Database\Connectors\MySqlConnector:connect in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:59 #27 Illuminate\Database\Connectors\ConnectionFactory:createSingleConnection in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:47 #26 Illuminate\Database\Connectors\ConnectionFactory:make in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php:127 #25 Illuminate\Database\DatabaseManager:makeConnection in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php:63 #24 Illuminate\Database\DatabaseManager:connection in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:2771 #23 Illuminate\Database\Eloquent\Model:resolveConnection in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:2737 #22 Illuminate\Database\Eloquent\Model:getConnection in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1754 #21 Illuminate\Database\Eloquent\Model:newBaseQueryBuilder in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1670 #20 Illuminate\Database\Eloquent\Model:newQuery in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:633 #19 Illuminate\Database\Eloquent\Model:find in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/app/controllers/BaseController.php:13 #18 BaseController:__construct in <#unknown>:0 #17 ReflectionClass:newInstanceArgs in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:536 #16 Illuminate\Container\Container:build in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:425 #15 Illuminate\Container\Container:make in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:463 #14 Illuminate\Foundation\Application:make in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:78 #13 Illuminate\Routing\ControllerDispatcher:makeController in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:51 #12 Illuminate\Routing\ControllerDispatcher:dispatch in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:930 #11 Illuminate\Routing\Router:Illuminate\Routing\{closure} in <#unknown>:0 #10 call_user_func_array in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:105 #9 Illuminate\Routing\Route:run in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:996 #8 Illuminate\Routing\Router:dispatchToRoute in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:964 #7 Illuminate\Routing\Router:dispatch in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:738 #6 Illuminate\Foundation\Application:dispatch in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:708 #5 Illuminate\Foundation\Application:handle in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Session/Middleware.php:72 #4 Illuminate\Session\Middleware:handle in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php:47 #3 Illuminate\Cookie\Queue:handle in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php:51 #2 Illuminate\Cookie\Guard:handle in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/stack/builder/src/Stack/StackedHttpKernel.php:23 #1 Stack\StackedHttpKernel:handle in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:606 #0 Illuminate\Foundation\Application:run in /home/manakamanaexp/domains/manakamanaexpedition.com/public_html/index.php:49

SQLSTATE[HY000] [1040] Too many connections

	 */
	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);
 
		$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']))
	 * Create a single database connection instance.
	 *
	 * @param  array  $config
	 * @return \Illuminate\Database\Connection
	 */
	protected function createSingleConnection(array $config)
	{
		$pdo = $this->createConnector($config)->connect($config);
 
		return $this->createConnection($config['driver'], $pdo, $config['database'], $config['prefix'], $config);
 
		if (isset($config['read']))
		{
			return $this->createReadWriteConnection($config);
		}
		else
		{
			return $this->createSingleConnection($config);
		}
	}
		// and will call the Closure if so, which allows us to have a more generic
		// resolver for the drivers themselves which applies to all connections.
		if (isset($this->extensions[$driver]))
		{
			return call_user_func($this->extensions[$driver], $config, $name);
		}

		return $this->factory->make($config, $name);
	}

		$name = $name ?: $this->getDefaultConnection();

		// If we haven't created this connection, we'll create it based on the config
		// provided in the application. Once we've created the connections we will
		// set the "fetch mode" for PDO which determines the query return types.
		if ( ! isset($this->connections[$name]))
		{
			$connection = $this->makeConnection($name);

			$this->connections[$name] = $this->prepare($connection);
	 * Resolve a connection instance.
	 *
	 * @param  string  $connection
	 * @return \Illuminate\Database\Connection
	 */
	public static function resolveConnection($connection = null)
	{
		return static::$resolver->connection($connection);
	}
 
	/**
	 * Get the database connection for the model.
	 *
	 * @return \Illuminate\Database\Connection
	 */
	public function getConnection()
	{
		return static::resolveConnection($this->connection);
	}
 
	/**
	 * Get a new query builder instance for the connection.
	 *
	 * @return \Illuminate\Database\Query\Builder
	 */
	protected function newBaseQueryBuilder()
	{
		$conn = $this->getConnection();
 
		$grammar = $conn->getQueryGrammar();
	 * Get a new query builder for the model's table.
	 *
	 * @return \Illuminate\Database\Eloquent\Builder|static
	 */
	public function newQuery()
	{
		$builder = $this->newEloquentBuilder(
			$this->newBaseQueryBuilder()
		);
 
	 */
	public static function find($id, $columns = array('*'))
	{
		if (is_array($id) && empty($id)) return new Collection;
 
		$instance = new static;
 
		return $instance->newQuery()->find($id, $columns);
	}
 
	 public function __construct()
     {
        $this->beforeFilter(function()
        {				
			Common::globalXssClean();
        });	
		
		$site_data = SiteSetting::find(1);
		define('SITE_TITLE',$site_data->title, TRUE);
		define('SITE_EMAIL',$site_data->email, TRUE);
<#unknown>
			$dependencies, $parameters
		);
 
		$instances = $this->getDependencies(
			$dependencies, $parameters
		);
 
		return $reflector->newInstanceArgs($instances);
	}
 
		$concrete = $this->getConcrete($abstract);
 
		// We're ready to instantiate an instance of the concrete type registered for
		// the binding. This will instantiate the types, as well as resolve any of
		// its "nested" dependencies recursively until all have gotten resolved.
		if ($this->isBuildable($concrete, $abstract))
		{
			$object = $this->build($concrete, $parameters);
		}
		else
		$abstract = $this->getAlias($abstract);
 
		if (isset($this->deferredServices[$abstract]))
		{
			$this->loadDeferredProvider($abstract);
		}
 
		return parent::make($abstract, $parameters);
	}
 
	 * @param  string  $controller
	 * @return mixed
	 */
	protected function makeController($controller)
	{
		Controller::setFilterer($this->filterer);
 
		return $this->container->make($controller);
	}
 
	 * @return mixed
	 */
	public function dispatch(Route $route, Request $request, $controller, $method)
	{
		// First we will make an instance of this controller via the IoC container instance
		// so that we can call the methods on it. We will also apply any "after" filters
		// to the route so that they will be run by the routers after this processing.
		$instance = $this->makeController($controller);
 
		$this->assignAfter($instance, $route, $request, $method);
			$request = $this->getCurrentRequest();
 
			// Now we can split the controller and method out of the action string so that we
			// can call them appropriately on the class. This controller and method are in
			// in the Class@method format and we need to explode them out then use them.
			list($class, $method) = explode('@', $controller);
 
			return $d->dispatch($route, $request, $class, $method);
		};
	}
<#unknown>
	 *
	 * @return mixed
	 */
	public function run()
	{
		$parameters = array_filter($this->parameters(), function($p) { return isset($p); });

		return call_user_func_array($this->action['uses'], $parameters);
	}

		// Once we have successfully matched the incoming request to a given route we
		// can call the before filters on that route. This works similar to global
		// filters in that if a response is returned we will not call the route.
		$response = $this->callRouteBefore($route, $request);
 
		if (is_null($response))
		{
			$response = $route->run($request);
		}
 
		// If no response was returned from the before filter, we will call the proper
		// route instance to get the response. If no route is found a response will
		// still get returned based on why no routes were found for this request.
		$response = $this->callFilter('before', $request);
 
		if (is_null($response))
		{
			$response = $this->dispatchToRoute($request);
		}
 
		}
 
		if ($this->runningUnitTests() && ! $this['session']->isStarted())
		{
			$this['session']->start();
		}
 
		return $this['router']->dispatch($this->prepareRequest($request));
	}
 
	{
		try
		{
			$this->refreshRequest($request = Request::createFromBase($request));
 
			$this->boot();
 
			return $this->dispatch($request);
		}
		catch (\Exception $e)
		if ($this->sessionConfigured())
		{
			$session = $this->startSession($request);
 
			$request->setSession($session);
		}
 
		$response = $this->app->handle($request, $type, $catch);
 
		// Again, if the session has been configured we will need to close out the session
	 * @param  \Symfony\Component\HttpFoundation\Request  $request
	 * @param  int   $type
	 * @param  bool  $catch
	 * @return \Symfony\Component\HttpFoundation\Response
	 */
	public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
	{
		$response = $this->app->handle($request, $type, $catch);
 
		foreach ($this->cookies->getQueuedCookies() as $cookie)
	 * @param  \Symfony\Component\HttpFoundation\Request  $request
	 * @param  int   $type
	 * @param  bool  $catch
	 * @return \Symfony\Component\HttpFoundation\Response
	 */
	public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
	{
		return $this->encrypt($this->app->handle($this->decrypt($request), $type, $catch));
	}
 
    {
        $this->app = $app;
        $this->middlewares = $middlewares;
    }
 
    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        return $this->app->handle($request, $type, $catch);
    }
 
	 * @param  \Symfony\Component\HttpFoundation\Request  $request
	 * @return void
	 */
	public function run(SymfonyRequest $request = null)
	{
		$request = $request ?: $this['request'];
 
		$response = with($stack = $this->getStackedClient())->handle($request);
 
		$response->send();
| 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
LSPHP_ENABLE_USER_INI on
PATH /bin:/usr/bin
HTTP_ACCEPT */*
HTTP_HOST manakamanaexpedition.com
HTTP_REFERER http://manakamanaexpedition.com/trips/detail/himlung-himal-expedition
HTTP_USER_AGENT claudebot
DOCUMENT_ROOT /home/manakamanaexp/domains/manakamanaexpedition.com/private_html
REMOTE_ADDR 54.225.1.66
REMOTE_PORT 55808
SERVER_ADDR 162.250.127.222
SERVER_NAME manakamanaexpedition.com
SERVER_ADMIN webmaster@manakamanaexpedition.com
SERVER_PORT 443
REQUEST_URI /trips/detail/himlung-himal-expedition
REDIRECT_URL /trips/detail/himlung-himal-expedition
HTTPS on
REDIRECT_STATUS 200
X_SPDY HTTP2
SSL_PROTOCOL TLSv1.3
SSL_CIPHER TLS_AES_256_GCM_SHA384
SSL_CIPHER_USEKEYSIZE 256
SSL_CIPHER_ALGKEYSIZE 256
LSWS_EDITION Openlitespeed 1.7.19
X-LSCACHE on,crawler
SCRIPT_FILENAME /home/manakamanaexp/domains/manakamanaexpedition.com/private_html/index.php
QUERY_STRING
SCRIPT_NAME /index.php
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE LiteSpeed
REQUEST_METHOD GET
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710845050.471622
REQUEST_TIME 1710845050
empty
empty
empty
empty
empty
empty
0. Whoops\Handler\PrettyPageHandler