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: #13 Zend_Db_Adapter_Exception in /home/predeti/live/releases/20191021082327/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144 #12 PDOException in /home/predeti/live/releases/20191021082327/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128 #11 PDO:__construct in /home/predeti/live/releases/20191021082327/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128 #10 Zend_Db_Adapter_Pdo_Abstract:_connect in /home/predeti/live/releases/20191021082327/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php:111 #9 Zend_Db_Adapter_Pdo_Mysql:_connect in /home/predeti/live/releases/20191021082327/vendor/buxus/legacy-base/buxus/includes/classes/db/buxus_db_adapter_mysql.php:19 #8 BuxusDB_Adapter_Mysql:_connect in /home/predeti/live/releases/20191021082327/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Abstract.php:861 #7 Zend_Db_Adapter_Abstract:quote in /home/predeti/live/releases/20191021082327/vendor/buxus/seourl-legacy/src/SeoUrl.php:580 #6 Buxus\SeoUrlLegacy\SeoUrl:caseOnlySeoUrl in /home/predeti/live/releases/20191021082327/vendor/buxus/seourl-legacy/src/SeoUrl.php:697 #5 Buxus\SeoUrlLegacy\SeoUrl:specialCases in /home/predeti/live/releases/20191021082327/vendor/buxus/seourl-legacy/src/SeoUrl.php:785 #4 Buxus\SeoUrlLegacy\SeoUrl:getSeoUrlResult in /home/predeti/live/releases/20191021082327/vendor/buxus/seourl-legacy/src/SeoUrl.php:815 #3 Buxus\SeoUrlLegacy\SeoUrl:getPageId in /home/predeti/live/releases/20191021082327/vendor/illuminate/support/Facades/Facade.php:221 #2 Illuminate\Support\Facades\Facade:__callStatic in /home/predeti/live/releases/20191021082327/vendor/buxus/core/src/handler/generate_page.php:24 #1 include in /home/predeti/live/releases/20191021082327/vendor/buxus/core/src/Buxus/Router/BuxusRouter.php:86 #0 Buxus\Router\BuxusRouter:dispatch in /home/predeti/live/releases/20191021082327/public/buxus.php:7
Stack frames (14):
13 Zend_Db_Adapter_Exception
…/­vendor/­zendframework/­zendframework1/­library/­Zend/­Db/­Adapter/­Pdo/­Abstract.php144
12 PDOException
…/­vendor/­zendframework/­zendframework1/­library/­Zend/­Db/­Adapter/­Pdo/­Abstract.php128
11 PDO __construct
…/­vendor/­zendframework/­zendframework1/­library/­Zend/­Db/­Adapter/­Pdo/­Abstract.php128
10 Zend_Db_Adapter_Pdo_Abstract _connect
…/­vendor/­zendframework/­zendframework1/­library/­Zend/­Db/­Adapter/­Pdo/­Mysql.php111
9 Zend_Db_Adapter_Pdo_Mysql _connect
…/­vendor/­buxus/­legacy-base/­buxus/­includes/­classes/­db/­buxus_db_adapter_mysql.php19
8 BuxusDB_Adapter_Mysql _connect
…/­vendor/­zendframework/­zendframework1/­library/­Zend/­Db/­Adapter/­Abstract.php861
7 Zend_Db_Adapter_Abstract quote
…/­vendor/­buxus/­seourl-legacy/­src/­SeoUrl.php580
6 Buxus\SeoUrlLegacy\SeoUrl caseOnlySeoUrl
…/­vendor/­buxus/­seourl-legacy/­src/­SeoUrl.php697
5 Buxus\SeoUrlLegacy\SeoUrl specialCases
…/­vendor/­buxus/­seourl-legacy/­src/­SeoUrl.php785
4 Buxus\SeoUrlLegacy\SeoUrl getSeoUrlResult
…/­vendor/­buxus/­seourl-legacy/­src/­SeoUrl.php815
3 Buxus\SeoUrlLegacy\SeoUrl getPageId
…/­vendor/­illuminate/­support/­Facades/­Facade.php221
2 Illuminate\Support\Facades\Facade __callStatic
…/­vendor/­buxus/­core/­src/­handler/­generate_page.php24
1 include
…/­vendor/­buxus/­core/­src/­Buxus/­Router/­BuxusRouter.php86
0 Buxus\Router\BuxusRouter dispatch
…/­public/­buxus.php7
/home/predeti/live/releases/20191021082327/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()
Arguments
  1. "SQLSTATE[HY000] [2002] No such file or directory"
    
