I installed a fresh copy of Drupal 8-alpha11. I tried to install admin menu:
1. downloaded http://ftp.drupal.org/files/projects/admin_menu-8.x-3.x-dev.zip
2. Unzipped
3. Copied to .../docroot/modules so the .module file is .../docroot/modules/admin_menu/admin_menu.module
4. Went to /admin/modules in my web browser
5. Checked box for Admin menu and clicked "save configuration"
6. Install returned errors and crippled my site. See attached.

Warning: Invalid argument supplied for foreach() in _drupal_schema_initialize() (line 302 of core\includes\schema.inc).
Notice: Undefined index: fields in Drupal\Core\Database\Driver\mysql\Schema->createTableSql() (line 96 of core\lib\Drupal\Core\Database\Driver\mysql\Schema.php).
Warning: Invalid argument supplied for foreach() in Drupal\Core\Database\Driver\mysql\Schema->createTableSql() (line 96 of core\lib\Drupal\Core\Database\Driver\mysql\Schema.php).
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 db_create_table() (line 602 of core\includes\database.inc).

CommentFileSizeAuthor
#1 admin-menu-wsd.png88.53 KBC13L0
bug.png75.14 KBJasonSafro
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

C13L0’s picture

FileSize
88.53 KB

I can verify that install is also failing with drush. D8 version is most recent fetch/rebase as of today. In my case, the site has WSD after enabling admin_menu

1. Clean install of site via drush re-install
2. drush en admin_menu

System info:
OSX Mavericks
Mamp
mysql Ver 14.14 Distrib 5.5.34, for osx10.6 (i386) using EditLine wrapper

The following extensions will be enabled: admin_menu
Do you really want to continue? (y/n): y
Invalid argument supplied for foreach() schema.inc:302                                   [warning]
Invalid argument supplied for foreach() Schema.php:96                                    [warning]
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL    [error]
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
(
)
broon’s picture

Just tried it with Drupal-8.0.0-beta1, still fails with UI and drush.

bdanin’s picture

Priority: Major » Critical

fresh install of standard (no other modules turned on) drupal-8.0.0-beta3, installing with drush 7.x-dev in a PHP5.5 Mavericks (MacPorts) Apache-Percona build:

» drush en admin_menu                                                                                                                                
The following extensions will be enabled: admin_menu
Do you really want to continue? (y/n): y
Invalid argument supplied for foreach() schema.inc:302                                                                                                                    [warning]
Invalid argument supplied for foreach() Schema.php:97                                                                                                                     [warning]
exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to [error]
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' in
/Users/bdanin/Sites/d8test/core/lib/Drupal/Core/Database/Statement.php:61
Stack trace:
#0 /Users/bdanin/Sites/d8test/core/lib/Drupal/Core/Database/Statement.php(61): PDOStatement->execute(Array)
#1 /Users/bdanin/Sites/d8test/core/lib/Drupal/Core/Database/Connection.php(537): Drupal\Core\Database\Statement->execute(Array, Array)
#2 /Users/bdanin/Sites/d8test/core/lib/Drupal/Core/Database/Schema.php(682): Drupal\Core\Database\Connection->query('CREATE TABLE {c...')
#3 /Users/bdanin/Sites/d8test/core/includes/database.inc(648): Drupal\Core\Database\Schema->createTable('cache_admin_men...', Array)
#4 /Users/bdanin/Sites/d8test/core/includes/schema.inc(206): db_create_table('cache_admin_men...', Array)
#5 /Users/bdanin/Sites/d8test/core/lib/Drupal/Core/Extension/ModuleHandler.php(814): drupal_install_schema('admin_menu')
#6 /Users/bdanin/.composer/vendor/drush/drush/commands/core/drupal/environment.inc(128): Drupal\Core\Extension\ModuleHandler->install(Array, true)
#7 /Users/bdanin/.composer/vendor/drush/drush/commands/core/drupal/environment.inc(195): drush_module_install(Array)
#8 /Users/bdanin/.composer/vendor/drush/drush/commands/pm/pm.drush.inc(1127): drush_module_enable(Array)
#9 [internal function]: drush_pm_enable('admin_menu')
#10 /Users/bdanin/.composer/vendor/drush/drush/includes/command.inc(359): call_user_func_array('drush_pm_enable', Array)
#11 /Users/bdanin/.composer/vendor/drush/drush/includes/command.inc(210): _drush_invoke_hooks(Array, Array)
#12 [internal function]: drush_command('admin_menu')
#13 /Users/bdanin/.composer/vendor/drush/drush/includes/command.inc(178): call_user_func_array('drush_command', Array)
#14 /Users/bdanin/.composer/vendor/drush/drush/lib/Drush/Boot/DrupalBoot.php(46): drush_dispatch(Array)
#15 /Users/bdanin/.composer/vendor/drush/drush/drush.php(75): Drush\Boot\DrupalBoot->bootstrap_and_dispatch()
#16 /Users/bdanin/.composer/vendor/drush/drush/drush.php(15): drush_main()
#17 {main}

