Zend_Db_Adapter_Exception (2002)
SQLSTATE[HY000] [2002] No such file or directory Zend_Db_Adapter_Exception thrown with message "SQLSTATE[HY000] [2002] No such file or directory" Stacktrace: #12 Zend_Db_Adapter_Exception in /home/mydlazmarianky/live/releases/20170503134921/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144 #11 PDOException in /home/mydlazmarianky/live/releases/20170503134921/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:129 #10 PDO:__construct in /home/mydlazmarianky/live/releases/20170503134921/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:129 #9 Zend_Db_Adapter_Pdo_Abstract:_connect in /home/mydlazmarianky/live/releases/20170503134921/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php:111 #8 Zend_Db_Adapter_Pdo_Mysql:_connect in /home/mydlazmarianky/live/releases/20170503134921/vendor/buxus/legacy-base/buxus/includes/classes/db/buxus_db_adapter_mysql.php:19 #7 BuxusDB_Adapter_Mysql:_connect in /home/mydlazmarianky/live/releases/20170503134921/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Abstract.php:861 #6 Zend_Db_Adapter_Abstract:quote in /home/mydlazmarianky/live/releases/20170503134921/vendor/buxus/seourl-legacy/buxus/lib/seo_url/seo_url_base.class.php:578 #5 SeoUrlBase:caseOnlySeoUrl in /home/mydlazmarianky/live/releases/20170503134921/vendor/buxus/seourl-legacy/buxus/lib/seo_url/seo_url_base.class.php:674 #4 SeoUrlBase:specialCases in /home/mydlazmarianky/live/releases/20170503134921/vendor/buxus/seourl-legacy/buxus/lib/seo_url/seo_url_base.class.php:756 #3 SeoUrlBase:getSeoUrlResult in /home/mydlazmarianky/live/releases/20170503134921/vendor/buxus/seourl-legacy/buxus/lib/seo_url/seo_url_base.class.php:786 #2 SeoUrlBase:getPageId in /home/mydlazmarianky/live/releases/20170503134921/vendor/buxus/core/src/handler/generate_page.php:30 #1 include in /home/mydlazmarianky/live/releases/20170503134921/vendor/buxus/core/src/Buxus/Router/BuxusRouter.php:46 #0 Buxus\Router\BuxusRouter:dispatch in /home/mydlazmarianky/live/releases/20170503134921/public/buxus.php:7
Stack frames (13):
12 Zend_Db_Adapter_Exception
…/­vendor/­zendframework/­zendframework1/­library/­Zend/­Db/­Adapter/­Pdo/­Abstract.php144
11 PDOException
…/­vendor/­zendframework/­zendframework1/­library/­Zend/­Db/­Adapter/­Pdo/­Abstract.php129
10 PDO __construct
…/­vendor/­zendframework/­zendframework1/­library/­Zend/­Db/­Adapter/­Pdo/­Abstract.php129
9 Zend_Db_Adapter_Pdo_Abstract _connect
…/­vendor/­zendframework/­zendframework1/­library/­Zend/­Db/­Adapter/­Pdo/­Mysql.php111
8 Zend_Db_Adapter_Pdo_Mysql _connect
…/­vendor/­buxus/­legacy-base/­buxus/­includes/­classes/­db/­buxus_db_adapter_mysql.php19
7 BuxusDB_Adapter_Mysql _connect
…/­vendor/­zendframework/­zendframework1/­library/­Zend/­Db/­Adapter/­Abstract.php861
6 Zend_Db_Adapter_Abstract quote
…/­vendor/­buxus/­seourl-legacy/­buxus/­lib/­seo_url/­seo_url_base.class.php578
5 SeoUrlBase caseOnlySeoUrl
…/­vendor/­buxus/­seourl-legacy/­buxus/­lib/­seo_url/­seo_url_base.class.php674
4 SeoUrlBase specialCases
…/­vendor/­buxus/­seourl-legacy/­buxus/­lib/­seo_url/­seo_url_base.class.php756
3 SeoUrlBase getSeoUrlResult
…/­vendor/­buxus/­seourl-legacy/­buxus/­lib/­seo_url/­seo_url_base.class.php786
2 SeoUrlBase getPageId
…/­vendor/­buxus/­core/­src/­handler/­generate_page.php30
1 include
…/­vendor/­buxus/­core/­src/­Buxus/­Router/­BuxusRouter.php46
0 Buxus\Router\BuxusRouter dispatch
…/­public/­buxus.php7
/home/mydlazmarianky/live/releases/20170503134921/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php
 
            // always use exceptions.
            $this->_connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
 
        } catch (PDOException $e) {
            /**
             * @see Zend_Db_Adapter_Exception
             */
            require_once 'Zend/Db/Adapter/Exception.php';
            throw new Zend_Db_Adapter_Exception($e->getMessage(), $e->getCode(), $e);
        }
 
    }
 
    /**
     * Test if a connection is active
     *
     * @return boolean
     */
    public function isConnected()
