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:
Comments
Comment #0.0
klonos..
Comment #1
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 commentedComment #3
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 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 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 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) commented...