$connectionClass = $defaultConnectionClass;
}
try {
$adapterConnection = $adapter->getConnection($configuration);
} catch (AdapterException $e) {
throw new ConnectionException('Unable to open connection', 0, $e);
}
/** @var \Propel\Runtime\Connection\ConnectionInterface $connection */
$connection = new $connectionClass($adapterConnection);
// load any connection options from the config file
* @return mixed the result, formatted by the current formatter
*/
public function findOne(?ConnectionInterface $con = null)
{
if ($con === null) {
$con = Propel::getServiceContainer()->getReadConnection($this->getDbName());
}
$this->basePreSelect($con);
$criteria = $this->isKeepQuery() ? clone $this : $this;
$criteria->limit(1);
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
try {
$con = new PdoConnection($dsn, $user, $password, $driver_options);
$this->initConnection($con, isset($conparams['settings']) && is_array($conparams['settings']) ? $conparams['settings'] : []);
} catch (PDOException $e) {
throw new AdapterException('Unable to open PDO connection', 0, $e);
}
return $con;
}
$connectionClass = $configuration['classname'];
} else {
$connectionClass = $defaultConnectionClass;
}
try {
$adapterConnection = $adapter->getConnection($configuration);
} catch (AdapterException $e) {
throw new ConnectionException('Unable to open connection', 0, $e);
}
/** @var \Propel\Runtime\Connection\ConnectionInterface $connection */
$connection = new $connectionClass($adapterConnection);
* @return mixed the result, formatted by the current formatter
*/
public function findOne(?ConnectionInterface $con = null)
{
if ($con === null) {
$con = Propel::getServiceContainer()->getReadConnection($this->getDbName());
}
$this->basePreSelect($con);
$criteria = $this->isKeepQuery() ? clone $this : $this;
$criteria->limit(1);
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
$driver_options[$option] = $value;
}
}
try {
$con = new PdoConnection($dsn, $user, $password, $driver_options);
$this->initConnection($con, isset($conparams['settings']) && is_array($conparams['settings']) ? $conparams['settings'] : []);
} catch (PDOException $e) {
throw new AdapterException('Unable to open PDO connection', 0, $e);
}
$connectionClass = $configuration['classname'];
} else {
$connectionClass = $defaultConnectionClass;
}
try {
$adapterConnection = $adapter->getConnection($configuration);
} catch (AdapterException $e) {
throw new ConnectionException('Unable to open connection', 0, $e);
}
/** @var \Propel\Runtime\Connection\ConnectionInterface $connection */
$connection = new $connectionClass($adapterConnection);
* @return mixed the result, formatted by the current formatter
*/
public function findOne(?ConnectionInterface $con = null)
{
if ($con === null) {
$con = Propel::getServiceContainer()->getReadConnection($this->getDbName());
}
$this->basePreSelect($con);
$criteria = $this->isKeepQuery() ? clone $this : $this;
$criteria->limit(1);
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
No log messages
[3/3] ConnectionException |
---|
Propel\Runtime\Connection\Exception\ConnectionException: Unable to open connection at vendor/propel/propel/src/Propel/Runtime/Connection/ConnectionFactory.php:42 at Propel\Runtime\Connection\ConnectionFactory::create(array('adapter' => 'mysql', 'classname' => 'Propel\\Runtime\\Connection\\DebugPDO', 'dsn' => 'mysql:host=localhost;dbname=abilityclassified;port=3306', 'user' => 'root', 'password' => '', 'attributes' => array('ATTR_EMULATE_PREPARES' => false), 'options' => array('ATTR_PERSISTENT' => false), 'model_paths' => array('src', 'vendor'), 'slaves' => array()), object(MysqlAdapter)) (vendor/propel/propel/src/Propel/Runtime/Connection/ConnectionManagerSingle.php:96) at Propel\Runtime\Connection\ConnectionManagerSingle->getWriteConnection(object(MysqlAdapter)) (vendor/propel/propel/src/Propel/Runtime/Connection/ConnectionManagerSingle.php:110) at Propel\Runtime\Connection\ConnectionManagerSingle->getReadConnection(object(MysqlAdapter)) (vendor/propel/propel/src/Propel/Runtime/ServiceContainer/StandardServiceContainer.php:396) at Propel\Runtime\ServiceContainer\StandardServiceContainer->getReadConnection('default') (vendor/propel/propel/src/Propel/Runtime/ActiveQuery/ModelCriteria.php:1143) at Propel\Runtime\ActiveQuery\ModelCriteria->findOne() (src/Controller/Home/AdController.php:403) at App\Controller\Home\AdController->category(object(Request), 'assistive-technology') (vendor/symfony/http-kernel/HttpKernel.php:158) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:80) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (public/index.php:96) |
[2/3] AdapterException |
---|
Propel\Runtime\Adapter\Exception\AdapterException: Unable to open PDO connection at vendor/propel/propel/src/Propel/Runtime/Adapter/Pdo/PdoAdapter.php:72 at Propel\Runtime\Adapter\Pdo\PdoAdapter->getConnection(array('adapter' => 'mysql', 'classname' => 'Propel\\Runtime\\Connection\\DebugPDO', 'dsn' => 'mysql:host=localhost;dbname=abilityclassified;port=3306', 'user' => 'root', 'password' => '', 'attributes' => array('ATTR_EMULATE_PREPARES' => false), 'options' => array('ATTR_PERSISTENT' => false), 'model_paths' => array('src', 'vendor'), 'slaves' => array())) (vendor/propel/propel/src/Propel/Runtime/Connection/ConnectionFactory.php:40) at Propel\Runtime\Connection\ConnectionFactory::create(array('adapter' => 'mysql', 'classname' => 'Propel\\Runtime\\Connection\\DebugPDO', 'dsn' => 'mysql:host=localhost;dbname=abilityclassified;port=3306', 'user' => 'root', 'password' => '', 'attributes' => array('ATTR_EMULATE_PREPARES' => false), 'options' => array('ATTR_PERSISTENT' => false), 'model_paths' => array('src', 'vendor'), 'slaves' => array()), object(MysqlAdapter)) (vendor/propel/propel/src/Propel/Runtime/Connection/ConnectionManagerSingle.php:96) at Propel\Runtime\Connection\ConnectionManagerSingle->getWriteConnection(object(MysqlAdapter)) (vendor/propel/propel/src/Propel/Runtime/Connection/ConnectionManagerSingle.php:110) at Propel\Runtime\Connection\ConnectionManagerSingle->getReadConnection(object(MysqlAdapter)) (vendor/propel/propel/src/Propel/Runtime/ServiceContainer/StandardServiceContainer.php:396) at Propel\Runtime\ServiceContainer\StandardServiceContainer->getReadConnection('default') (vendor/propel/propel/src/Propel/Runtime/ActiveQuery/ModelCriteria.php:1143) at Propel\Runtime\ActiveQuery\ModelCriteria->findOne() (src/Controller/Home/AdController.php:403) at App\Controller\Home\AdController->category(object(Request), 'assistive-technology') (vendor/symfony/http-kernel/HttpKernel.php:158) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:80) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (public/index.php:96) |
[1/3] PDOException |
---|
PDOException: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) at vendor/propel/propel/src/Propel/Runtime/Connection/PdoConnection.php:82 at PDO->__construct('mysql:host=localhost;dbname=abilityclassified;port=3306', 'root', '', array(false)) (vendor/propel/propel/src/Propel/Runtime/Connection/PdoConnection.php:82) at Propel\Runtime\Connection\PdoConnection->__construct('mysql:host=localhost;dbname=abilityclassified;port=3306', 'root', '', array('ATTR_PERSISTENT' => false)) (vendor/propel/propel/src/Propel/Runtime/Adapter/Pdo/PdoAdapter.php:69) at Propel\Runtime\Adapter\Pdo\PdoAdapter->getConnection(array('adapter' => 'mysql', 'classname' => 'Propel\\Runtime\\Connection\\DebugPDO', 'dsn' => 'mysql:host=localhost;dbname=abilityclassified;port=3306', 'user' => 'root', 'password' => '', 'attributes' => array('ATTR_EMULATE_PREPARES' => false), 'options' => array('ATTR_PERSISTENT' => false), 'model_paths' => array('src', 'vendor'), 'slaves' => array())) (vendor/propel/propel/src/Propel/Runtime/Connection/ConnectionFactory.php:40) at Propel\Runtime\Connection\ConnectionFactory::create(array('adapter' => 'mysql', 'classname' => 'Propel\\Runtime\\Connection\\DebugPDO', 'dsn' => 'mysql:host=localhost;dbname=abilityclassified;port=3306', 'user' => 'root', 'password' => '', 'attributes' => array('ATTR_EMULATE_PREPARES' => false), 'options' => array('ATTR_PERSISTENT' => false), 'model_paths' => array('src', 'vendor'), 'slaves' => array()), object(MysqlAdapter)) (vendor/propel/propel/src/Propel/Runtime/Connection/ConnectionManagerSingle.php:96) at Propel\Runtime\Connection\ConnectionManagerSingle->getWriteConnection(object(MysqlAdapter)) (vendor/propel/propel/src/Propel/Runtime/Connection/ConnectionManagerSingle.php:110) at Propel\Runtime\Connection\ConnectionManagerSingle->getReadConnection(object(MysqlAdapter)) (vendor/propel/propel/src/Propel/Runtime/ServiceContainer/StandardServiceContainer.php:396) at Propel\Runtime\ServiceContainer\StandardServiceContainer->getReadConnection('default') (vendor/propel/propel/src/Propel/Runtime/ActiveQuery/ModelCriteria.php:1143) at Propel\Runtime\ActiveQuery\ModelCriteria->findOne() (src/Controller/Home/AdController.php:403) at App\Controller\Home\AdController->category(object(Request), 'assistive-technology') (vendor/symfony/http-kernel/HttpKernel.php:158) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:80) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (public/index.php:96) |