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).

CommentFileSizeAuthor
error.png35.45 KByonimiler
main menu.png16.58 KByonimiler

Comments

yonimiler’s picture

Priority: Normal » Critical

Someone seen this error before, i have no idea that it can be

yonimiler’s picture

Assigned: Unassigned » yonimiler
Status: Active » Fixed

http://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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

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).