Zend_Db_Adapter_Exception (1203)
SQLSTATE[42000] [1203] User vitalmixlivedbu already has more than 'max_user_connections' active connections Zend_Db_Adapter_Exception thrown with message "SQLSTATE[42000] [1203] User vitalmixlivedbu already has more than 'max_user_connections' active connections" Stacktrace: #16 Zend_Db_Adapter_Exception in /home/vitalmix/live/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144 #15 PDOException in /home/vitalmix/live/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:129 #14 PDO:__construct in /home/vitalmix/live/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:129 #13 Zend_Db_Adapter_Pdo_Abstract:_connect in /home/vitalmix/live/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php:111 #12 Zend_Db_Adapter_Pdo_Mysql:_connect in /home/vitalmix/live/vendor/buxus/legacy-base/buxus/includes/classes/db/buxus_db_adapter_mysql.php:19 #11 BuxusDB_Adapter_Mysql:_connect in /home/vitalmix/live/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Abstract.php:460 #10 Zend_Db_Adapter_Abstract:query in /home/vitalmix/live/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:238 #9 Zend_Db_Adapter_Pdo_Abstract:query in /home/vitalmix/live/vendor/buxus/legacy-base/buxus/includes/classes/db/buxus_db_adapter_mysql.php:78 #8 BuxusDB_Adapter_Mysql:query in /home/vitalmix/live/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Abstract.php:828 #7 Zend_Db_Adapter_Abstract:fetchOne in /home/vitalmix/live/vendor/buxus/seourl-legacy/buxus/lib/seo_url/seo_url_base.class.php:1240 #6 SeoUrlBase:getPageType in /home/vitalmix/live/vendor/buxus/seourl-legacy/buxus/lib/seo_url/seo_url_base.class.php:1299 #5 SeoUrlBase:getSeoUrl in /home/vitalmix/live/vendor/buxus/seourl-legacy/buxus/lib/seo_url/seo_url_base.class.php:1460 #4 SeoUrlBase:createUrlForPage in /home/vitalmix/live/vendor/buxus/legacy-base/buxus/includes/generate_functions.php:234 #3 CreateUrlForPage in /home/vitalmix/live/vendor/buxus/seourl-legacy/buxus/lib/seo_url/seo_url_base.class.php:877 #2 SeoUrlBase:getPageId in /home/vitalmix/live/vendor/buxus/core/src/handler/generate_page.php:26 #1 include in /home/vitalmix/live/vendor/buxus/core/src/Buxus/Router/BuxusRouter.php:86 #0 Buxus\Router\BuxusRouter:dispatch in /home/vitalmix/live/public/buxus.php:6
Stack frames (17)
16
Zend_Db_Adapter_Exception
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Db
/
Adapter
/
Pdo
/
Abstract.php
144
15
PDOException
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Db
/
Adapter
/
Pdo
/
Abstract.php
129
14
PDO
__construct
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Db
/
Adapter
/
Pdo
/
Abstract.php
129
13
Zend_Db_Adapter_Pdo_Abstract
_connect
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Db
/
Adapter
/
Pdo
/
Mysql.php
111
12
Zend_Db_Adapter_Pdo_Mysql
_connect
/
vendor
/
buxus
/
legacy-base
/
buxus
/
includes
/
classes
/
db
/
buxus_db_adapter_mysql.php
19
11
BuxusDB_Adapter_Mysql
_connect
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Db
/
Adapter
/
Abstract.php
460
10
Zend_Db_Adapter_Abstract
query
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Db
/
Adapter
/
Pdo
/
Abstract.php
238
9
Zend_Db_Adapter_Pdo_Abstract
query
/
vendor
/
buxus
/
legacy-base
/
buxus
/
includes
/
classes
/
db
/
buxus_db_adapter_mysql.php
78
8
BuxusDB_Adapter_Mysql
query
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Db
/
Adapter
/
Abstract.php
828
7
Zend_Db_Adapter_Abstract
fetchOne
/
vendor
/
buxus
/
seourl-legacy
/
buxus
/
lib
/
seo_url
/
seo_url_base.class.php
1240
6
SeoUrlBase
getPageType
/
vendor
/
buxus
/
seourl-legacy
/
buxus
/
lib
/
seo_url
/
seo_url_base.class.php
1299
5
SeoUrlBase
getSeoUrl
/
vendor
/
buxus
/
seourl-legacy
/
buxus
/
lib
/
seo_url
/
seo_url_base.class.php
1460
4
SeoUrlBase
createUrlForPage
/
vendor
/
buxus
/
legacy-base
/
buxus
/
includes
/
generate_functions.php
234
3
CreateUrlForPage
/
vendor
/
buxus
/
seourl-legacy
/
buxus
/
lib
/
seo_url
/
seo_url_base.class.php
877
2
SeoUrlBase
getPageId
/
vendor
/
buxus
/
core
/
src
/
handler
/
generate_page.php
26
1
include
/
vendor
/
buxus
/
core
/
src
/
Buxus
/
Router
/
BuxusRouter.php
86
0
Buxus
\
Router
\
BuxusRouter
dispatch
/
public
/
buxus.php
6
/
home
/
vitalmix
/
live
/
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[42000] [1203] User vitalmixlivedbu already has more than 'max_user_connections' active connections"
    
