Zend_Db_Adapter_Exception (1203)
SQLSTATE[HY000] [1203] User babytrendlivedbu already has more than 'max_user_connections' active connections Zend_Db_Adapter_Exception thrown with message "SQLSTATE[HY000] [1203] User babytrendlivedbu already has more than 'max_user_connections' active connections" Stacktrace: #14 Zend_Db_Adapter_Exception in /home/babytrend/live/releases/20171119125738/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144 #13 PDOException in /home/babytrend/live/releases/20171119125738/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:129 #12 PDO:__construct in /home/babytrend/live/releases/20171119125738/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:129 #11 Zend_Db_Adapter_Pdo_Abstract:_connect in /home/babytrend/live/releases/20171119125738/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php:111 #10 Zend_Db_Adapter_Pdo_Mysql:_connect in /home/babytrend/live/releases/20171119125738/vendor/buxus/legacy-base/buxus/includes/classes/db/buxus_db_adapter_mysql.php:19 #9 BuxusDB_Adapter_Mysql:_connect in /home/babytrend/live/releases/20171119125738/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Abstract.php:861 #8 Zend_Db_Adapter_Abstract:quote in /home/babytrend/live/releases/20171119125738/vendor/buxus/seourl-legacy/src/SeoUrl.php:580 #7 Buxus\SeoUrlLegacy\SeoUrl:caseOnlySeoUrl in /home/babytrend/live/releases/20171119125738/vendor/buxus/seourl-legacy/src/SeoUrl.php:697 #6 Buxus\SeoUrlLegacy\SeoUrl:specialCases in /home/babytrend/live/releases/20171119125738/vendor/buxus/seourl-legacy/src/SeoUrl.php:785 #5 Buxus\SeoUrlLegacy\SeoUrl:getSeoUrlResult in /home/babytrend/live/releases/20171119125738/vendor/buxus/seourl-legacy/src/SeoUrl.php:815 #4 Buxus\SeoUrlLegacy\SeoUrl:getPageId in /home/babytrend/live/releases/20171119125738/vendor/illuminate/support/Facades/Facade.php:221 #3 Illuminate\Support\Facades\Facade:__callStatic in /home/babytrend/live/releases/20171119125738/vendor/buxus/core/src/handler/generate_page.php:24 #2 Buxus\SeoUrlLegacy\Facades\SeoUrl:getPageId in /home/babytrend/live/releases/20171119125738/vendor/buxus/core/src/handler/generate_page.php:24 #1 include in /home/babytrend/live/releases/20171119125738/vendor/buxus/core/src/Buxus/Router/BuxusRouter.php:86 #0 Buxus\Router\BuxusRouter:dispatch in /home/babytrend/live/releases/20171119125738/public/buxus.php:7
Stack frames (15)
14
Zend_Db_Adapter_Exception
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Db
/
Adapter
/
Pdo
/
Abstract.php
144
13
PDOException
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Db
/
Adapter
/
Pdo
/
Abstract.php
129
12
PDO
__construct
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Db
/
Adapter
/
Pdo
/
Abstract.php
129
11
Zend_Db_Adapter_Pdo_Abstract
_connect
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Db
/
Adapter
/
Pdo
/
Mysql.php
111
10
Zend_Db_Adapter_Pdo_Mysql
_connect
/
vendor
/
buxus
/
legacy-base
/
buxus
/
includes
/
classes
/
db
/
buxus_db_adapter_mysql.php
19
9
BuxusDB_Adapter_Mysql
_connect
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Db
/
Adapter
/
Abstract.php
861
8
Zend_Db_Adapter_Abstract
quote
/
vendor
/
buxus
/
seourl-legacy
/
src
/
SeoUrl.php
580
7
Buxus
\
SeoUrlLegacy
\
SeoUrl
caseOnlySeoUrl
/
vendor
/
buxus
/
seourl-legacy
/
src
/
SeoUrl.php
697
6
Buxus
\
SeoUrlLegacy
\
SeoUrl
specialCases
/
vendor
/
buxus
/
seourl-legacy
/
src
/
SeoUrl.php
785
5
Buxus
\
SeoUrlLegacy
\
SeoUrl
getSeoUrlResult
/
vendor
/
buxus
/
seourl-legacy
/
src
/
SeoUrl.php
815
4
Buxus
\
SeoUrlLegacy
\
SeoUrl
getPageId
/
vendor
/
illuminate
/
support
/
Facades
/
Facade.php
221
3
Illuminate
\
Support
\
Facades
\
Facade
__callStatic
/
vendor
/
buxus
/
core
/
src
/
handler
/
generate_page.php
24
2
Buxus
\
SeoUrlLegacy
\
Facades
\
SeoUrl
getPageId
/
vendor
/
buxus
/
core
/
src
/
handler
/
generate_page.php
24
1
include
/
vendor
/
buxus
/
core
/
src
/
Buxus
/
Router
/
BuxusRouter.php
86
0
Buxus
\
Router
\
BuxusRouter
dispatch
/
public
/
buxus.php
7
/
home
/
babytrend
/
live
/
releases
/
20171119125738
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Db
/
Adapter
/
Pdo
/
Abstract.php
                $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) {
            /**
             * @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()
    {
        return ((bool) ($this->_connection instanceof PDO));
    }
 
    /**
     * Force the connection to close.
     *
     * @return void
     */
    public function closeConnection()
Arguments
  1. "SQLSTATE[HY000] [1203] User babytrendlivedbu already has more than 'max_user_connections' active connections"
    
/
home
/
babytrend
/
live
/
releases
/
20171119125738
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Db
/
Adapter
/
Pdo
/
Abstract.php
             */
            require_once 'Zend/Db/Adapter/Exception.php';
            throw new Zend_Db_Adapter_Exception('The ' . $this->_pdoType . ' driver is not currently installed');
        }
 
        // create PDO connection
        $q = $this->_profiler->queryStart('connect', Zend_Db_Profiler::CONNECT);
 
        // add the persistence flag if we find it in our config array
        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);
 
        } 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);
        }
 
    }
 
    /**
Arguments
  1. "SQLSTATE[HY000] [1203] User babytrendlivedbu already has more than 'max_user_connections' active connections"
    
Exception message: SQLSTATE[HY000] [1203] User babytrendlivedbu already has more than 'max_user_connections' active connections
/
home
/
babytrend
/
live
/
releases
/
20171119125738
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Db
/
Adapter
/
Pdo
/
Abstract.php
             */
            require_once 'Zend/Db/Adapter/Exception.php';
            throw new Zend_Db_Adapter_Exception('The ' . $this->_pdoType . ' driver is not currently installed');
        }
 
        // create PDO connection
        $q = $this->_profiler->queryStart('connect', Zend_Db_Profiler::CONNECT);
 
        // add the persistence flag if we find it in our config array
        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);
 
        } 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);
        }
 
    }
 
    /**
Arguments
  1. "mysql:host=localhost;dbname=buxus_babytrend_live;encoding=utf8;adapter=mysql"
    
  2. "babytrendlivedbu"
    
  3. "reetohjae9eePoh1"
    
  4. array:1 [
      12 => true
    ]
    
/
home
/
babytrend
/
live
/
releases
/
20171119125738
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Db
/
Adapter
/
Pdo
/
Mysql.php
    /**
     * Creates a PDO object and connects to the database.
     *
     * @return void
     * @throws Zend_Db_Adapter_Exception
     */
    protected function _connect()
    {
        if ($this->_connection) {
            return;
        }
 
        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 "`";
    }
 
    /**
     * Returns a list of the tables in the database.
     *
     * @return array
     */
    public function listTables()
    {
        return $this->fetchCol('SHOW TABLES');
    }
 
