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.

I am getting this error "Fatal Error in Gdn_Database.Connection();"

AFNAFN New
edited October 2011 in Vanilla 2.0 - 2.8
All I did was edit a theme and uploaded it and when I refreshed the page I got this error(s). How do I go about fixing this?


An error occurred while attempting to connect to the database
SQLSTATE[HY000] [1040] Too many connections
The error occurred on or near: /home/afnme/public_html/governmentunleashed.com/library/database/class.database.php

56: $this->_Connection = new PDO(strtolower($this->Engine) . ':' . $this->Dsn, $this->User, $this->Password, $this->ConnectionOptions);

57: if($this->ConnectionOptions[1002])

58: $this->Query($this->ConnectionOptions[1002]);

59: } catch (Exception $ex) {

60: trigger_error(ErrorMessage('An error occurred while attempting to connect to the database', $this->ClassName, 'Connection', $ex->getMessage()), E_USER_ERROR);

61: }

62: }

63:

64: return $this->_Connection;

Backtrace:

/home/afnme/public_html/governmentunleashed.com/library/database/class.database.phpPHP::Gdn_ErrorHandler();

[/home/afnme/public_html/governmentunleashed.com/library/database/class.database.php:60] PHP::trigger_error();

[/home/afnme/public_html/governmentunleashed.com/library/database/class.database.php:232] Gdn_Database->Connection();

[/home/afnme/public_html/governmentunleashed.com/library/database/class.sqldriver.php:1584] Gdn_Database->Query();

[/home/afnme/public_html/governmentunleashed.com/library/database/class.sqldriver.php:639] Gdn_SQLDriver->Query();

[/home/afnme/public_html/governmentunleashed.com/applications/dashboard/models/class.permissionmodel.php:416] Gdn_SQLDriver->Get();

[/home/afnme/public_html/governmentunleashed.com/applications/dashboard/models/class.permissionmodel.php:133] PermissionModel->PermissionColumns();

[/home/afnme/public_html/governmentunleashed.com/applications/dashboard/models/class.usermodel.php:88] PermissionModel->CachePermissions();

[/home/afnme/public_html/governmentunleashed.com/library/core/class.session.php:291] UserModel->DefinePermissions();

[/home/afnme/public_html/governmentunleashed.com/library/core/class.auth.php:27] Gdn_Session->Start();

[/home/afnme/public_html/governmentunleashed.com/bootstrap.php:186] Gdn_Auth->StartAuthenticator();

[/home/afnme/public_html/governmentunleashed.com/index.php:28] PHP::require_once();

Variables in local scope:

[ex] array (
'errorInfo' => NULL,
)

Need Help?

If you are a user of this website, you can report this message to a website administrator.

If you are an administrator of this website, you can get help at the Vanilla Community Forums.
Additional information for support personnel:

Application: Vanilla
Application Version: 2.0.17.10
PHP Version: 5.3.8
Operating System: Linux
Server Software: LiteSpeed
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
Request Uri: /j
Controller: Gdn_Database
Method: Connection

Best Answer

  • TimTim Vanilla Staff
    Answer ✓
    Your database is having trouble, as explained by the error message (they aren't for nothing):

    An error occurred while attempting to connect to the database
    SQLSTATE[HY000] [1040] Too many connections

    Vanilla Forums COO [GitHub, Twitter, About.me]

Answers

  • TimTim Vanilla Staff
    Answer ✓
    Your database is having trouble, as explained by the error message (they aren't for nothing):

    An error occurred while attempting to connect to the database
    SQLSTATE[HY000] [1040] Too many connections

    Vanilla Forums COO [GitHub, Twitter, About.me]

Sign In or Register to comment.