Closed (won't fix)
Project:
Profile 2
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Mar 2012 at 18:05 UTC
Updated:
25 Jul 2017 at 15:03 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
konstantin che commentedAdditional 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).
Comment #2
konstantin che commentedI solved the problem this way: set max_allowed_packet = 4M to the file my.ini
The problem occurs only with the included Russian language.
Comment #3
romualdk commentedThanks !
Comment #4
Chimos commentedHi,
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:
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
Comment #5
hfvd commentedIt also occurs in the Dutch language with D7.19
Comment #6
vmunoz commentedAlso Spanish. Solved editing max_allowed_packet.
Comment #7
abiyub commentedi 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
Comment #8
spleshkaGuys, this is not a Profile2 related issue. In fact, it comes from server configuration.
Comment #9
hparsi commentedI did, but it's still got the error when add conten type or add menu in main menu.
please help
Comment #10
Aymard RAJAONARILALA commentedthanks!!