/
home
/
babytrend
/
live
/
releases
/
20171119125738
/
vendor
/
buxus
/
legacy-base
/
buxus
/
includes
/
classes
/
db
/
buxus_db_adapter_mysql.php
<?php
 
require_once 'includes/classes/db/buxus_db_adapter.php';
require_once 'includes/classes/db/buxus_db_statement_pdo.php';
 
class BuxusDB_Adapter_Mysql extends Zend_Db_Adapter_Pdo_Mysql implements BuxusDB_Adapter {
    /**
     * Default class name for a DB statement.
     *
     * @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)
    {
        return($result->rowCount());
    }
    
    public function quoteString($str)
    {
        if(empty($str)) {
            return('NULL');
        }
        else {
            return($this->quote($str));
        }
/
home
/
babytrend
/
live
/
releases
/
20171119125738
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Db
/
Adapter
/
Abstract.php
            return $value;
        } elseif (is_float($value)) {
            return sprintf('%F', $value);
        }
        return "'" . addcslashes($value, "\000\n\r\\'\"\032") . "'";
    }
 
    /**
     * Safely quotes a value for an SQL statement.
     *
     * 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)) {
            foreach ($value as &$val) {
                $val = $this->quote($val, $type);
            }
            return implode(', ', $value);
        }
 
        if ($type !== null && array_key_exists($type = strtoupper($type), $this->_numericDataTypes)) {
            $quotedValue = '0';
            switch ($this->_numericDataTypes[$type]) {
                case Zend_Db::INT_TYPE: // 32-bit integer
/
home
/
babytrend
/
live
/
releases
/
20171119125738
/
vendor
/
buxus
/
seourl-legacy
/
src
/
SeoUrl.php
        if (ctype_digit($last_param) != false) { // The last parameter is page_id
            return new SeoUrlResult($last_param, null, false, true);
        }
 
        return null;
    }
 
    /**
     * Case, when SEO URL is without page_id
     *
     * @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,
                parameters
            FROM
                tblSeoUrl
            WHERE
                " . implode(" AND ", $conditions);
        $result = \BuxusDB::get()->fetchRow($query);
 
        if (empty($result)) { // The URL is not fount
            return null;
        }
Arguments
  1. "https://"
    
/
home
/
babytrend
/
live
/
releases
/
20171119125738
/
vendor
/
buxus
/
seourl-legacy
/
src
/
SeoUrl.php
     * Special cases in SEO URL
     *
     * @param array $url_parts
     * @return SeoUrlResult
     */
    protected function specialCases($url_parts)
    {
        // Quick call
        if ($this->enable_quick_call) { // The quick call is enabled
            $seo_url_result = $this->caseQuickCall($url_parts);
            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;
        }
 
        $seo_url_result = $this->externalPluginSourceCase($this->request_protocol, $virtual_host_name, $this->request_uri);
        if (!is_null($seo_url_result)) {
            return $seo_url_result;
        }
 
        return null;
    }
 
