Call to a member function getHtmlAttributesProvider() on null