/home/mydlazmarianky/live/releases/20170503134921/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php
            $this->_config['driver_options'][PDO::ATTR_PERSISTENT] = true;
        }
 
        try {
            $this->_connection = new PDO(
                $dsn,
                $this->_config['username'],
                $this->_config['password'],
                $this->_config['driver_options']
            );
 
            $this->_profiler->queryEnd($q);
 
            // set the PDO connection to perform case-folding on array keys, or not
            $this->_connection->setAttribute(PDO::ATTR_CASE, $this->_caseFolding);
 
            // always use exceptions.
            $this->_connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
 
        } catch (PDOException $e) {
Exception message: SQLSTATE[HY000] [2002] No such file or directory
/home/mydlazmarianky/live/releases/20170503134921/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php
            $this->_config['driver_options'][PDO::ATTR_PERSISTENT] = true;
        }
 
        try {
            $this->_connection = new PDO(
                $dsn,
                $this->_config['username'],
                $this->_config['password'],
                $this->_config['driver_options']
            );
 
            $this->_profiler->queryEnd($q);
 
            // set the PDO connection to perform case-folding on array keys, or not
            $this->_connection->setAttribute(PDO::ATTR_CASE, $this->_caseFolding);
 
            // always use exceptions.
            $this->_connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
 
        } catch (PDOException $e) {
/home/mydlazmarianky/live/releases/20170503134921/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php
        }
 
        if (!empty($this->_config['charset'])
            && version_compare(PHP_VERSION, '5.3.6', '<')
        ) {
            $initCommand = "SET NAMES '" . $this->_config['charset'] . "'";
            $this->_config['driver_options'][1002] = $initCommand; // 1002 = PDO::MYSQL_ATTR_INIT_COMMAND
        }
 
        parent::_connect();
    }
 
    /**
     * @return string
     */
    public function getQuoteIdentifierSymbol()
    {
        return "`";
    }
 
/home/mydlazmarianky/live/releases/20170503134921/vendor/buxus/legacy-base/buxus/includes/classes/db/buxus_db_adapter_mysql.php
	 * @var string
	 */
	protected $_defaultStmtClass = 'BuxusDB_Statement_PDO';
	
	protected function _connect() {
        if ($this->_connection) {
            return;
        }
 
		parent::_connect();
		if (array_key_exists("encoding", $this->_config)) {
			$this->_connection->query("SET CHARACTER SET '" . $this->_config['encoding'] . "'");
            $this->_connection->query("SET NAMES '" . $this->_config['encoding'] . "'");
		}
 
//        $this->_connection->query("SET SESSION sql_mode = 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'");
 
        $this->_connection = \Buxus\DebugBar::getInstance()->registerPDO($this->_connection);
	}
	
