PDOException: SQLSTATE[HY000]: General error: 2006

So after updating the database via update.php and trying to log into my administrators account i came across with the following error:

Additional uncaught exception thrown while handling exception.

Original

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT s.lid, t.translation, s.version FROM {locales_source} s LEFT JOIN {locales_target} t ON s.lid = t.lid AND t.language = :language WHERE s.source = :source AND s.context = :context AND s.textgroup = ‘default’; Array ( [:language] => es [:source] => Configure how content input by users is filtered, including allowed HTML tags. Also allows enabling of module-provided filters. [:context] => ) in locale() (line 720 of /home/franton/public_html/modules/locale/locale.module).

Additional

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 1 [:db_insert_placeholder_1] => php [:db_insert_placeholder_2] => %type: !message in %function (line %line of %file). [:db_insert_placeholder_3] => a:6:{s:5:”%type”;s:12:”PDOException”;s:8:”!message”;s:495:”SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT s.lid, t.translation, s.version FROM {locales_source} s LEFT JOIN {locales_target} t ON s.lid = t.lid AND t.language = :language WHERE s.source = :source AND s.context = :context AND s.textgroup = ‘default’; Array ( [:language] => es [:source] => Configure how content input by users is filtered, including allowed HTML tags. Also allows enabling of module-provided filters. [:context] => ) “;s:9:”%function”;s:8:”locale()”;s:5:”%file”;s:54:”/home/franton/public_html/modules/locale/locale.module”;s:5:”%line”;i:720;s:14:”severity_level”;i:3;} [:db_insert_placeholder_4] => 3 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => https://asisst.com.mx/ [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => 92.226.135.176 [:db_insert_placeholder_9] => 1475096053 ) in dblog_watchdog() (line 163 of /home/franton/public_html/modules/dblog/dblog.module).

Uncaught exception thrown in session handler.

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT 1 AS expression FROM {sessions} sessions WHERE ( (sid = :db_condition_placeholder_0) AND (ssid = :db_condition_placeholder_1) ); Array ( [:db_condition_placeholder_0] => nv-WIiRGES6-TQh7fQoztnnanWLfAeSoTPqF1V6TKXM [:db_condition_placeholder_1] => nv-WIiRGES6-TQh7fQoztnnanWLfAeSoTPqF1V6TKXM ) in _drupal_session_write() (line 209 of /home/franton/public_html/includes/session.inc).

Uncaught exception thrown in shutdown function.

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: DELETE FROM {semaphore} WHERE (value = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => 106211465357ec2def1108b7.10397506 ) in lock_release_all() (line 269 of /home/franton/public_html/includes/lock.inc).

I have read almost all the threads related to this problem and the only solution i found was to set the variable max_allowed_packet to a high value in my.ini file. I contacted my hosting service and they told me the value was already 256M and that they do not believe that is the problem, but rather a problem with drupal’s modules.
It is very weird, because any other non-administrative account can login without problems, this error just occurs when i log in as administrator.

I wish you could guide me in solving my issue.

Cheers

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/22/feed