Reproducible additional uncaught exception error when enabling on Drupal 8 alpha6:

If you have just changed code (for example deployed a new module or moved an existing one) read http://drupal.org/documentation/rebuild

Additional uncaught exception thrown while handling exception.

Original

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COMMENT 'Cache table for Administra' at line 1: CREATE TABLE {cache_admin_menu} ) ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COMMENT 'Cache table for Administration menu to store client-side cac'; Array ( ) in Drupal\Core\Database\Connection->query() (line 569 of /home/s78b572205b99d66/www/core/lib/Drupal/Core/Database/Connection.php).

Additional

Exception: theme() may not be called until all modules are loaded. in theme() (line 522 of /home/s78b572205b99d66/www/core/includes/theme.inc).

Comments

klonos’s picture

Issue summary: View changes
forestmars’s picture

Given that alpha6 is 2 versions behind, this will probably languish, but just wanted to have it documented in case someone else runs into it.

klonos’s picture

I'm not entirely sure that this is limited to only alpha6. I'm trying to test this with alpha8 and latest dev over at simplytest.me but I hit #2181387: 8.x modules not downloaded/installed when selected as an additional project.. I will test again once the other issue is resolved (unless someone beats me to it and tests this on a local environment).

chroid’s picture

Same issue on Drupal 8 GIT dev (cloned about an hour prior to writing) with Admin Menu 8.x-3.x-dev.

Additional uncaught exception thrown while handling exception.

Original

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COMMENT 'Cache table for Administra' at line 1: CREATE TABLE {cache_admin_menu} ) ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COMMENT 'Cache table for Administration menu to store client-side cac'; Array ( ) in Drupal\Core\Database\Connection->query() (line 569 of /var/www/drupal8/core/lib/Drupal/Core/Database/Connection.php).

Drupal\Core\Database\Connection->query('CREATE TABLE {cache_admin_menu}
) ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COMMENT 'Cache table for Administration menu to store client-side cac'')
Drupal\Core\Database\Schema->createTable('cache_admin_menu', Array)
db_create_table('cache_admin_menu', Array)
drupal_install_schema('admin_menu')
Drupal\Core\Extension\ModuleHandler->install(Array)
Drupal\system\Form\ModulesListForm->submitForm(Array, Array)
call_user_func_array(Array, Array)
Drupal\Core\Form\FormBuilder->executeHandlers('submit', Array, Array)
Drupal\Core\Form\FormBuilder->processForm('system_modules', Array, Array)
Drupal\Core\Form\FormBuilder->buildForm('system_modules', Array)
Drupal\Core\Controller\FormController->getContentResult(Object)
call_user_func_array(Array, Array)
Drupal\Core\Controller\HtmlPageController->getContentResult(Object, Array)
Drupal\Core\Controller\HtmlPageController->content(Object, Array)
call_user_func_array(Array, Array)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1)
Drupal\Core\HttpKernel->handle(Object, 1, 1)
Drupal\Core\DrupalKernel->handle(Object)
drupal_handle_request()
Additional

Exception: _theme() may not be called until all modules are loaded. in _theme() (line 401 of /var/www/drupal8/core/includes/theme.inc).

_theme('maintenance_page', Array)
drupal_render(Array)
_drupal_log_error(Array, 1)
_drupal_exception_handler(Object)

Results in a fairly terminal WSOD site wide.

forestmars’s picture

On a positive note, admin_menu doesn't appear to be throwing uncaught exceptions on Alpha 9.

Unfortunately, it also doesn't show up in the module list, even though attempting to install again returns the error "admin menu is already installed."

Don't have time to look at this too deeply atm.

jibran’s picture

I have created a fork of admin_menu 8.x-3.x on github. Please help me fix it for Drupal 8
PRs are welcome. https://github.com/jibran/admin_menu

dave reid’s picture

Status: Active » Fixed

The module doesn't currently work on D8. Please file issue for things to address with the D8 port here in our issue queue and we can get others to test and maintainers to commit the fixes.

jibran’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.