Call to a member function getContext() on null

I am getting the exception /var/Neos/Data/Temporary/Production/Cache/Code/Flow_Object_Classes/Neos_Neos_Ui_Controller_BackendController.php: Call to a member function getContext() on null,
please find the attachment for the same.

Any Idea?

That’s too little context to know what’s going wrong here.
Just from what you’ve written I’d say this is a cache problem, somehow related to backend login, but I can’t say for sure.
Could you please provide more information on what you try to do?

Thanks for the reply.

Yes issue got resolved when I flush the cache

Hey,
I have run into the same problem.

I’ve installed a new Neos with Docker. Setup worked without any problem.
Now when I log in to the backend, I get this error:

Sadly, flushing the cache does not fix the problem.

If I should open a new topic for this error, no problem.

Thanks in advance,
Daniel

Hey Daniel,
Have you created or imported a site at the end of the setup process?

and/or, did you remember to create a domain for a site?
The “find node to edit” method, is depending on finding a site (IIRC)

Yes,I did the same process and failed into the same issue.
anding the specific error on page
Homepage could not be loaded. Probably you haven’t imported a site yet"
How should i solve this

and/or, did you remember to create a domain for a site?
The “find node to edit” method, is depending on finding a site

Yes.I added the domain name through the below command
./flow domain:add
and successfully run too, but screen remain same
image

Even I Flushed the cache, repair the node also.
Just for adding, I use the below procedure to create the site

  1. Kickstart the project with ./flow kickstart:site My.Site
  2. Use git clone https://git.my.com/neos-myite.git and put it to the following
    directory ///Neos/Packages/Sites/
  3. Import the project with ./flow site:import My.Site
  4. Repair all nodes with ./flow node:repair
    ./flow flow:core:migrate My.Site
    5 add a domain name.

Please Suggest me