Doctrine \ DBAL \ Exception \ ConnectionException
An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
Previous exceptions
  • SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) (1045)
  • SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) (1045)
Doctrine\DBAL\Exception\ConnectionException thrown with message "An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)" Stacktrace: #22 Doctrine\DBAL\Exception\ConnectionException in /var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:113 #21 Doctrine\DBAL\Driver\AbstractMySQLDriver:convertException in /var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:184 #20 Doctrine\DBAL\DBALException:wrapException in /var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:169 #19 Doctrine\DBAL\DBALException:driverException in /var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php:47 #18 Doctrine\DBAL\Driver\PDOException in /var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:50 #17 PDOException in /var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:46 #16 PDO:__construct in /var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:46 #15 Doctrine\DBAL\Driver\PDOConnection:__construct in /var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php:41 #14 Doctrine\DBAL\Driver\PDOMySql\Driver:connect in /var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:389 #13 Doctrine\DBAL\Connection:connect in /var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:453 #12 Doctrine\DBAL\Connection:getDatabasePlatformVersion in /var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:413 #11 Doctrine\DBAL\Connection:detectDatabasePlatform in /var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:357 #10 Doctrine\DBAL\Connection:getDatabasePlatform in /var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:844 #9 Doctrine\DBAL\Connection:quoteIdentifier in /var/www/u2564609/data/www/vendor/phact-cmf/phact/src/Phact/Orm/QueryLayer.php:135 #8 Phact\Orm\QueryLayer:quote in /var/www/u2564609/data/www/vendor/phact-cmf/phact/src/Phact/Orm/QueryLayer.php:125 #7 Phact\Orm\QueryLayer:getQueryBuilder in /var/www/u2564609/data/www/vendor/phact-cmf/phact/src/Phact/Orm/QueryLayer.php:386 #6 Phact\Orm\QueryLayer:get in /var/www/u2564609/data/www/vendor/phact-cmf/phact/src/Phact/Orm/QuerySet.php:247 #5 Phact\Orm\QuerySet:get in /var/www/u2564609/data/www/vendor/phact-cmf/phact/src/Phact/Orm/Manager.php:95 #4 Phact\Orm\Manager:get in /var/www/u2564609/data/www/app/Modules/Redirect/RedirectModule.php:35 #3 Modules\Redirect\RedirectModule:onApplicationRun in /var/www/u2564609/data/www/vendor/phact-cmf/phact/src/Phact/Application/Application.php:427 #2 call_user_func_array in /var/www/u2564609/data/www/vendor/phact-cmf/phact/src/Phact/Application/Application.php:427 #1 Phact\Application\Application:provideModuleEvent in /var/www/u2564609/data/www/vendor/phact-cmf/phact/src/Phact/Application/Application.php:211 #0 Phact\Application\Application:run in /var/www/u2564609/data/www/www/index.php:23
Stack frames (23)
22
Doctrine\DBAL\Exception\ConnectionException
/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php113
21
Doctrine\DBAL\Driver\AbstractMySQLDriver convertException
/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php184
20
Doctrine\DBAL\DBALException wrapException
/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php169
19
Doctrine\DBAL\DBALException driverException
/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php47
18
Doctrine\DBAL\Driver\PDOException
/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php50
17
PDOException
/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php46
16
PDO __construct
/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php46
15
Doctrine\DBAL\Driver\PDOConnection __construct
/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php41
14
Doctrine\DBAL\Driver\PDOMySql\Driver connect
/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php389
13
Doctrine\DBAL\Connection connect
/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php453
12
Doctrine\DBAL\Connection getDatabasePlatformVersion
/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php413
11
Doctrine\DBAL\Connection detectDatabasePlatform
/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php357
10
Doctrine\DBAL\Connection getDatabasePlatform
/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php844
9
Doctrine\DBAL\Connection quoteIdentifier
/vendor/phact-cmf/phact/src/Phact/Orm/QueryLayer.php135
8
Phact\Orm\QueryLayer quote
/vendor/phact-cmf/phact/src/Phact/Orm/QueryLayer.php125
7
Phact\Orm\QueryLayer getQueryBuilder
/vendor/phact-cmf/phact/src/Phact/Orm/QueryLayer.php386
6
Phact\Orm\QueryLayer get
/vendor/phact-cmf/phact/src/Phact/Orm/QuerySet.php247
5
Phact\Orm\QuerySet get
/vendor/phact-cmf/phact/src/Phact/Orm/Manager.php95
4
Phact\Orm\Manager get
/app/Modules/Redirect/RedirectModule.php35
3
Modules\Redirect\RedirectModule onApplicationRun
/vendor/phact-cmf/phact/src/Phact/Application/Application.php427
2
call_user_func_array
/vendor/phact-cmf/phact/src/Phact/Application/Application.php427
1
Phact\Application\Application provideModuleEvent
/vendor/phact-cmf/phact/src/Phact/Application/Application.php211
0
Phact\Application\Application run
/www/index.php23
/var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php
            case '1382':
            case '1479':
            case '1541':
            case '1554':
            case '1626':
                return new Exception\SyntaxErrorException($message, $exception);
 
            case '1044':
            case '1045':
            case '1046':
            case '1049':
            case '1095':
            case '1142':
            case '1143':
            case '1227':
            case '1370':
            case '1429':
            case '2002':
            case '2005':
                return new Exception\ConnectionException($message, $exception);
 
            case '1048':
            case '1121':
            case '1138':
            case '1171':
            case '1252':
            case '1263':
            case '1364':
            case '1566':
                return new Exception\NotNullConstraintViolationException($message, $exception);
        }
 
        return new Exception\DriverException($message, $exception);
    }
 
    /**
     * {@inheritdoc}
     *
     * @throws DBALException
     */
