Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Bonk. I move my site to a new vps,then this happened. Another wordpress site works well.

Fatal Error in Gdn_Database.Connection();

An error occurred while attempting to connect to the database
could not find driver
The error occurred on or near: /home/wwwroot/pg/library/database/class.database.php
57: $this->_Connection = new PDO(strtolower($this->Engine) . ':' . $this->Dsn, $this->User, $this->Password, $this->ConnectionOptions);
58: if($this->ConnectionOptions[1002])
59: $this->Query($this->ConnectionOptions[1002]);
60: } catch (Exception $ex) {
61: trigger_error(ErrorMessage('An error occurred while attempting to connect to the database', $this->ClassName, 'Connection', $ex->getMessage()), E_USER_ERROR);
62: }
63: }
64:
65: return $this->_Connection;
Backtrace:
/home/wwwroot/pg/library/database/class.database.phpPHP::Gdn_ErrorHandler();
[/home/wwwroot/pg/library/database/class.database.php:61] PHP::trigger_error();
[/home/wwwroot/pg/library/database/class.database.php:283] Gdn_Database->Connection();
[/home/wwwroot/pg/library/database/class.sqldriver.php:1650] Gdn_Database->Query();
[/home/wwwroot/pg/library/database/class.sqldriver.php:676] Gdn_SQLDriver->Query();
[/home/wwwroot/pg/applications/dashboard/models/class.permissionmodel.php:476] Gdn_SQLDriver->Get();
[/home/wwwroot/pg/applications/dashboard/models/class.permissionmodel.php:188] PermissionModel->PermissionColumns();
[/home/wwwroot/pg/applications/dashboard/models/class.usermodel.php:234] PermissionModel->CachePermissions();
[/home/wwwroot/pg/library/core/class.session.php:318] UserModel->DefinePermissions();
[/home/wwwroot/pg/library/core/class.auth.php:36] Gdn_Session->Start();
[/home/wwwroot/pg/bootstrap.php:168] Gdn_Auth->StartAuthenticator();
[/home/wwwroot/pg/index.php:41] PHP::require_once();
Variables in local scope:
[ex] array (
'errorInfo' => NULL,
)

Tagged:

Comments

Sign In or Register to comment.