I only get the following error when I try to use the page title module. On a clean install, I do not have any problems with this module. So I assume I have something installed that is causing a conflict.

I have already increased my max_allowed_packet.

Any thoughts on if this is a module or a MySql issue.

Thanks.
Lauren

Additional uncaught exception thrown while handling exception.
Original

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT fc.* FROM {field_config} fc WHERE (fc.active = :db_condition_placeholder_0) AND (fc.storage_active = :db_condition_placeholder_1) ; Array ( [:db_condition_placeholder_0] => 1 [:db_condition_placeholder_1] => 1 ) in field_read_fields() (line 353 of /Applications/MAMP/htdocs/drupal7/modules/field/field.crud.inc).
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:300:"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT fc.* FROM {field_config} fc WHERE (fc.active = :db_condition_placeholder_0) AND (fc.storage_active = :db_condition_placeholder_1) ; Array ( [:db_condition_placeholder_0] => 1 [:db_condition_placeholder_1] => 1 ) ";s:9:"%function";s:19:"field_read_fields()";s:5:"%file";s:62:"/Applications/MAMP/htdocs/drupal7/modules/field/field.crud.inc";s:5:"%line";i:353;s:14:"severity_level";i:3;} [:db_insert_placeholder_4] => 3 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://localhost/drupal7/?q=admin%2Fconfig%2Fsearch%2Fpage-title& [:db_insert_placeholder_7] => http://localhost/drupal7/ [:db_insert_placeholder_8] => ::1 [:db_insert_placeholder_9] => 1345086702 ) in dblog_watchdog() (line 154 of /Applications/MAMP/htdocs/drupal7/modules/dblog/dblog.module).

Comments

JohnnyW’s picture

Same problem!

Anyone knows whats up?

Thanks!!

grougy’s picture

Having the same problem too on a site with many fields, had to set max_allowed_packet = 64M in my.ini
The issue seems to come from the token help beeing too big.

For servers on which max_allowed_packet cannot be modified, the following code can be commented to solve the issue and access the page title config :

In page_title.admin.inc :

  if ($settings['show field']) {
      $form['patterns']['showfield'][$key . '_showfield'] = array(
        '#type' => 'checkbox',
        '#default_value' => variable_get($key . '_showfield', 0),
      );
    }
  }

  // Add the token help to a collapsed fieldset at the end of the configuration page.
  // $form['token_help'] = array(
  //   '#type' => 'fieldset',
  //   '#title' => t('Available Tokens List'),
  //   '#collapsible' => TRUE,
  //   '#collapsed' => TRUE,
  // );
  // $form['token_help']['content'] = array(
  //   '#theme' => 'token_tree',
  //   '#token_types' => array('node', 'comment', 'term', 'vocabulary', 'user'),
  // );

  $form = system_settings_form($form);
  return $form;
}

Is there any module that provide a more progressive token help ?