/home/predeti/live/releases/20191021082327/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php
        if (isset($this->_config['persistent']) && ($this->_config['persistent'] == true)) {
            $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);
 
Arguments
  1. "SQLSTATE[HY000] [2002] No such file or directory"
    
Exception message: SQLSTATE[HY000] [2002] No such file or directory
/home/predeti/live/releases/20191021082327/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php
        if (isset($this->_config['persistent']) && ($this->_config['persistent'] == true)) {
            $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);
 
Arguments
  1. "mysql:host=localhost;dbname=buxus_predeti_live;encoding=utf8mb4;adapter=mysql"
    
  2. "predetilivedbu"
    
  3. "bee9aebaNgikaz5d"
    
  4. array:1 [
      12 => true
    ]
    
/home/predeti/live/releases/20191021082327/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/predeti/live/releases/20191021082327/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'");
	}
	
	public static function affectedRows($result)
	{
/home/predeti/live/releases/20191021082327/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/predeti/live/releases/20191021082327/vendor/buxus/seourl-legacy/src/SeoUrl.php
     * @param string $protocol
     * @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) && (!$this->ignore_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,
				lang,
Arguments
  1. "https://"
    
/home/predeti/live/releases/20191021082327/vendor/buxus/seourl-legacy/src/SeoUrl.php
            if (!is_null($seo_url_result)) { // 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)) {
            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)) {
            return $seo_url_result;
        }
 
Arguments
  1. "https://"
    
  2. "www.predeti.sk"
    
  3. "/vypredaj/textil"
    
/home/predeti/live/releases/20191021082327/vendor/buxus/seourl-legacy/src/SeoUrl.php
        if (empty($request_uri_clean)) { // The request url is not defined
            $url_parts = array();
            $seo_url_result = null;
        } 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;
    }
 
    /**
Arguments
  1. array:2 [
      0 => "vypredaj"
      1 => "textil"
    ]
    
/home/predeti/live/releases/20191021082327/vendor/buxus/seourl-legacy/src/SeoUrl.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();
 
        $result_language = $seo_url_result->getLanguage();
        if (empty($result_language)) {
            if (!empty($this->default_language)) {
                $result_language = $this->default_language;
            } else {
                $result_language = config('translate.default_language');
            }
        }
Arguments
  1. "https://"
    
  2. "www.predeti.sk"
    
  3. "/vypredaj/textil?producer=234961"
    
/home/predeti/live/releases/20191021082327/vendor/illuminate/support/Facades/Facade.php
     */
    public static function __callStatic($method, $args)
    {
        $instance = static::getFacadeRoot();
 
        if (! $instance) {
            throw new RuntimeException('A facade root has not been set.');
        }
 
        return $instance->$method(...$args);
    }
}
 
Arguments
  1. "443"
    
  2. "www.predeti.sk"
    
  3. "/vypredaj/textil?producer=234961"
    
/home/predeti/live/releases/20191021082327/vendor/buxus/core/src/handler/generate_page.php
  
// set gzhandler
if (GetSystemOption('C_gzhandler_buxus')) {
    ob_start('ob_gzhandler');
}
 
// SEO URL
global $page_id;
 
$page_id =  \Buxus\SeoUrlLegacy\Facades\SeoUrl::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')) {
Arguments
  1. "getPageId"
    
  2. array:3 [
      0 => "443"
      1 => "www.predeti.sk"
      2 => "/vypredaj/textil?producer=234961"
    ]
    
/home/predeti/live/releases/20191021082327/vendor/buxus/core/src/Buxus/Router/BuxusRouter.php
        }
 
        $script = $this->getScript($request_uri);
 
        foreach ($this->auto_scripts as $auto_script) {
            include($auto_script);
        }
 
        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;
    }
Arguments
  1. "/home/predeti/live/releases/20191021082327/vendor/buxus/core/src/handler/generate_page.php"
    
/home/predeti/live/releases/20191021082327/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']);
 
Arguments
  1. "/vypredaj/textil?producer=234961"
    

Environment & details:

Key Value
producer
"234961"
empty
empty
empty
empty
empty
empty
0. Whoops\Handler\PrettyPageHandler