00webhost.com [known issues]

00webhost doesn't seem to like that Family Connections uses PDO with persistent connections.

You may get the following or similar error:

SQLSTATE[42000] [1203] User xxxx already has more than 'max_user_connections' active connections

To fix this, simply remove the persistent option from the PDO connection.

inc/Database.php

Before

 96         // Connect
 97         try
 98         {
 99             $this->dbh = new PDO(
100                 'mysql:host='.$this->host.';dbname='.$this->db,
101                 $this->user,
102                 $this->pass,
103                 array(PDO::ATTR_PERSISTENT => true)
104             );
105         }

After

 96         // Connect
 97         try
 98         {
 99             $this->dbh = new PDO(
100                 'mysql:host='.$this->host.';dbname='.$this->db,
101                 $this->user,
102                 $this->pass 
103             );
104         }

Recent Discussions

19 May, 2018 12:54 AM
04 May, 2018 01:25 PM
01 May, 2018 06:37 PM
30 Apr, 2018 07:19 PM
30 Apr, 2018 04:21 PM