Hi, After I installed the media module( I tried both versions 7.x-1.3 and 7.x-2) I cannot edit or add content types ! I got that message: "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] => ro [:source] => Configure how content input by users is filtered, including allowed HTML tags. Also allows enabling of module-provided filters. [:context] => ) in locale() (line 684 of /home/aikikaig/public_html/Fundatia/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] => ro [: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:64:"/home/aikikaig/public_html/Fundatia/modules/locale/locale.module";s:5:"%line";i:684;s:14:"severity_level";i:3;} [:db_insert_placeholder_4] => 3 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://www.aikikai-galati.ro/Fundatia/?q=ro%2Fadmin%2Fstructure%2Ftypes%... [:db_insert_placeholder_7] => http://www.aikikai-galati.ro/Fundatia/ [:db_insert_placeholder_8] => 5.13.162.157 [:db_insert_placeholder_9] => 1364321576 ) in dblog_watchdog() (line 154 of /home/aikikaig/public_html/Fundatia/modules/dblog/dblog.module)."
Sorry for big text! I read about it and people says that can be solved increasing the max_allowed_packet in mysql server ini, but I cannot access the server ini, iti is on a public host server and the administrator cannot ( or don't want to) change it for me. I wonder if it is something to work around for that matter?
Thanks for help!

Comments

pixel8r’s picture

Assigned: morogg » Unassigned

Do you get the same issue on your localhost? Try to recreate install on your local machine. If you don't get any errors - your webhost resources are too small and you need to upgrade your hosting package. If you do, post here again.

I also noticed that the error keeps mentioning Locale. Are you sure this wasn't coincidental to Media install?

devin carlson’s picture

Status: Active » Closed (cannot reproduce)

I haven't been able to duplicate this issue using a fresh install of Media 1.3.

I'd suggest following pixel8r's advice in #1 if you are still experiencing this issue.