Next exception 'Drupal\Core\Database\DatabaseExceptionWrapper' with message '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…'; Array
(
)
' in /Users/bdanin/Sites/d8test/core/lib/Drupal/Core/Database/Connection.php:569
Stack trace:
#0 /Users/bdanin/Sites/d8test/core/lib/Drupal/Core/Database/Schema.php(682): Drupal\Core\Database\Connection->query('CREATE TABLE {c...')
#1 /Users/bdanin/Sites/d8test/core/includes/database.inc(648): Drupal\Core\Database\Schema->createTable('cache_admin_men...', Array)
#2 /Users/bdanin/Sites/d8test/core/includes/schema.inc(206): db_create_table('cache_admin_men...', Array)
#3 /Users/bdanin/Sites/d8test/core/lib/Drupal/Core/Extension/ModuleHandler.php(814): drupal_install_schema('admin_menu')
#4 /Users/bdanin/.composer/vendor/drush/drush/commands/core/drupal/environment.inc(128): Drupal\Core\Extension\ModuleHandler->install(Array, true)
#5 /Users/bdanin/.composer/vendor/drush/drush/commands/core/drupal/environment.inc(195): drush_module_install(Array)
#6 /Users/bdanin/.composer/vendor/drush/drush/commands/pm/pm.drush.inc(1127): drush_module_enable(Array)
#7 [internal function]: drush_pm_enable('admin_menu')
#8 /Users/bdanin/.composer/vendor/drush/drush/includes/command.inc(359): call_user_func_array('drush_pm_enable', Array)
#9 /Users/bdanin/.composer/vendor/drush/drush/includes/command.inc(210): _drush_invoke_hooks(Array, Array)
#10 [internal function]: drush_command('admin_menu')
#11 /Users/bdanin/.composer/vendor/drush/drush/includes/command.inc(178): call_user_func_array('drush_command', Array)
#12 /Users/bdanin/.composer/vendor/drush/drush/lib/Drush/Boot/DrupalBoot.php(46): drush_dispatch(Array)
#13 /Users/bdanin/.composer/vendor/drush/drush/drush.php(75): Drush\Boot\DrupalBoot->bootstrap_and_dispatch()
#14 /Users/bdanin/.composer/vendor/drush/drush/drush.php(15): drush_main()
#15 {main}

In the UI, it kills drupal; here is the xdebug output:

( ! ) Fatal error: Call to undefined function user_access() in /Users/bdanin/Sites/d8test/modules/admin_menu/admin_menu.module on line 208
Call Stack
#	Time	Memory	Function	Location
1	0.0006	241104	{main}( )	../index.php:0
2	0.0147	1663840	Drupal\Core\DrupalKernel->handle( )	../index.php:22
3	0.0584	6784488	Stack\StackedHttpKernel->handle( )	../DrupalKernel.php:563
4	0.0584	6784696	Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle( )	../StackedHttpKernel.php:23
5	0.0584	6784776	Drupal\Core\StackMiddleware\PageCache->handle( )	../ReverseProxyMiddleware.php:58
6	0.0682	7632680	Drupal\Core\StackMiddleware\KernelPreHandle->handle( )	../PageCache.php:52
7	0.1129	11404696	Symfony\Component\HttpKernel\HttpKernel->handle( )	../KernelPreHandle.php:53
8	0.1129	11405192	Symfony\Component\HttpKernel\HttpKernel->handleRaw( )	../HttpKernel.php:66
9	0.4313	29981976	Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch( )	../HttpKernel.php:150
10	0.4335	30062816	Drupal\Core\EventSubscriber\HtmlViewSubscriber->onHtmlFragment( )	../ContainerAwareEventDispatcher.php:116
11	0.4335	30063128	Drupal\Core\Page\DefaultHtmlFragmentRenderer->render( )	../HtmlViewSubscriber.php:60
12	0.4335	30064712	drupal_prepare_page( )	../DefaultHtmlFragmentRenderer.php:53
13	0.4337	30070144	system_page_attachments( )	../common.inc:2441
14	0.4339	30072088	admin_menu_page_build( )	../system.module:561

and then trying to uninstall:

» drush pm-uninstall admin_menu                                                                                                                      
The following extensions will be uninstalled: admin_menu
Do you really want to continue? (y/n): y

