This is an internal Agavi exception. Please consult the documentation for assistance with solving this issue.
An exception of type AgaviDatabaseException was thrown, but did not get caught during the execution of the request. You will find information provided by the exception along with a stack trace below.
mysql extension not loaded [User Info: Array]
} catch(SQLException $e) {
// the connection's foobar'd
throw new AgaviDatabaseException($e->toString());
}
}
public function getConnection()
{
if($this->connection === null) {
$this->connect();
}
return $this->connection;
public function getDatabaseConnection($name = 'default')
{
if($this->databaseManager !== null) {
return $this->databaseManager->getDatabase($name)->getConnection();
}
}
public function getContent( $intId, $intLangId )
{
$connection = $this->context->getDatabaseConnection() ;
$sql = 'SELECT * FROM contents WHERE contentId = '.$intId.' AND languageId = '.$intLangId;
};
$content = $this->getContext()->getModel('Content', 'Content')->getContent( 1, $lang_id );
if($content !== null) {
$this->setAttribute('subject', $content['subject']);
$this->setAttribute('content', $content['content']);
if($actionInstance->$validateMethod($requestData) && $validated) {
// execute the action
$key = $request->toggleLock();
$viewName = $actionInstance->$executeMethod($requestData);
$request->toggleLock($key);
} else {
// validation failed
} else {
// $lm->log('Action not cached, executing...');
// execute the Action and get the View to execute
list($actionCache['view_module'], $actionCache['view_name']) = $this->runAction($container);
// check if the returned view is cacheable
if($isCacheable && is_array($config['views']) && !in_array(array('module' => $actionCache['view_module'], 'name' => $actionCache['view_name']), $config['views'], true)) {
*/
public function executeOnce(AgaviFilterChain $filterChain, AgaviExecutionContainer $container)
{
$this->execute($filterChain, $container);
}
/**
$filter = $this->chain[$this->index];
$count = ++self::$filterLog[$this->filterLogKey][get_class($filter)];
if($count == 1) {
$filter->executeOnce($this, $container);
} else {
$filter->execute($this, $container);
}
$replace = $this->getParameter('replace', false);
$start = microtime(true);
$filterChain->execute($container);
$outputTypes = (array) $this->getParameter('output_types');
if(is_array($outputTypes) && !in_array($container->getOutputType()->getName(), $outputTypes)) {
$filter = $this->chain[$this->index];
$count = ++self::$filterLog[$this->filterLogKey][get_class($filter)];
if($count == 1) {
$filter->executeOnce($this, $container);
} else {
$filter->execute($this, $container);
}
$filterChain->register($controller->getFilter('execution'));
// process the filter chain
$filterChain->execute($this);
}
// restore autoloads
*/
public function execute(AgaviFilterChain $filterChain, AgaviExecutionContainer $container)
{
$container->setResponse($container->execute());
}
}
*/
public function executeOnce(AgaviFilterChain $filterChain, AgaviExecutionContainer $container)
{
$this->execute($filterChain, $container);
}
/**
$filter = $this->chain[$this->index];
$count = ++self::$filterLog[$this->filterLogKey][get_class($filter)];
if($count == 1) {
$filter->executeOnce($this, $container);
} else {
$filter->execute($this, $container);
}
*/
public function executeOnce(AgaviFilterChain $filterChain, AgaviExecutionContainer $container)
{
$filterChain->execute($container);
$response = $container->getResponse();
$filter = $this->chain[$this->index];
$count = ++self::$filterLog[$this->filterLogKey][get_class($filter)];
if($count == 1) {
$filter->executeOnce($this, $container);
} else {
$filter->execute($this, $container);
}
$filterChain->register($this->filters['dispatch']);
// go, go, go!
$filterChain->execute($container);
$response = $container->getResponse();
$response->merge($this->response);
// +---------------------------------------------------------------------------+
// | Call the controller's dispatch method on the default context |
// +---------------------------------------------------------------------------+
AgaviContext::getInstance('web')->getController()->dispatch();
?>