    /**
     * Return the request protocol
Arguments
  1. "https://"
    
  2. "www.babytrend.sk"
    
  3. "/hracky-na-kocik"
    
/
home
/
babytrend
/
live
/
releases
/
20171119125738
/
vendor
/
buxus
/
seourl-legacy
/
src
/
SeoUrl.php
        // Set general variables
        $this->request_protocol = $protocol;
        $this->host_name = $this->cleanHostName($host_name);
        $request_uri_clean = $this->cleanUrl($request_uri);
        $this->request_uri = '/' . $request_uri_clean;
 
        if (($this->host_name == $this->web_host_name) && (empty($request_uri_clean))) { // There is only web URL without any others strings
            return new SeoUrlResult($this->home_page_id);
        }
 
        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;
    }
 
    /**
     * Return the page id of request. It is call from "generate_page.php"
     *
     * @param int $server_port
     * @param string $host_name
     * @param string $request_uri
     * @param bool $redirect_to_404
     * @return int
     * @throws \Exception
     */
    public function getPageId($server_port, $host_name, $request_uri, $redirect_to_404 = true)
Arguments
  1. array:1 [
      0 => "hracky-na-kocik"
    ]
    
/
home
/
babytrend
/
live
/
releases
/
20171119125738
/
vendor
/
buxus
/
seourl-legacy
/
src
/
SeoUrl.php
     * Return the page id of request. It is call from "generate_page.php"
     *
     * @param int $server_port
     * @param string $host_name
     * @param string $request_uri
     * @param bool $redirect_to_404
     * @return int
     * @throws \Exception
     */
    public function getPageId($server_port, $host_name, $request_uri, $redirect_to_404 = true)
    {
        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');
            }
        }
 
        $this->resolved_language = $result_language;
 
        if (!empty($this->seo_page_types)) { // The web has defined SEO URL
            if ($seo_url_result->isError404()) { // The error 404 occurred
                if (!$redirect_to_404) {
                    return false;
                }
 
                \Buxus\Event\BuxusEvent::fire(new \Buxus\Event\PageNotFoundEvent($request_uri));
Arguments
  1. "https://"
    
  2. "www.babytrend.sk"
    
  3. "/hracky-na-kocik"
    
/
home
/
babytrend
/
live
/
releases
/
20171119125738
/
vendor
/
illuminate
/
support
/
Facades
/
Facade.php
    }
 
    /**
     * Handle dynamic, static calls to the object.
     *
     * @param  string  $method
     * @param  array   $args
     * @return mixed
     *
     * @throws \RuntimeException
     */
    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.babytrend.sk"
    
  3. "/hracky-na-kocik"
    
/
home
/
babytrend
/
live
/
releases
/
20171119125738
/
vendor
/
buxus
/
core
/
src
/
handler
/
generate_page.php
 
require_once 'includes/generate_page.inc.php';
require_once 'includes/generate_functions.php';
require_once 'includes/mail_functions.inc.php';
require_once 'project_includes/captcha/captcha.config.php';
require_once 'includes/constants.inc.php';
 
if (GetSystemOption('C_include_buxus_functions') == '1') {
    require_once 'includes/functions.external.inc.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')) {
            header('HTTP/1.0 404 Not Found');
              echo 'Wrong page ID specified.';
          }
          exit;
      }
} else {
    $wrong_page_id = C_True;
}
 
