-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Description
I have created the following etc/adminhtml/di.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/ObjectManager/etc/config.xsd">
<type name="Magento\User\Model\User">
<plugin name="foomanAuthenticate" type="\Fooman\Authenticate\Model\Plugin\Authenticate" sortOrder="200"/>
</type>
</config>
with the following class
<?php
namespace Fooman\Authenticate\Model\Plugin;
class Authenticate
{
}
(initially I had an aroundAuthenticate method but the error reproduces without any class content). When I then log into the back-end I get the following error message:
Fatal error: Call to a member function dispatch() on a non-object in lib/internal/Magento/Framework/Model/AbstractModel.php on line 322
Call Stack:
0.0002 242384 1. {main}() pub/index.php:0
0.8245 25305624 2. Magento\Framework\App\Bootstrap->run() pub/index.php:36
0.8252 25332160 3. Magento\Framework\App\Http->launch() lib/internal/Magento/Framework/App/Bootstrap.php:244
1.2897 32883920 4. Magento\Framework\App\FrontController\Interceptor->dispatch() lib/internal/Magento/Framework/App/Http.php:114
1.3194 32875760 5. Magento\Framework\App\FrontController\Interceptor->___callPlugins() var/generation/Magento/Framework/App/FrontController/Interceptor.php:119
1.3208 32995072 6. call_user_func_array:{var/generation/Magento/Framework/App/FrontController/Interceptor.php:95}() var/generation/Magento/Framework/App/FrontController/Interceptor.php:95
1.3208 32995112 7. Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch() var/generation/Magento/Framework/App/FrontController/Interceptor.php:95
1.3594 33156096 8. Magento\Framework\App\FrontController\Interceptor->Magento\Framework\App\FrontController\{closure}() lib/internal/Magento/Framework/Module/Plugin/DbStatusValidator.php:62
1.3594 33156488 9. Magento\Framework\Interception\Chain\Chain->invokeNext() var/generation/Magento/Framework/App/FrontController/Interceptor.php:90
1.3595 33156968 10. Magento\Framework\App\FrontController\Interceptor->___callParent() lib/internal/Magento/Framework/Interception/Chain/Chain.php:65
1.3595 33157520 11. call_user_func_array:{var/generation/Magento/Framework/App/FrontController/Interceptor.php:48}() var/generation/Magento/Framework/App/FrontController/Interceptor.php:48
1.3595 33157856 12. Magento\Framework\App\FrontController->dispatch() var/generation/Magento/Framework/App/FrontController/Interceptor.php:48
1.4740 41062024 13. Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor->dispatch() lib/internal/Magento/Framework/App/FrontController.php:44
1.4740 41062528 14. Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor->___callPlugins() var/generation/Magento/Backend/Controller/Adminhtml/Index/Index/Interceptor.php:132
1.4741 41067056 15. call_user_func_array:{var/generation/Magento/Backend/Controller/Adminhtml/Index/Index/Interceptor.php:95}() var/generation/Magento/Backend/Controller/Adminhtml/Index/Index/Interceptor.php:95
1.4741 41067096 16. Magento\Backend\App\Action\Plugin\MassactionKey->aroundDispatch() var/generation/Magento/Backend/Controller/Adminhtml/Index/Index/Interceptor.php:95
1.4741 41067232 17. Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor->Magento\Backend\Controller\Adminhtml\Index\Index\{closure}() app/code/Magento/Backend/App/Action/Plugin/MassactionKey.php:32
1.4741 41067624 18. Magento\Framework\Interception\Chain\Chain->invokeNext() var/generation/Magento/Backend/Controller/Adminhtml/Index/Index/Interceptor.php:90
1.4744 41085184 19. call_user_func_array:{lib/internal/Magento/Framework/Interception/Chain/Chain.php:63}() lib/internal/Magento/Framework/Interception/Chain/Chain.php:63
1.4744 41085224 20. Magento\Core\App\Action\Plugin\Design->aroundDispatch() lib/internal/Magento/Framework/Interception/Chain/Chain.php:63
1.5401 41976760 21. Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}() app/code/Magento/Core/App/Action/Plugin/Design.php:38
1.5401 41977152 22. Magento\Framework\Interception\Chain\Chain->invokeNext() lib/internal/Magento/Framework/Interception/Chain/Chain.php:57
1.5403 41987168 23. call_user_func_array:{lib/internal/Magento/Framework/Interception/Chain/Chain.php:63}() lib/internal/Magento/Framework/Interception/Chain/Chain.php:63
1.5404 41987208 24. Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch() lib/internal/Magento/Framework/Interception/Chain/Chain.php:63
1.5405 41987640 25. Magento\User\Model\User\Interceptor->reload() app/code/Magento/Backend/App/Action/Plugin/Authentication.php:85
1.5405 41987792 26. Magento\User\Model\User->reload() var/generation/Magento/User/Model/User/Interceptor.php:325
1.5406 41988632 27. Magento\User\Model\User\Interceptor->load() app/code/Magento/User/Model/User.php:621
1.5406 41988832 28. Magento\Framework\Model\AbstractModel->load() var/generation/Magento/User/Model/User/Interceptor.php:455
1.5406 41988952 29. Magento\Framework\Model\AbstractModel->_beforeLoad() lib/internal/Magento/Framework/Model/AbstractModel.php:291
There seems to be some clash with https://github.com/magento/magento2/blob/develop/app/code/Magento/Backend/etc/adminhtml/di.xml#L55 even though it is a completely different class since if I remove it the error message changes.
Metadata
Metadata
Assignees
Labels
No labels