Fatal error: Call to undefined function variable_del() in /Users/bdanin/Sites/d8test/modules/admin_menu/admin_menu.install on line 31

Call Stack:
    0.0004     262120   1. {main}() /Users/bdanin/.composer/vendor/drush/drush/drush.php:0
    0.0167    2378296   2. drush_main() /Users/bdanin/.composer/vendor/drush/drush/drush.php:15
    0.1680    7103008   3. Drush\Boot\DrupalBoot->bootstrap_and_dispatch() /Users/bdanin/.composer/vendor/drush/drush/drush.php:75
    0.3312   20381160   4. drush_dispatch() /Users/bdanin/.composer/vendor/drush/drush/lib/Drush/Boot/DrupalBoot.php:46
    0.4775   22878552   5. call_user_func_array:{/Users/bdanin/.composer/vendor/drush/drush/includes/command.inc:178}() /Users/bdanin/.composer/vendor/drush/drush/includes/command.inc:178
    0.4775   22879040   6. drush_command() /Users/bdanin/.composer/vendor/drush/drush/includes/command.inc:178
    0.4777   22880176   7. _drush_invoke_hooks() /Users/bdanin/.composer/vendor/drush/drush/includes/command.inc:210
    0.4785   22913576   8. call_user_func_array:{/Users/bdanin/.composer/vendor/drush/drush/includes/command.inc:359}() /Users/bdanin/.composer/vendor/drush/drush/includes/command.inc:359
    0.4785   22913960   9. drush_pm_uninstall() /Users/bdanin/.composer/vendor/drush/drush/includes/command.inc:359
    0.4792   22939320  10. _drush_pm_uninstall() /Users/bdanin/.composer/vendor/drush/drush/commands/pm/pm.drush.inc:1197
    1.4726   26923344  11. drush_module_uninstall() /Users/bdanin/.composer/vendor/drush/drush/commands/core/drupal/pm_8.inc:94
    1.4727   26923392  12. module_uninstall() /Users/bdanin/.composer/vendor/drush/drush/commands/core/drupal/environment.inc:221
    1.4727   26924160  13. Drupal\Core\Extension\ModuleHandler->uninstall() /Users/bdanin/Sites/d8test/core/includes/module.inc:175
    1.4819   27118192  14. Drupal\Core\Extension\ModuleHandler->invoke() /Users/bdanin/Sites/d8test/core/lib/Drupal/Core/Extension/ModuleHandler.php:970
    1.4819   27118552  15. call_user_func_array:{/Users/bdanin/Sites/d8test/core/lib/Drupal/Core/Extension/ModuleHandler.php:385}() /Users/bdanin/Sites/d8test/core/lib/Drupal/Core/Extension/ModuleHandler.php:385
    1.4819   27118832  16. admin_menu_uninstall() /Users/bdanin/Sites/d8test/core/lib/Drupal/Core/Extension/ModuleHandler.php:385

Drush command terminated abnormally due to an unrecoverable error.                                                                                                        [error]
Error: Call to undefined function variable_del() in /Users/bdanin/Sites/d8test/modules/admin_menu/admin_menu.install, line 31

Hopefully this helps the maintainers. I would love to see a functional admin_menu in Drupal 8. The new toolbar looks great for mobile-UX, but for developing using a desktop, we need this module!

(note, deleting the module rm -r modules/admin_menu and rebuilding cache brings the site back)

deggertsen’s picture

Confirming that this is still an issue. Looks like a lot of work is still needed on the 8.x branch...

guardiola86’s picture

Confirming that I'm having issues as well with the 8.x version of the module. I'm getting this error frequently (I'm using a fresh D8 installation):

Warning: include_once(): Failed opening.......

Dave Reid’s picture

Status: Active » Fixed

The module does not currently work on 8.x-3.x. Please file bugs for specific things we can fix, otherwise this is just a known issue. I'll remove the supported flag from the 8.x branch for now.

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

guardiola86’s picture

jibran, your link doesn't work. Anyway, isn't it better to submit patches?

joachim’s picture

Could this issue be closed with a more descriptive status perhaps? 'Fixed' makes it look like the stated problem was fixed, which makes it rather confusing when reading down the issue queue! 'Duplicate' maybe?

That said, it might be an idea to keep this open as a meta-issue. Installation currently completely blows up, and it's not something that's going to be fixable with a single patch.

On second thoughts, let's have a fresh issue for upgrading to D8: #2398395: [meta] Port Admin Menu to Drupal 8.

Status: Fixed » Closed (fixed)

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

klonos’s picture

Status: Closed (fixed) » Closed (duplicate)
Related issues: +#2398395: [meta] Port Admin Menu to Drupal 8