/
home
/
vitalmix
/
live
/
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[42000] [1203] User vitalmixlivedbu already has more than 'max_user_connections' active connections"
    
Exception message: SQLSTATE[42000] [1203] User vitalmixlivedbu already has more than 'max_user_connections' active connections
/
home
/
vitalmix
/
live
/
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_vitalmix_live;encoding=utf8;adapter=mysql"
    
  2. "vitalmixlivedbu"
    
  3. "heemocauHiri6eew"
    
  4. array:1 [
      12 => true
    ]
    
/
home
/
vitalmix
/
live
/
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
/
vitalmix
/
live
/
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
/
vitalmix
/
live
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Db
/
Adapter
/
Abstract.php
     * @return Zend_Db_Adapter_Abstract Fluent interface
     */
    public function setStatementClass($class)
    {
        $this->_defaultStmtClass = $class;
        return $this;
    }
 
    /**
     * Prepares and executes an SQL statement with bound data.
     *
     * @param  mixed  $sql  The SQL statement with placeholders.
     *                      May be a string or Zend_Db_Select.
     * @param  mixed  $bind An array of data to bind to the placeholders.
     * @return Zend_Db_Statement_Interface
     */
    public function query($sql, $bind = array())
    {
        // connect to the database if needed
        $this->_connect();
 
        // is the $sql a Zend_Db_Select object?
        if ($sql instanceof Zend_Db_Select) {
            if (empty($bind)) {
                $bind = $sql->getBind();
            }
 
            $sql = $sql->assemble();
        }
 
        // make sure $bind to an array;
        // don't use (array) typecasting because
        // because $bind may be a Zend_Db_Expr object
        if (!is_array($bind)) {
            $bind = array($bind);
        }
 
        // prepare and execute the statement with profiling
        $stmt = $this->prepare($sql);
        $stmt->execute($bind);
/
home
/
vitalmix
/
live
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Db
/
Adapter
/
Pdo
/
Abstract.php
     * @throws Zend_Db_Adapter_Exception To re-throw PDOException.
     */
    public function query($sql, $bind = array())
    {
        if (empty($bind) && $sql instanceof Zend_Db_Select) {
            $bind = $sql->getBind();
        }
 
        if (is_array($bind)) {
            foreach ($bind as $name => $value) {
                if (!is_int($name) && !preg_match('/^:/', $name)) {
                    $newName = ":$name";
                    unset($bind[$name]);
                    $bind[$newName] = $value;
                }
            }
        }
 
        try {
            return parent::query($sql, $bind);
        } catch (PDOException $e) {
            /**
             * @see Zend_Db_Statement_Exception
             */
            require_once 'Zend/Db/Statement/Exception.php';
            throw new Zend_Db_Statement_Exception($e->getMessage(), $e->getCode(), $e);
        }
    }
 
    /**
     * Executes an SQL statement and return the number of affected rows
     *
     * @param  mixed  $sql  The SQL statement with placeholders.
     *                      May be a string or Zend_Db_Select.
     * @return integer      Number of rows that were modified
     *                      or deleted by the SQL statement
     */
    public function exec($sql)
    {
        if ($sql instanceof Zend_Db_Select) {
Arguments
  1. """
    \n
    \t\t\t\t\tSELECT\n
    \t\t\t\t\t\tpage_type_id\n
             \t\t\tFROM\n
             \t\t\t\ttblPages\n
    \t\t\t         WHERE\n
    \t\t\t         \tpage_id = :page_id
    """
    
  2. array:1 [
      ":page_id" => 23822
    ]
    
/
home
/
vitalmix
/
live
/
vendor
/
buxus
/
legacy-base
/
buxus
/
includes
/
classes
/
db
/
buxus_db_adapter_mysql.php
		if ($my_string=="") {
			return "NULL";
		}
		return $my_string;
	}
	
	public static function convertStringToTrueFalse($my_string, $default = 'F') {
		return (in_array($my_string, array('T', 'F')) ? $my_string : $default);
	}
 
	public function query($sql, $bind = array()) {
		if (is_array($bind)) {
			foreach ($bind as $key => $value) {
				if (is_string($key) && is_array($value)) {
					$sql = preg_replace('@' . preg_quote($key) . '@', implode(',', $value), $sql);
					unset($bind[$key]);
				}
			}
		}
		return parent::query($sql, $bind);
	}
}
 
Arguments
  1. """
    \n
    \t\t\t\t\tSELECT\n
    \t\t\t\t\t\tpage_type_id\n
             \t\t\tFROM\n
             \t\t\t\ttblPages\n
    \t\t\t         WHERE\n
    \t\t\t         \tpage_id = :page_id
    """
    
  2. array:1 [
      ":page_id" => 23822
    ]
    
/
home
/
vitalmix
/
live
/
vendor
/
zendframework
/
zendframework1
/
library
/
Zend
/
Db
/
Adapter
/
Abstract.php
    public function fetchPairs($sql, $bind = array())
    {
        $stmt = $this->query($sql, $bind);
        $data = array();
        while ($row = $stmt->fetch(Zend_Db::FETCH_NUM)) {
            $data[$row[0]] = $row[1];
        }
        return $data;
    }
 
    /**
     * Fetches the first column of the first row of the SQL result.
     *
     * @param string|Zend_Db_Select $sql An SQL SELECT statement.
     * @param mixed $bind Data to bind into SELECT placeholders.
     * @return string
     */
    public function fetchOne($sql, $bind = array())
    {
        $stmt = $this->query($sql, $bind);
        $result = $stmt->fetchColumn(0);
        return $result;
    }
 
    /**
     * Quote a raw string.
     *
     * @param string $value     Raw string
     * @return string           Quoted string
     */
    protected function _quote($value)
    {
        if (is_int($value)) {
            return $value;
        } elseif (is_float($value)) {
            return sprintf('%F', $value);
        }
        return "'" . addcslashes($value, "\000\n\r\\'\"\032") . "'";
    }
 
Arguments
  1. """
    \n
    \t\t\t\t\tSELECT\n
    \t\t\t\t\t\tpage_type_id\n
             \t\t\tFROM\n
             \t\t\t\ttblPages\n
    \t\t\t         WHERE\n
    \t\t\t         \tpage_id = :page_id
    """
    
  2. array:1 [
      ":page_id" => 23822
    ]
    
/
home
/
vitalmix
/
live
/
vendor
/
buxus
/
seourl-legacy
/
buxus
/
lib
/
seo_url
/
seo_url_base.class.php
    /**
     * Return the page_type_id for the page_id, it use cache
     *
     * @param int $page_id
     * @return int
     */
    public function getPageType($page_id)
    {
        if (! empty($page_id))
        { // The page id is defined
            if (! isset($this->cache_page_type_ids[$page_id]))
            { // The page type has not defined for this page yet
                $query = "
					SELECT
						page_type_id
         			FROM
         				tblPages
			         WHERE
			         	page_id = :page_id";
                $this->cache_page_type_ids[$page_id] = BuxusDB::get()->fetchOne($query, array(':page_id' => $page_id));
            }
 
            return $this->cache_page_type_ids[$page_id];
        }
 
        return null;
    }
 
    protected function loadRecordFromDB($page_id, $web_host_name) {
        $query = "
                SELECT
                    CONCAT(protocol, domain, path) as seo_url,
                    domain,
                    no_seo_url
                FROM
                    tblSeoUrl
                WHERE
                    page_id = :page_id
                    AND
                    domain = :domain";
Arguments
  1. """
    \n
    \t\t\t\t\tSELECT\n
    \t\t\t\t\t\tpage_type_id\n
             \t\t\tFROM\n
             \t\t\t\ttblPages\n
    \t\t\t         WHERE\n
    \t\t\t         \tpage_id = :page_id
    """
    
  2. array:1 [
      ":page_id" => 23822
    ]
    
/
home
/
vitalmix
/
live
/
vendor
/
buxus
/
seourl-legacy
/
buxus
/
lib
/
seo_url
/
seo_url_base.class.php
    {
        $page_id = (int) $page_id;
        // @TODO: check if the cache is a little bit domain dependent ???
        if (isset($this->cache_seo_urls[$this->web_host_name][$page_id]))
        { // The SEO URL was generated before
            $result = $this->cache_seo_urls[$this->web_host_name][$page_id];
            if ($this->ignore_protocol) {
                $result = $this->alterUrlForCurrentProtocol($result);
            }
            return $result;
        }
        $seo_url_record = null;
 
        if ($this->memcached_urls) {
            $storage = $this->getStorage();
            $seo_url_record = $storage->get($this->getPageCacheKey($page_id));
        }
 
        if (empty($seo_url_record)) {
            $page_type_id = $this->getPageType($page_id);
 
            if (!$this->isSeoUrlForPageType($page_type_id)) { // The page type has not SEO URL
                // Save to cache
                $this->cache_seo_urls[$this->web_host_name][$page_id] = null;
 
                return null;
            }
 
            // Read SEO URL from DB
            $seo_url_record = $this->loadRecordFromDB($page_id, $this->web_host_name);
 
            if (! empty($seo_url_record) && $this->memcached_urls) {
                $storage = $this->getStorage();
                $storage->save($this->getPageCacheKey($page_id), $seo_url_record);
            }
        }
 
        if (! empty($seo_url_record))
        { // The page has SEO URL record
            $seo_url = $seo_url_record['seo_url'];
Arguments
  1. 23822
    
/
home
/
vitalmix
/
live
/
vendor
/
buxus
/
seourl-legacy
/
buxus
/
lib
/
seo_url
/
seo_url_base.class.php
     * @param int $page_id
     * @param string $url_parameter
     * @param string $quotes
     * @return string
     */
    public function createUrlForPage($page_id, $url_parameter, $quotes)
    {
        if (! empty($this->seo_page_types))
        { // The SEO URL is defined
            $parameter_mark_included = false;
 
            if ($page_id == $this->getHomePageId())
            { // It is the home page
                $seo_url_str = $this->default_protocol . $this->web_host_name;
 
                $url_appendix = '/';
            }
            else
            { // It is not the homepage
                $seo_url_str = $this->getSeoUrl($page_id);
 
                // Convert virtual SEO URL from DB to real SEO URL for this web
                $seo_url_str = $this->convertToRealUrl($seo_url_str);
 
                $url_appendix = $this->url_postix . '?page_id=' . $page_id;
 
                if ($this->append_page_id)
                {
                    $url_appendix = $this->url_postix . '?page_id=' . $page_id;
                    $parameter_mark_included = true;
                } else {
                    $url_appendix = $this->url_postix;
                }
            }
 
            if (! empty($url_parameter))
            { // The URL parameters are defined
                if (is_array($url_parameter))
                {//if array, multiple params inside
                    foreach ($url_parameter as $key => $value)
Arguments
  1. 23822
    
/
home
/
vitalmix
/
live
/
vendor
/
buxus
/
legacy-base
/
buxus
/
includes
/
generate_functions.php
  		{// The page name has not used before
  			$GLOBALS['buxus_page_names'][$page_id] = BuxusDB::get()->fetchOne("SELECT page_name FROM tblPages WHERE page_id = :page_id", array(':page_id' => $page_id));
  		}
 
  		$static_file_name = str_replace('<page_name>', $GLOBALS['buxus_page_names'][$page_id], $static_file_name);
  	}
 
    $static_file_name = str_replace('\\', '/', $static_file_name);
 
    // Remove diacritic and spaces
    $seo_url = SeoUrlBase::getInstance();
    $static_file_name = $seo_url->cleanUrl($static_file_name, true);
 
    return ($quotes . GetSystemOption('C_static_url_prefix') . $static_file_name . '?' . $url_parameter . $quotes);
  }
  else
  {
  	$seo_url = SeoUrlBase::getInstance();
 
	return $seo_url->createUrlForPage($page_id, $url_parameter, $quotes);
  }
}
 
function CreateUrlForImageName($image_name, $quotes = "'", $dummy = false, $modificator = null, $no_custom = false)
{
 
	if ($no_custom == false && function_exists('CustomCreateUrlForImageName'))
	{
		return CustomCreateUrlForImageName($image_name, $quotes, $dummy, $modificator);
	}
	
	global $as_static;
 
	$image_file = $image_name;
 
    $protocol = \Buxus\Util\Url::getProtocol();
 
	$hostname = $protocol . getenv('HOST');
	if (GetSystemOption('C_static_hostname'))
	{
Arguments
  1. 23822
    
  2. ""
    
  3. ""
    
/
home
/
vitalmix
/
live
/
vendor
/
buxus
/
seourl-legacy
/
buxus
/
lib
/
seo_url
/
seo_url_base.class.php
                // /buxus/generate_page.php?x=&page_id=51&lala=x
                if ($this->append_page_id)
                {
                    $request_uri_fixed = preg_replace('|^(.*\?)(\|.*&)(page_id=[0-9]+)[&]?(.*)$|', '\\1\\3&\\2\\4', $request_uri);
                }
                else
                {
                    $request_uri_fixed = $request_uri;
                }
 
                $request_uri_fixed = preg_replace('|&$|', '', $request_uri_fixed);
 
                // if we are using memcache, make sure the URL exists in DB
                // so just delete the memcached record for now :)
                if ($this->memcached_urls) {
                    unset($this->cache_seo_urls[$this->web_host_name][$page_id]);
                    $this->getStorage()->delete($this->getPageCacheKey($page_id));
                }
 
                $seo_url_str = CreateUrlForPage($page_id, $query_string, '');
 
                if ($this->ignore_protocol) {
                    $request_url = $real_protocol . $host_name . $request_uri_fixed;
                } else {
                    $request_url = $this->request_protocol . $host_name . $request_uri_fixed;
                }
 
                $request_url = $this->processUrl($request_url);
 
 
                if ($seo_url_str != $request_url)
                { // There is the not actual SEO URL
                    $this->redirect($page_id);
                }
            }
 
            // Set parameters
            $parameters = $seo_url_result->getParameters();
            if (! empty($parameters))
            { // The paramers are set
Arguments
  1. 23822
    
  2. ""
    
  3. ""
    
/
home
/
vitalmix
/
live
/
vendor
/
buxus
/
core
/
src
/
handler
/
generate_page.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;
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')) {
			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.vitalmix.cz"
    
  3. "/vitaminy-a-mineraly/vitaminy-na-nehty-vlasy-a-zuby?page_id=23822"
    
/
home
/
vitalmix
/
live
/
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/vitalmix/live/vendor/buxus/core/src/handler/generate_page.php"
    
/
home
/
vitalmix
/
live
/
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. "/vitaminy-a-mineraly/vitaminy-na-nehty-vlasy-a-zuby?page_id=23822"
    

Environment & details:

Key Value
page_id
"23822"
empty
empty
empty
empty
empty
empty
0. Whoops\Handler\PrettyPageHandler