$_REQUEST['page_id'] = $page_id;
Arguments
  1. "getPageId"
    
  2. array:3 [
      0 => "443"
      1 => "www.babytrend.sk"
      2 => "/hracky-na-kocik"
    ]
    
/
home
/
babytrend
/
live
/
releases
/
20171119125738
/
vendor
/
buxus
/
core
/
src
/
handler
/
generate_page.php
 
require_once 'includes/generate_page.inc.php';
require_once 'includes/generate_functions.php';
require_once 'includes/mail_functions.inc.php';
require_once 'project_includes/captcha/captcha.config.php';
require_once 'includes/constants.inc.php';
 
if (GetSystemOption('C_include_buxus_functions') == '1') {
    require_once 'includes/functions.external.inc.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')) {
            header('HTTP/1.0 404 Not Found');
              echo 'Wrong page ID specified.';
          }
          exit;
      }
} else {
    $wrong_page_id = C_True;
}
 
$_REQUEST['page_id'] = $page_id;
Arguments
  1. "443"
    
  2. "www.babytrend.sk"
    
  3. "/hracky-na-kocik"
    
/
home
/
babytrend
/
live
/
releases
/
20171119125738
/
vendor
/
buxus
/
core
/
src
/
Buxus
/
Router
/
BuxusRouter.php
            echo '<html><head><title>maintenance</title></head><body>This BUXUS application is undergoing maintenance. Please try again later</body></html>';
        } else {
            include $template_path;
        }
    }
 
    public function dispatch($request_uri) {
        if ($this->app->isDownForMaintenance()) {
            $this->display503();
            exit;
        }
 
        $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/babytrend/live/releases/20171119125738/vendor/buxus/core/src/handler/generate_page.php"
    
/
home
/
babytrend
/
live
/
releases
/
20171119125738
/
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. "/hracky-na-kocik"
    

Environment & details:

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