/home/mydlazmarianky/live/releases/20170503134921/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Abstract.php
     * If an array is passed as the value, the array values are quoted
     * and then returned as a comma-separated string.
     *
     * @param mixed $value The value to quote.
     * @param mixed $type  OPTIONAL the SQL datatype name, or constant, or null.
     * @return mixed An SQL-safe quoted value (or string of separated values).
     */
    public function quote($value, $type = null)
    {
        $this->_connect();
 
        if ($value instanceof Zend_Db_Select) {
            return '(' . $value->assemble() . ')';
        }
 
        if ($value instanceof Zend_Db_Expr) {
            return $value->__toString();
        }
 
        if (is_array($value)) {
/home/mydlazmarianky/live/releases/20170503134921/vendor/buxus/seourl-legacy/buxus/lib/seo_url/seo_url_base.class.php
     * @param string $host_name
     * @param string $request_uri
     * @return SeoUrlResult
     */
    protected function caseOnlySeoUrl($protocol = null, $host_name, $request_uri)
    {
        $conditions = array();
        if (! is_null($protocol))
        { // The protocol is defined
            $conditions[] = "protocol = " . BuxusDB::get()->quote($protocol);
        }
        if (!$this->generate_relative_urls) {
            $conditions[] = "domain = " . BuxusDB::get()->quote($host_name);
        }
        $conditions[] = "path = " . BuxusDB::get()->quote($request_uri);
 
        $query = "
			SELECT
				page_id,
				parameters
/home/mydlazmarianky/live/releases/20170503134921/vendor/buxus/seourl-legacy/buxus/lib/seo_url/seo_url_base.class.php
            { // The page was detected
                return $seo_url_result;
            }
        }
 
        // Generat virtual host name
        $virtual_host_name = $this->convertToVirtualUrl($this->host_name);
 
        // Without page_id
        $seo_url_result = $this->caseOnlySeoUrl($this->request_protocol, $virtual_host_name, $this->request_uri);
        if (! is_null($seo_url_result))
        { // The page was detected
            return $seo_url_result;
        }
 
        // Old SEO URL
        $seo_url_result = $this->caseArchivedSeoUrl($this->request_protocol, $virtual_host_name, $this->request_uri);
        if (! is_null($seo_url_result))
        { // The page was detected
            return $seo_url_result;
/home/mydlazmarianky/live/releases/20170503134921/vendor/buxus/seourl-legacy/buxus/lib/seo_url/seo_url_base.class.php
        }
        else
        { // The request URL is defined
            $url_parts = explode('/', $request_uri_clean);
            $seo_url_result = $this->caseStandardSeoUrl();
        }
 
        if (is_null($seo_url_result))
        { // The page_id was not detected
            $seo_url_result = $this->specialCases($url_parts);
 
            if (is_null($seo_url_result))
            { // The page_id was not detected
                return new SeoUrlResult($this->error_404_page_id, null, true);
            }
        }
 
        return $seo_url_result;
    }
 
/home/mydlazmarianky/live/releases/20170503134921/vendor/buxus/seourl-legacy/buxus/lib/seo_url/seo_url_base.class.php
    {
        if ($this->ignore_protocol) {
            $real_protocol = $this->getProtocol($server_port);
            $protocol = $this->default_protocol;
        } else {
            $protocol = $this->getProtocol($server_port);
        }
 
        // Find the SEO URL result
        $seo_url_result = $this->getSeoUrlResult($protocol, $host_name, $request_uri);
        $page_id = $seo_url_result->getPageId();
 
        if (! empty($this->seo_page_types))
        { // The web has defined SEO URL
            if ($seo_url_result->isError404())
            { // The error 404 occurred
                \Buxus\Event\BuxusEvent::fire(new \Buxus\Event\PageNotFoundEvent($request_uri));
 
                if ($this->redirect_error_404)
                { // The error 404 should be redirect to error page
/home/mydlazmarianky/live/releases/20170503134921/vendor/buxus/core/src/handler/generate_page.php
    ob_start("ob_gzhandler");
}
\Buxus\DebugBar::getInstance()->stopMeasure('bootstrap');
\Buxus\DebugBar::getInstance()->startMeasure('seo_url_resolver', 'SEO URL resolver');
// SEO URL
global $page_id;
require_once 'lib/seo_url/seo_url.inc.php';
 
$seo_url = SeoUrlBase::getInstance();
$page_id =  $seo_url->getPageId($_SERVER['SERVER_PORT'], $_SERVER['SERVER_NAME'], $_SERVER['REQUEST_URI']);
 
if (!((is_numeric($page_id)) && ($page_id > 0))) {
	//ak nie je nastaveny page_id, hladame page_name
	$page_name = (isset($_GET['page_name']) ? $_GET['page_name'] : '');
		
	if (!empty($page_name)) {
		//funckia skonci, ak nenajde, alebo najde viac
		$page_id = GetPageIdByPageName($page_name);
	} else {
		if (!showCustomError('404')) {
/home/mydlazmarianky/live/releases/20170503134921/vendor/buxus/core/src/Buxus/Router/BuxusRouter.php
            }
        }
        return $this->default_script;
    }
 
    public function dispatch($request_uri) {
        $script = $this->getScript($request_uri);
 
        if (!empty($script)) {
            include($script);
        }
 
        if ($this->default_script != $script) {
            include($this->default_script);
        }
 
        header('HTTP/1.0 404 Not Found');
        echo '404 Not Found';
        exit;
    }
/home/mydlazmarianky/live/releases/20170503134921/public/buxus.php
<?php
define('BASE_BUXUS_DIR', realpath(__DIR__ . '/../'));
require_once (__DIR__ . '/../vendor/autoload.php');
require_once (CORE_BUXUS_DIR . '/src/buxus_bootstrap.php');
 
$router = app('buxus-router');
$router->dispatch($_SERVER['REQUEST_URI']);
 

Environment & details:

empty
empty
empty
empty
empty
empty
empty
0. Whoops\Handler\PrettyPageHandler