When I attempt to enable the File Entity module, Drupal 7.7 returns the following error message:

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT filename FROM {registry} WHERE name = :name AND type = :type; Array ( [:name] => delta_export_ui [:type] => interface ) in _registry_check_code() (line 2691 of F:\xampp\htdocs\memehope\includes\bootstrap.inc).

If I disable the module and refresh, the error goes away, and Drupal continues to function normally. I have tried clearing the cache between disabling and enabling the module, but that doesn't help.

Comments

dave reid’s picture

Project: File Entity (fieldable files) » Delta

Based on this error I'd say this is actually a bug in Delta.

askandlearn’s picture

Possibly related: I was getting this error today on a site I was working on with MAMP. I switched to Bartik and it went away. I'll follow this closely because I really like Omega and Delta and want to be able to use them.

Error was:
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT filename FROM {registry} WHERE name = :name AND type = :type; Array ( [:name] => delta_export_ui [:type] => interface ) in _registry_check_code() (line 3035 of /Applications/MAMP/htdocs/mysite.org/includes/bootstrap.inc).

flashingcursor’s picture

Possibly unrelated, but ... I was struggling with a log of PDOExceptions with CiviCRM / Drupal -- after fighting for 2 days, I ended up rolling PHP back to v5.2.x from 5.3.x and every single oddball PDOException went away.

All my PDOExceptions were coming from the _registry_check_code() function on 3035 of bootstrap.inc as well.

Anyway - maybe totally worthless info to this thread, but ...

Jon_B’s picture

Having a hunt around...

It looks like increasing the max_packet_size will make this problem go away http://drupal.org/node/1129262.

I've had to increase mine to 2M which is significantly more than other people have had to increase theirs to.

divakar525’s picture

I have experienced the same issue while enabling the File entity module. I was using PHP 5.3 and Mysqk 5.5. That issue got resolved when I have increased the max_allowed_packet value to 10M on mysql config file i.e.,my.ini. Before it was 1M. Some times, it might take longer time for enabling the module. So, increasing the max_execution_time would be helpful (By default it would be 30sec).

yis’s picture

This thread save me from drupal's white screen death kind of exception ፡
Max_allowed_packet from 1M to 10M
And works perfectly as it was.

"...without a stack frame in unknown on line 0"
Thanks guys [ab ]!!!