Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I was testing the latest dev over at simplytest.me and I got this while typing in the search field in the add blocks form (/#overlay=admin/structure/block/list/block_plugin_ui%253Abartik/add):
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /system/autocomplete/block_plugin_ui%3Abartik
StatusText: OK
ResponseText:
Fatal error: Class 'plugin.manager.block' not found in /home/hash/www/core/modules/system/system.module on line 1162
Funny thing, when I tried the same thing on a local dev I got no ResponseText/Fatal info and the error code was 500:
An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /system/autocomplete/block_plugin_ui%3Abartik
StatusText: Internal Server Error
ResponseText:
Comment | File | Size | Author |
---|---|---|---|
#9 | 1980338-9-fail.patch | 775 bytes | nick_schuch |
#9 | 1980338-9-pass.patch | 1.57 KB | nick_schuch |
#6 | Screen Shot 2013-05-02 at 10.24.41.png | 16.27 KB | yannickoo |
#4 | system_block-1980338-3.patch | 863 bytes | vineet.osscube |
#3 | system_block-1980338-3.patch | 863 bytes | vineet.osscube |
Comments
Comment #0.0
klonos..
Comment #1
aaronott CreditAttribution: aaronott commentedI was able to confirm this on a local install. Using Firefox I got the following error:
Steps to reproduce
Comment #2
vineet.osscube CreditAttribution: vineet.osscube commentedComment #3
vineet.osscube CreditAttribution: vineet.osscube commentedHi Team,
I've updated the "system.module" file to add "plugin.manager.block" data. Attaching patch for review ;)-
Comment #4
vineet.osscube CreditAttribution: vineet.osscube commentedI've updated the "system.module" file to add "plugin.manager.block" data. Attaching patch for review .
Comment #5
yannickooPatch works fine!
Comment #6
yannickooAttached screenshot.
Comment #7
alexpottWell we obviously need to add a test to ensure this is working... see https://drupal.org/simpletest
Also drupal_container() is deprecated... lets convert it to Drupal:: functions ... you can use Drupal::request() to get the request object and Drupal::service($name) to get services which don't have there own method.
So the autocomplete will look something like this...
Comment #8
nick_schuch CreditAttribution: nick_schuch commentedvineet.osscube,
Im currently working on #1987826. I don't mind taking this one on also. Let me know if you are actively working on it.
nick_schuch
Comment #9
nick_schuch CreditAttribution: nick_schuch commentedHere we go. One to prove the fail (via testing) and one to fix the issue.
Comment #10
larowlanLets get this in, it blocks #1987826: Convert system_plugin_autocomplete() to a new style controller
I think this qualifies for Quick Fix
Comment #11
alexpottCommitted 76f7b94 and pushed to 8.x. Thanks!
Comment #12.0
(not verified) CreditAttribution: commented...