How to fix «Call to a member function getNext() on null in generated/code/Magento/User/Model/User/Interceptor.php»?

code-generation
bug
bug-fix
magento22
magento225

(Dmitry Fedyuk) #1

Locate the code block in the \Magento\Backend\Model\Locale\Manager::getUserInterfaceLocale() method:

Add the following code above:

if ($userData) {
	$userData->___init();
}