/var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php
     * @return \Doctrine\DBAL\DBALException
     */
    public static function driverException(Driver $driver, \Exception $driverEx)
    {
        return static::wrapException($driver, $driverEx, "An exception occurred in driver: " . $driverEx->getMessage());
    }
 
    /**
     * @param \Doctrine\DBAL\Driver $driver
     * @param \Exception            $driverEx
     *
     * @return \Doctrine\DBAL\DBALException
     */
    private static function wrapException(Driver $driver, \Exception $driverEx, $msg)
    {
        if ($driverEx instanceof Exception\DriverException) {
            return $driverEx;
        }
        if ($driver instanceof ExceptionConverterDriver && $driverEx instanceof Driver\DriverException) {
            return $driver->convertException($msg, $driverEx);
        }
 
        return new self($msg, 0, $driverEx);
    }
 
    /**
     * Returns a human-readable representation of an array of parameters.
     * This properly handles binary data by returning a hex representation.
     *
     * @param array $params
     *
     * @return string
     */
    private static function formatParameters(array $params)
    {
        return '[' . implode(', ', array_map(function ($param) {
            if (is_resource($param)) {
                return (string) $param;
            }
            
/var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php
    public static function driverExceptionDuringQuery(Driver $driver, \Exception $driverEx, $sql, array $params = [])
    {
        $msg = "An exception occurred while executing '".$sql."'";
        if ($params) {
            $msg .= " with params " . self::formatParameters($params);
        }
        $msg .= ":\n\n".$driverEx->getMessage();
 
        return static::wrapException($driver, $driverEx, $msg);
    }
 
    /**
     * @param \Doctrine\DBAL\Driver $driver
     * @param \Exception            $driverEx
     *
     * @return \Doctrine\DBAL\DBALException
     */
    public static function driverException(Driver $driver, \Exception $driverEx)
    {
        return static::wrapException($driver, $driverEx, "An exception occurred in driver: " . $driverEx->getMessage());
    }
 
    /**
     * @param \Doctrine\DBAL\Driver $driver
     * @param \Exception            $driverEx
     *
     * @return \Doctrine\DBAL\DBALException
     */
    private static function wrapException(Driver $driver, \Exception $driverEx, $msg)
    {
        if ($driverEx instanceof Exception\DriverException) {
            return $driverEx;
        }
        if ($driver instanceof ExceptionConverterDriver && $driverEx instanceof Driver\DriverException) {
            return $driver->convertException($msg, $driverEx);
        }
 
        return new self($msg, 0, $driverEx);
    }
 
/var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php
 * PDO MySql driver.
 *
 * @since 2.0
 */
class Driver extends AbstractMySQLDriver
{
    /**
     * {@inheritdoc}
     */
    public function connect(array $params, $username = null, $password = null, array $driverOptions = [])
    {
        try {
            $conn = new PDOConnection(
                $this->constructPdoDsn($params),
                $username,
                $password,
                $driverOptions
            );
        } catch (PDOException $e) {
            throw DBALException::driverException($this, $e);
        }
 
        return $conn;
    }
 
    /**
     * Constructs the MySql PDO DSN.
     *
     * @param array $params
     *
     * @return string The DSN.
     */
    protected function constructPdoDsn(array $params)
    {
        $dsn = 'mysql:';
        if (isset($params['host']) && $params['host'] != '') {
            $dsn .= 'host=' . $params['host'] . ';';
        }
        if (isset($params['port'])) {
            $dsn .= 'port=' . $params['port'] . ';';
/var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php
 * @since 2.0
 */
class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
{
    /**
     * @param string      $dsn
     * @param string|null $user
     * @param string|null $password
     * @param array|null  $options
     *
     * @throws PDOException in case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, array $options = null)
    {
        try {
            parent::__construct($dsn, $user, $password, $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, ['Doctrine\DBAL\Driver\PDOStatement', []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function exec($statement)
    {
        try {
            return parent::exec($statement);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function getServerVersion()
    {
/var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php
/**
 * PDO implementation of the Connection interface.
 * Used by all PDO-based drivers.
 *
 * @since 2.0
 */
class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
{
    /**
     * @param string      $dsn
     * @param string|null $user
     * @param string|null $password
     * @param array|null  $options
     *
     * @throws PDOException in case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, array $options = null)
    {
        try {
            parent::__construct($dsn, $user, $password, $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, ['Doctrine\DBAL\Driver\PDOStatement', []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function exec($statement)
    {
        try {
            return parent::exec($statement);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
/var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php
/**
 * PDO implementation of the Connection interface.
 * Used by all PDO-based drivers.
 *
 * @since 2.0
 */
class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
{
    /**
     * @param string      $dsn
     * @param string|null $user
     * @param string|null $password
     * @param array|null  $options
     *
     * @throws PDOException in case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, array $options = null)
    {
        try {
            parent::__construct($dsn, $user, $password, $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, ['Doctrine\DBAL\Driver\PDOStatement', []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function exec($statement)
    {
        try {
            return parent::exec($statement);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
/var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php
use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Driver\AbstractMySQLDriver;
use Doctrine\DBAL\Driver\PDOConnection;
use PDOException;
 
/**
 * PDO MySql driver.
 *
 * @since 2.0
 */
class Driver extends AbstractMySQLDriver
{
    /**
     * {@inheritdoc}
     */
    public function connect(array $params, $username = null, $password = null, array $driverOptions = [])
    {
        try {
            $conn = new PDOConnection(
                $this->constructPdoDsn($params),
                $username,
                $password,
                $driverOptions
            );
        } catch (PDOException $e) {
            throw DBALException::driverException($this, $e);
        }
 
        return $conn;
    }
 
    /**
     * Constructs the MySql PDO DSN.
     *
     * @param array $params
     *
     * @return string The DSN.
     */
    protected function constructPdoDsn(array $params)
    {
/var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php
        return $this->_expr;
    }
 
    /**
     * Establishes the connection with the database.
     *
     * @return bool TRUE if the connection was successfully established, FALSE if
     *              the connection is already open.
     */
    public function connect()
    {
        if ($this->_isConnected) {
            return false;
        }
 
        $driverOptions = $this->_params['driverOptions'] ?? [];
        $user = $this->_params['user'] ?? null;
        $password = $this->_params['password'] ?? null;
 
        $this->_conn = $this->_driver->connect($this->_params, $user, $password, $driverOptions);
        $this->_isConnected = true;
 
        if (false === $this->autoCommit) {
            $this->beginTransaction();
        }
 
        if ($this->_eventManager->hasListeners(Events::postConnect)) {
            $eventArgs = new Event\ConnectionEventArgs($this);
            $this->_eventManager->dispatchEvent(Events::postConnect, $eventArgs);
        }
 
        return true;
    }
 
    /**
     * Detects and sets the database platform.
     *
     * Evaluates custom platform class and version in order to set the correct platform.
     *
     * @throws DBALException if an invalid platform was specified for this connection.
/var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php
     * @return string|null
     *
     * @throws Exception
     */
    private function getDatabasePlatformVersion()
    {
        // Driver does not support version specific platforms.
        if ( ! $this->_driver instanceof VersionAwarePlatformDriver) {
            return null;
        }
 
        // Explicit platform version requested (supersedes auto-detection).
        if (isset($this->_params['serverVersion'])) {
            return $this->_params['serverVersion'];
        }
 
        // If not connected, we need to connect now to determine the platform version.
        if (null === $this->_conn) {
            try {
                $this->connect();
            } catch (\Exception $originalException) {
                if (empty($this->_params['dbname'])) {
                    throw $originalException;
                }
 
                // The database to connect to might not yet exist.
                // Retry detection without database name connection parameter.
                $databaseName = $this->_params['dbname'];
                $this->_params['dbname'] = null;
 
                try {
                    $this->connect();
                } catch (\Exception $fallbackException) {
                    // Either the platform does not support database-less connections
                    // or something else went wrong.
                    // Reset connection parameters and rethrow the original exception.
                    $this->_params['dbname'] = $databaseName;
 
                    throw $originalException;
                }
/var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php
        }
 
        if ($this->_eventManager->hasListeners(Events::postConnect)) {
            $eventArgs = new Event\ConnectionEventArgs($this);
            $this->_eventManager->dispatchEvent(Events::postConnect, $eventArgs);
        }
 
        return true;
    }
 
    /**
     * Detects and sets the database platform.
     *
     * Evaluates custom platform class and version in order to set the correct platform.
     *
     * @throws DBALException if an invalid platform was specified for this connection.
     */
    private function detectDatabasePlatform()
    {
        $version = $this->getDatabasePlatformVersion();
 
        if ($version !== null) {
            assert($this->_driver instanceof VersionAwarePlatformDriver);
 
            $this->platform = $this->_driver->createDatabasePlatformForVersion($version);
        } else {
            $this->platform = $this->_driver->getDatabasePlatform();
        }
 
        $this->platform->setEventManager($this->_eventManager);
    }
 
    /**
     * Returns the version of the related platform if applicable.
     *
     * Returns null if either the driver is not capable to create version
     * specific platform instances, no explicit server version was specified
     * or the underlying driver connection cannot determine the platform
     * version without having to query it (performance reasons).
     *
/var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php
     * Gets the EventManager used by the Connection.
     *
     * @return \Doctrine\Common\EventManager
     */
    public function getEventManager()
    {
        return $this->_eventManager;
    }
 
    /**
     * Gets the DatabasePlatform for the connection.
     *
     * @return \Doctrine\DBAL\Platforms\AbstractPlatform
     *
     * @throws \Doctrine\DBAL\DBALException
     */
    public function getDatabasePlatform()
    {
        if (null === $this->platform) {
            $this->detectDatabasePlatform();
        }
 
        return $this->platform;
    }
 
    /**
     * Gets the ExpressionBuilder for the connection.
     *
     * @return \Doctrine\DBAL\Query\Expression\ExpressionBuilder
     */
    public function getExpressionBuilder()
    {
        return $this->_expr;
    }
 
    /**
     * Establishes the connection with the database.
     *
     * @return bool TRUE if the connection was successfully established, FALSE if
     *              the connection is already open.
/var/www/u2564609/data/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php
        return $typeValues;
    }
 
    /**
     * Quotes a string so it can be safely used as a table or column name, even if
     * it is a reserved name.
     *
     * Delimiting style depends on the underlying database platform that is being used.
     *
     * NOTE: Just because you CAN use quoted identifiers does not mean
     * you SHOULD use them. In general, they end up causing way more
     * problems than they solve.
     *
     * @param string $str The name to be quoted.
     *
     * @return string The quoted name.
     */
    public function quoteIdentifier($str)
    {
        return $this->getDatabasePlatform()->quoteIdentifier($str);
    }
 
    /**
     * Quotes a given input parameter.
     *
     * @param mixed    $input The parameter to be quoted.
     * @param int|null $type  The type of the parameter.
     *
     * @return string The quoted parameter.
     */
    public function quote($input, $type = null)
    {
        $this->connect();
 
        list($value, $bindingType) = $this->getBindingInfo($input, $type);
 
        return $this->_conn->quote($value, $bindingType);
    }
 
    /**
/var/www/u2564609/data/www/vendor/phact-cmf/phact/src/Phact/Orm/QueryLayer.php
        return $this->getQuery()->getQueryBuilder();
    }
 
    /**
     * @return DBALQueryBuilder
     */
    public function getQueryBuilder()
    {
        $qb = $this->getQueryBuilderRaw();
        return $qb->from($this->quote($this->getTableName()));
    }
 
    public function quoteValue($value)
    {
        return $this->getQuery()->getConnection()->quote($value);
    }
 
    public function quote($value)
    {
        return $this->getQuery()->getConnection()->quoteIdentifier($value);
    }
 
    public function setAliases()
    {
        $this->_aliases = [];
        $relations = $this->getQuerySet()->getRelations();
        foreach ($relations as $relationName => $relation) {
            if (isset($relation['joins']) && is_array($relation['joins'])) {
                foreach ($relation['joins'] as $join) {
                    if (is_array($join) && isset($join['table'])) {
                        $tableName = $join['table'];
                        $this->setAlias($relationName, $tableName);
                    }
                }
            }
        }
    }
 
    public function getAliases()
    {
/var/www/u2564609/data/www/vendor/phact-cmf/phact/src/Phact/Orm/QueryLayer.php
    /**
     * @return string
     */
    public function getTableName()
    {
        return $this->getModel()->getTableName();
    }
 
    public function getQueryBuilderRaw()
    {
        return $this->getQuery()->getQueryBuilder();
    }
 
    /**
     * @return DBALQueryBuilder
     */
    public function getQueryBuilder()
    {
        $qb = $this->getQueryBuilderRaw();
        return $qb->from($this->quote($this->getTableName()));
    }
 
    public function quoteValue($value)
    {
        return $this->getQuery()->getConnection()->quote($value);
    }
 
    public function quote($value)
    {
        return $this->getQuery()->getConnection()->quoteIdentifier($value);
    }
 
    public function setAliases()
    {
        $this->_aliases = [];
        $relations = $this->getQuerySet()->getRelations();
        foreach ($relations as $relationName => $relation) {
            if (isset($relation['joins']) && is_array($relation['joins'])) {
                foreach ($relation['joins'] as $join) {
                    if (is_array($join) && isset($join['table'])) {
/var/www/u2564609/data/www/vendor/phact-cmf/phact/src/Phact/Orm/QueryLayer.php
        if ($sql) {
            return $this->getSQL($queryBuilder);
        }
        $result = $queryBuilder->execute()->fetchAll();
        return $result;
    }
 
    public function rawAll($query, $bindings = [])
    {
        return $this->getQueryBuilder()->getConnection()->fetchAll($query, $bindings);
    }
 
    public function rawGet($query, $bindings = [])
    {
        return $this->getQueryBuilder()->getConnection()->fetchAssoc($query, $bindings);
    }
 
    public function get($sql = false)
    {
        $queryBuilder = $this->getQueryBuilder();
        $qs = $this->getQuerySet();
 
        $this->buildQuery($queryBuilder);
 
        $select = $qs->getSelect();
        list($select, $bindings) = $this->buildSelect($select);
        $queryBuilder->select($select);
        $this->addBindings($queryBuilder, $bindings);
 
        if ($sql) {
            return $this->getSQL($queryBuilder);
        }
 
        $result = $queryBuilder->execute()->fetch();
        return $result;
    }
 
    public function defaultSelect()
    {
        $select = [];
/var/www/u2564609/data/www/vendor/phact-cmf/phact/src/Phact/Orm/QuerySet.php
        return $data;
    }
 
    public function allSql()
    {
        return $this->getQueryLayer()->all(true);
    }
 
    public function rawAll($query, $params = [])
    {
        $data = $this->getQueryLayer()->rawAll($query, $params);
        return $this->createModels($data);
    }
    
    /**
     * @return null|Model
     */
    public function get()
    {
        $row = $this->getQueryLayer()->get();
        return $row ? $this->createModel($row) : null;
    }
 
    public function rawGet($query, $params = [])
    {
        $row = $this->getQueryLayer()->rawGet($query, $params);
        return $row ? $this->createModel($row) : null;
    }
 
    public function getSql()
    {
        return $this->getQueryLayer()->get(true);
    }
 
    public function getAggregation()
    {
        return $this->_aggregation;
    }
 
    public function aggregate(Aggregation $aggregation)
/var/www/u2564609/data/www/vendor/phact-cmf/phact/src/Phact/Orm/Manager.php
        ]);
    }
 
    /**
     * @return \Phact\Orm\QuerySet
     * @throws \Phact\Exceptions\InvalidConfigException
     */
    public function getQuerySet(): QuerySet
    {
        return $this->_querySet ?: $this->createQuerySet();
    }
 
    public function all()
    {
        return $this->getQuerySet()->all();
    }
 
    public function get()
    {
        return $this->getQuerySet()->get();
    }
 
    public function count()
    {
        return $this->getQuerySet()->count();
    }
 
    public function sum($attribute)
    {
        return $this->getQuerySet()->sum($attribute);
    }
 
    public function max($attribute)
    {
        return $this->getQuerySet()->max($attribute);
    }
 
    public function avg($attribute)
    {
        return $this->getQuerySet()->avg($attribute);
/var/www/u2564609/data/www/app/Modules/Redirect/RedirectModule.php
use Phact\Main\Phact;
use Phact\Module\Module;
use Modules\Admin\Traits\AdminTrait;
 
class RedirectModule extends Module implements AdminMenuInterface
{
    use AdminTrait;
 
    public function onApplicationRun()
    {
        parent::onApplicationRun();
        if (Phact::app()->getIsWebMode()) {
            $request = Phact::app()->request;
            $path = urldecode($request->getUrl());
 
            $pathTrimmed = rtrim($path, '/');
 
            $redirect = Redirect::objects()->filter([
                'from' => $path
            ])->limit(1)->get();
 
            if ($redirect && $redirect->to) {
                $request->redirect($redirect->to);
            }
        }
    }
 
    public function getVerboseName()
    {
        return 'Перенаправления';
    }
}
 
/var/www/u2564609/data/www/vendor/phact-cmf/phact/src/Phact/Application/Application.php
     * @throws Exception
     */
    protected function eventTrigger($name, $params = array(), $sender = null, $callback = null)
    {
        if ($this->hasComponent(EventManager::class)) {
            $eventManager = $this->getComponent(EventManager::class);
            $eventManager->trigger($name, $params, $sender, $callback);
        }
    }
 
    /**
     * Call modules events
     *
     * @param $event
     * @param array $args
     */
    protected function provideModuleEvent($event, $args = [])
    {
        foreach ($this->getModules() as $name => $module) {
            call_user_func_array([$module, $event], $args);
        }
    }
 
    /**
     * @param string $name
     * @return LoggerInterface|null
     */
    public function getLogger($name = 'default')
    {
        $name = "logger.{$name}";
        if ($this->_container->has($name) && ($logger = $this->_container->get($name)) && ($logger instanceof LoggerInterface)) {
            return $logger;
        }
        return null;
    }
}
/var/www/u2564609/data/www/vendor/phact-cmf/phact/src/Phact/Application/Application.php
     * @throws Exception
     */
    protected function eventTrigger($name, $params = array(), $sender = null, $callback = null)
    {
        if ($this->hasComponent(EventManager::class)) {
            $eventManager = $this->getComponent(EventManager::class);
            $eventManager->trigger($name, $params, $sender, $callback);
        }
    }
 
    /**
     * Call modules events
     *
     * @param $event
     * @param array $args
     */
    protected function provideModuleEvent($event, $args = [])
    {
        foreach ($this->getModules() as $name => $module) {
            call_user_func_array([$module, $event], $args);
        }
    }
 
    /**
     * @param string $name
     * @return LoggerInterface|null
     */
    public function getLogger($name = 'default')
    {
        $name = "logger.{$name}";
        if ($this->_container->has($name) && ($logger = $this->_container->get($name)) && ($logger instanceof LoggerInterface)) {
            return $logger;
        }
        return null;
    }
}
/var/www/u2564609/data/www/vendor/phact-cmf/phact/src/Phact/Application/Application.php
            }
        }
    }
 
    /**
     * Check or create system path
     *
     * @param $path
     * @return bool
     */
    protected function setUpPath($path): bool
    {
        return is_dir($path) || mkdir($path, 0755, true);
    }
 
    public function run()
    {
        $this->logDebug("Application run");
        $this->eventTrigger("application.beforeRun", [], $this);
        $this->provideModuleEvent('onApplicationRun');
        register_shutdown_function([$this, 'end'], 0);
        $this->logDebug("Start handling request");
        $this->handleRequest();
        $this->end();
    }
 
    public function end($status = 0, $response = null)
    {
        $this->eventTrigger("application.beforeEnd", [], $this);
        $this->provideModuleEvent('onApplicationEnd', [$status, $response]);
        exit($status);
    }
 
    public function handleRequest()
    {
        if ($this->getIsWebMode()) {
            $this->handleWebRequest();
        } else {
            $this->handleCliRequest();
        }
/var/www/u2564609/data/www/www/index.php
 
$configPath = __DIR__ . '/../app/config/settings.php';
$localConfigPath = __DIR__ . '/../app/config/local_settings.php';
 
$debug = false;
if (is_file($localConfigPath)) {
    $configPath = $localConfigPath;
    $debug = true;
}
 
if(isset($_SERVER['REMOTE_ADDR'])){
    if($_SERVER['REMOTE_ADDR']=='92.204.184.204') $debug = true;
}
 
 
define("PHACT_DEBUG", $debug);
 
$config = include $configPath;
\Phact\Main\Phact::init($config);
\Phact\Main\Phact::app()->run();

Environment & details:

empty
empty
empty
empty
empty
Key Value
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
SCRIPT_NAME /index.php
REQUEST_URI /shop/elektrodvigateli-reduktory-i-motor-reduktory/elektrodvigateli-obshhego-polzovaniya/ip55-%E2%80%93-%D1%87%D1%83%D0%B3%D1%83%D0%BD%D0%BD%D1%8B%D0%B9-%D0%BA%D0%BE%D1%80%D0%BF%D1%83%D1%81-%E2%80%93-%D1%81%D1%82%D0%B0%D0%BD%D0%B4%D0%B0%D1%80%D1%82-%D1%8D%D1%84%D1%84%D0%B5%D0%BA%D1%82%D0%B8%D0%B2%D0%BD%D0%BE%D1%81%D1%82%D0%B8---ie1
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /shop/elektrodvigateli-reduktory-i-motor-reduktory/elektrodvigateli-obshhego-polzovaniya/ip55-–-чугунный-корпус-–-стандарт-эффективности---ie1
REMOTE_PORT 35990
SCRIPT_FILENAME /var/www/u2564609/data/www/energis.ru/index.php
SERVER_ADMIN energis@energis.ru
CONTEXT_DOCUMENT_ROOT /var/www/u2564609/data/www/energis.ru
CONTEXT_PREFIX
DOCUMENT_ROOT /var/www/u2564609/data/www/energis.ru
REMOTE_ADDR 3.234.177.119
SERVER_PORT 80
SERVER_ADDR 127.0.0.1
SERVER_NAME energis.ru
SERVER_SOFTWARE Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 Phusion_Passenger/5.3.7
SERVER_SIGNATURE
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_CONNECTION close
HTTP_X_FORWARDED_PORT 80
HTTP_X_FORWARDED_PROTO http
HTTP_HOST energis.ru
PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins
REQUEST_SCHEME http
HTTPS off
UNIQUE_ID ZgVXx7-Z3xVlneopQwW9PQAAANY
REDIRECT_STATUS 200
REDIRECT_PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins
REDIRECT_REQUEST_SCHEME http
REDIRECT_HTTPS off
REDIRECT_UNIQUE_ID ZgVXx7-Z3xVlneopQwW9PQAAANY
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711626183.7556
REQUEST_TIME 1711626183
argv Array ( )
argc 0
Key Value
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
SCRIPT_NAME /index.php
REQUEST_URI /shop/elektrodvigateli-reduktory-i-motor-reduktory/elektrodvigateli-obshhego-polzovaniya/ip55-%E2%80%93-%D1%87%D1%83%D0%B3%D1%83%D0%BD%D0%BD%D1%8B%D0%B9-%D0%BA%D0%BE%D1%80%D0%BF%D1%83%D1%81-%E2%80%93-%D1%81%D1%82%D0%B0%D0%BD%D0%B4%D0%B0%D1%80%D1%82-%D1%8D%D1%84%D1%84%D0%B5%D0%BA%D1%82%D0%B8%D0%B2%D0%BD%D0%BE%D1%81%D1%82%D0%B8---ie1
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /shop/elektrodvigateli-reduktory-i-motor-reduktory/elektrodvigateli-obshhego-polzovaniya/ip55-–-чугунный-корпус-–-стандарт-эффективности---ie1
REMOTE_PORT 35990
SCRIPT_FILENAME /var/www/u2564609/data/www/energis.ru/index.php
SERVER_ADMIN energis@energis.ru
CONTEXT_DOCUMENT_ROOT /var/www/u2564609/data/www/energis.ru
CONTEXT_PREFIX
DOCUMENT_ROOT /var/www/u2564609/data/www/energis.ru
REMOTE_ADDR 3.234.177.119
SERVER_PORT 80
SERVER_ADDR 127.0.0.1
SERVER_NAME energis.ru
SERVER_SOFTWARE Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 Phusion_Passenger/5.3.7
SERVER_SIGNATURE
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_CONNECTION close
HTTP_X_FORWARDED_PORT 80
HTTP_X_FORWARDED_PROTO http
HTTP_HOST energis.ru
PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins
REQUEST_SCHEME http
HTTPS off
UNIQUE_ID ZgVXx7-Z3xVlneopQwW9PQAAANY
REDIRECT_STATUS 200
REDIRECT_PERL5LIB /usr/share/awstats/lib:/usr/share/awstats/plugins
REDIRECT_REQUEST_SCHEME http
REDIRECT_HTTPS off
REDIRECT_UNIQUE_ID ZgVXx7-Z3xVlneopQwW9PQAAANY
FCGI_ROLE RESPONDER
0. Phact\Main\ExceptionPageHandler
1. Whoops\Handler\CallbackHandler