When I install the module, I get this error now.

Files: 
CommentFileSizeAuthor
#1 error.jpg413.3 KBkv4

Comments

kv4’s picture

StatusFileSize
new413.3 KB

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] => ru [:source] => Attachments added to other displays to achieve multiple views in the same view. [:context] => ) in locale() (line 683 of C:\Users\Kostya\Dropbox\www\www\autosalon\modules\locale\locale.module).

Additional

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] => ru [:source] => Attachments added to other displays to achieve multiple views in the same view. [:context] => ) in locale() (line 683 of C:\Users\Kostya\Dropbox\www\www\autosalon\modules\locale\locale.module).

Uncaught exception thrown in session handler.

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in _drupal_session_write() (line 206 of C:\Users\Kostya\Dropbox\www\www\autosalon\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] => 18655651064f6e15f45bf207.58113368 ) in lock_release_all() (line 269 of C:\Users\Kostya\Dropbox\www\www\autosalon\includes\lock.inc).

kv4’s picture

I solved the problem this way: set max_allowed_packet = 4M to the file my.ini

The problem occurs only with the included Russian language.

romualdk’s picture

Thanks !

Chimos’s picture

Hi,

I posted a similar issue (or maybe the same) here: http://drupal.org/node/1872098
And I posted it there, because I thought it was an Intenationalization (i18) issue.

In the solution provided in #2:

I solved the problem this way: set max_allowed_packet = 4M to the file my.ini

The problem occurs only with the included Russian language.

Is my.ini a server config file? My site is in production in a remote shared server.. Can I solve this without accessing the server / hosting admin? I contacted the aministrators of this hosting and they told me this is a problem in my code.

Thanks

EDIT: Finally it seems it was a problem of the hosting admin ¬¬, they say they changed the parameter value to 64M:
max_allowed_packet = 64M

hfvd’s picture

It also occurs in the Dutch language with D7.19

vmunoz’s picture

Also Spanish. Solved editing max_allowed_packet.

abiyub’s picture

Issue summary:View changes

i faced the same issue!! this is so helpful: if you chancge the max_allowed_packet = 4M or 8M, it will work fine. this happens when you install modules. in my case it happend when i am installing feeds, and job_schedualer modules.

good luck

Spleshka’s picture

Status:Active» Closed (won't fix)

Guys, this is not a Profile2 related issue. In fact, it comes from server configuration.

hparsi’s picture

I did, but it's still got the error when add conten type or add menu in main menu.
please help