How to install Neos with own Site Package

Hi all,

I have multiple problems to install Neos. The setup is fine if i import the neos/demo packages. But if I tried to create a own site package I get into problems.

I use this very well looking instructions:

So I do following:

  1. composer create-project neos/neos-base-distribution .
  2. go into install tool setting all the database stuff and create a user
  3. import the neos.demo package
  4. Backend and Frontend Check, all works good.
  5. Doing the punkt.de Instructions
./flow site:prune
composer remove neos/demo

./flow kickstart:site WL.WeinLaden weinladen.local
./flow site:import WL.WeinLaden

Ran into following error:

PHP Fatal error: Neos\Flow\Security\Context_Original::isTokenActive(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Flowpack\Neos\FrontendLogin\Security\NeosRequestPattern" of the object you are trying to operate on was loaded before unserialize() gets called or provide an autoloader to load the class definition in /var/www/clients/client1/web16/web/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/Neos_Flow_Security_Context.php on line 701

Before doing that, i just tried to generate a new site package over the setup tool. It also fails.

So I am little bit confused, failing in such a early stage and ask for help.

Now i doing a install totally manually:

./flow doctrine:migrate
./flow user:create

If I try to login to the backend, an error appears:

Call to a member function getContext() on null

Exception Code 0
Exception Type Error
Thrown in File Data/Temporary/Development/Cache/Code/Flow_Object_Classes/Neos_Neos_Ui_Controller_BackendController.php
Line 196
Original File Packages/Application/Neos.Neos.Ui/Classes/Controller/BackendController.php

But after create and import a site package it seems to work now.

./flow kickstart:site WL.WeinLaden weinladen.local
./flow site:import WL.WeinLaden