When I try to access "/admin/structure/semantic_fields/add" I get a server 500 error.

Setup:
D7.39 multilanguage with a lot of additional modules.
Unfortunately nothing is shown within the drupal log (/admin/reports/dblog).

I use a local installation on MAMP Pro v3.3 with OS X 10.9.5.

The PHP log shows this -> memory issue:

[11-Nov-2015 08:10:37 Europe/Berlin] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 13405466 bytes) in /Applications/MAMP/htdocs/testlab_immo/d7immo/includes/database/database.inc on line 2171
[11-Nov-2015 08:10:49 Europe/Berlin] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 7602138 bytes) in /Applications/MAMP/htdocs/testlab_immo/d7immo/includes/theme.inc on line 2089
[11-Nov-2015 08:53:57 Europe/Berlin] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 31889193 bytes) in /Applications/MAMP/htdocs/testlab_immo/d7immo/includes/database/database.inc on line 2171
[11-Nov-2015 08:54:04 Europe/Berlin] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 15253129 bytes) in /Applications/MAMP/htdocs/testlab_immo/d7immo/includes/cache.inc on line 454
[11-Nov-2015 08:57:56 Europe/Berlin] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 15430923 bytes) in /Applications/MAMP/htdocs/testlab_immo/d7immo/includes/cache.inc on line 454
[11-Nov-2015 09:01:54 Europe/Berlin] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 31889193 bytes) in /Applications/MAMP/htdocs/testlab_immo/d7immo/includes/database/database.inc on line 2171
[11-Nov-2015 09:05:43 Europe/Berlin] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 31889193 bytes) in /Applications/MAMP/htdocs/testlab_immo/d7immo/includes/database/database.inc on line 2171
[11-Nov-2015 09:05:51 Europe/Berlin] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 14731451 bytes) in /Applications/MAMP/htdocs/testlab_immo/d7immo/includes/cache.inc on line 454

I will post more details soon.

Comments

mori created an issue.

drupa11y’s picture

Increase the memory from 256 to 512 did not solve the issue.

drupa11y’s picture

When increasing the mem to 1024M and doubling the I get the following error:

Additional uncaught exception thrown while handling exception.

Original

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT expire, value FROM {semaphore} WHERE name = :name; Array ( [:name] => field_info_types:en ) in lock_may_be_available() (line 167 of /Applications/MAMP/htdocs/testlab_immo/d7immo/includes/lock.inc).

Additional

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT lid, location FROM {locales_source} WHERE source = :source AND context = :context AND textgroup = 'default'; Array ( [:source] => Loading token browser... [:context] => ) in _locale_parse_js_file() (line 1563 of /Applications/MAMP/htdocs/testlab_immo/d7immo/includes/locale.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] => 19564546045642faa888e2c5.86574957 ) in lock_release_all() (line 269 of /Applications/MAMP/htdocs/testlab_immo/d7immo/includes/lock.inc).
donquixote’s picture

The problem is the token tree it tries to show.

You can edit semantic_fields_ctools_export_ui_form() like this, if you don't need token:

@@ -323,7 +323,7 @@ function semantic_fields_ctools_export_ui_form(&$form, &$form_state) {
     '#attributes' => array('class' => array('semantic-fields-tokens-fieldset')),
     '#parents' => array('semantic_field_settings'),
   );
-  if (module_exists('token') == TRUE) {
+  if (FALSE && module_exists('token') == TRUE) {
     $form['semantic_field_settings']['tokens_fieldset']['info'] = array(
       '#markup' => t('You could use tokens, like <em>[node:title]</em> and <em>[node:url]</em> !token_tree', array(
         '!token_tree' => theme(

I think the entire token integration should be made optional.

nilesh.addweb’s picture

Try installing Token Tweaks module (https://www.drupal.org/project/token_tweaks) and set token depth to 2. It should resolve token errors.