I have this error after installing Drupal Commons and wanting to edit a Menu link on Main Menu, I need some configuration?
Additional uncaught exception thrown while handling exception.
Original
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT ogr.rid AS rid, ogr.name AS name FROM {og_role} ogr WHERE (group_type = :db_condition_placeholder_0) AND (group_bundle = :db_condition_placeholder_1) AND (gid = :db_condition_placeholder_2) ORDER BY rid ASC; Array ( [:db_condition_placeholder_0] => node [:db_condition_placeholder_1] => group [:db_condition_placeholder_2] => 0 ) in og_roles() (line 2553 of C:\xampp\htdocs\hsv\profiles\commons\modules\contrib\og\og.module).
Additional
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT ff.* FROM {filter_format} ff WHERE (status = :db_condition_placeholder_0) ORDER BY weight ASC; Array ( [:db_condition_placeholder_0] => 1 ) in filter_formats() (line 409 of C:\xampp\htdocs\hsv\modules\filter\filter.module).
Uncaught exception thrown in session handler.
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in _drupal_session_write() (line 209 of C:\xampp\htdocs\hsv\includes\session.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| error.png | 35.45 KB | yonimiler | |
| main menu.png | 16.58 KB | yonimiler |
Comments
Comment #1
yonimiler commentedSomeone seen this error before, i have no idea that it can be
Comment #2
yonimiler commentedhttp://drupal.org/node/1916098
1) Open your my.ini file
2) In mysqld change the default packet size.
[mysqld]
max_allowed_packet = 20M
3) Restart MySQL service.
This resolved my problem, I see this error is not a problem of Drupal Commons but of Organic Group with MySql settings
Comment #3.0
(not verified) commentedAdditional uncaught exception thrown while handling exception.
Original
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT ogr.rid AS rid, ogr.name AS name FROM {og_role} ogr WHERE (group_type = :db_condition_placeholder_0) AND (group_bundle = :db_condition_placeholder_1) AND (gid = :db_condition_placeholder_2) ORDER BY rid ASC; Array ( [:db_condition_placeholder_0] => node [:db_condition_placeholder_1] => group [:db_condition_placeholder_2] => 0 ) in og_roles() (line 2553 of C:\xampp\htdocs\hsv\profiles\commons\modules\contrib\og\og.module).
Additional
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT ff.* FROM {filter_format} ff WHERE (status = :db_condition_placeholder_0) ORDER BY weight ASC; Array ( [:db_condition_placeholder_0] => 1 ) in filter_formats() (line 409 of C:\xampp\htdocs\hsv\modules\filter\filter.module).
Uncaught exception thrown in session handler.
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in _drupal_session_write() (line 209 of C:\xampp\htdocs\hsv\includes\session.inc).