Drupal\entity_reference\Tests\EntityReferenceAdminTest->testFieldAdminHandler()
fails for me.
PHP version: 5.4.4-9
swentel (PHP 5.4.4) confirmed on irc. alexpott (5.3.something) was not able to reproduce.
So this is probably a version thing.
Failed assertion messages:
POST http://d8.localhost/system/ajax returned 0 (0 bytes). (line 96)
Found field with name 'instance[settings][handler_settings][sort][direction]' and value 'ASC' (line 97)
POST http://d8.localhost/system/ajax returned 0 (0 bytes). (line 99)
Some debugging:
- enable entity_reference manually
- create a content type with entity_reference field
- Under "Edit" field form, in "Reference type", there is a setting "Sort by", a select dropdown. Switching this dropdown to e.g. "nid" triggers an AJAX request, which fails.
- Check the watchdog for more information.
Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Drupal\contact\Plugin\Core\Entity\Message' does not have a method 'validateForm' in form_execute_handlers() (line 1565 of ../core/includes/form.inc).
Further debugging reveals that a bad validation handler is sitting in $form['#validate'].
At some point this callback array is array('Custom Block', 'validateForm').
Another time it is array('type', 'validateForm').
I have seen various string values in the first array element, but the second part is always 'validateForm'.
(people on irc said this is critical, but i leave this for others to decide)