Call to a member function isLoggedIn() on null in Magento/Backend/App/AbstractAction.php on line 252

Fatal error: Call to a member function isLoggedIn() on null in D:\xampp\htdocs\m2ce\vendor\magento\module-backend\App\AbstractAction.php on line 252

I got this problem when save form. Only last step to save data. Seem object not creat or instance or something i don’t know
I already added _isAllowed method for controller edit but still not fix this
What i have done so far in link below if you want to see code

Anyone have suggestions to get throught this


May be you did not call the \Magento\Backend\App\AbstractAction constructor or may be $context->getAuth(); returned not-an-object.

My class AbstractAction not inject Authorization. I thought this class extend \Magento\Backend\App\AbstractAction (have property _auth) so i don’t have to register this
But object still return null
I have no idea why

Where exaclty do you call the \Magento\Backend\App\AbstractAction::__construct method?

This class in file below extend Magento/Backend/App/AbstracAction
Another class such as Banner , Sllider will extends this class

AbstractAction

I already update some line code in abstractaction but problem not fixed

@dmitry_fedyuk Problem fixed now. But i get problem with my grid. order column not render right by order
I already set by number but not work. Do you have any suggestions ? I use ui_components

How does it related to the topic?

Follow the below steps:

  1. Go to your module controller file where control is reaching( which extends \Magento\Backend\App\Action).
    2.Append below code inside its constructor

public function __construct(…
\Magento\Backend\App\Action\Context $context)
{

parent::__construct($context);
}