Hi,
If I enable the webprofiler, it destroys my site. I get
The website encountered an unexpected error. Please try again later.
on every page. I also cannot disable it by Drush. The log entries when I want to disable devel then:
peter@computer ~/php-framework-evaluation/d8 $ drush dis devel -y
[error] Drupal 8 does not support disabling modules. Use pm-uninstall instead.
[error] Error: Call to undefined method Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher::getListenerPriority() in Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->getListenerPriority() (line 107 of /home/peter/php-framework-evaluation/d8/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php).
Error: Call to undefined method Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher::getListenerPriority() in /home/peter/php-framework-evaluation/d8/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php on line 107
Error: Call to undefined method Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher::getListenerPriority() in Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->getListenerPriority() (line 107 of /home/peter/php-framework-evaluation/d8/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php).
[error] Drush command terminated abnormally due to an unrecoverable error.
peter@computer ~/php-framework-evaluation/d8 $
The logs after webprofiler was enabled:
[Thu Jul 21 18:24:12.942747 2016] [:error] [pid 8797] [client 127.0.0.1:57554] Error: Call to undefined method Drupal\\Component\\EventDispatcher\\ContainerAwareEventDispatcher::getListenerPriority() in /home/peter/php-framework-evaluation/d8/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php on line 107
[Thu Jul 21 18:24:15.412171 2016] [:error] [pid 8613] [client 127.0.0.1:57556] Error: Call to undefined method Drupal\\Component\\EventDispatcher\\ContainerAwareEventDispatcher::getListenerPriority() in /home/peter/php-framework-evaluation/d8/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php on line 107
Comment | File | Size | Author |
---|---|---|---|
#8 | webprofiler-shortcut-error.png | 107.04 KB | sdstyles |
Comments
Comment #2
lussolucaHi jepSter,
which version of Drupal core and Devel are you using?
Comment #3
Peter MajmeskuDrupal: 8.17 - the latest stable one
Devel: 8.x-1.0-alpha1
Comment #4
DamienMcKennaI'm seeing this on an 8.2.x git checkout with Devel also checked out from git. I also see these:
and:
Comment #5
DamienMcKennaFYI I was able to uninstall the module from admin/modules/uninstall.
Comment #6
lussoluca@jepSter the correct way for disabling (uninstall) a module via Drush in D8 is:
drush pm-uninstall devel -y
(also note that Webprofiler isn't Devel, it is a separate module contained into the Devel package).
The getListenerPriority() has been fixed in #2682343: Fatal error enabling web profiler on 8.1.x.
@DamienMcKenna the uasort() warning is a Core bug: #2567035: Database::startLog() cause a notice in Shortcut::sort()
I cannot reproduce the Twig error, could you provide some other info?
Comment #7
vkalmuk CreditAttribution: vkalmuk as a volunteer commentedI use Drupal 8.2.3 and drupal/devel8.x-1.0-alpha1
When I set in development.services.yml I have same error:
Warning: uasort(): Array was modified by the user comparison function in Drupal\shortcut\Entity\ShortcutSet->getShortcuts() (line 120 of core/modules/shortcut/src/Entity/ShortcutSet.php).
After googling I found an interesting topic http://stackoverflow.com/questions/3235387/usort-array-was-modified-by-t...
I try to change php version from 5.6.10 to 7.0.0 message is gone (I use mamp 3.5 macOS 10.12.1 ).
It seems to me it's php bug.
Comment #8
sdstyles CreditAttribution: sdstyles at FFW commentedSeems error appears when you have twig debug enabled in your services.yml
I have PHP 5.6.23 and Drupal 8.2.1
Comment #9
willzyx CreditAttribution: willzyx commented@sdstyles the warning seems a core issue please see #2567035: Database::startLog() cause a notice in Shortcut::sort()
Comment #10
willzyx CreditAttribution: willzyx commentedClosing for lack of activity. Feel free to reopen if the issue still exists