punktDe / form-persistence

Persist form data to the database and makes them downloadable
MIT License
6 stars 7 forks source link

Missing dependency on Neos.Form.Builder #36

Open kdambekalns opened 2 years ago

kdambekalns commented 2 years ago

I installed the package and see this during compile:

Exception #1355480641 in line 646 of /application/Packages/Framework/Neos.Flow/Classes/Core/Booting/Scripts.php: Node type "Neos.Form.Builder:AbstractFinisher" does not exist

  Type: Neos\ContentRepository\Exception
  Code: 1316451800
  File: Data/Temporary/Development/SubContextBeach/SubContextInstance/Cache/Code/Fl
        ow_Object_Classes/Neos_ContentRepository_Domain_Service_NodeTypeManager.php
  Line: 244

Open Data/Logs/Exceptions/20220314090155ea784b.txt for a full stack trace.

14 Neos\Flow\Core\Booting\Scripts::executeCommand("neos.flow:doctrine:compileproxies", array|16|)
13 Neos\Flow\Core\Booting\Scripts::compileDoctrineProxies(Neos\Flow\Core\Bootstrap)
12 Neos\Flow\Core\Booting\Scripts::initializeProxyClasses(Neos\Flow\Core\Bootstrap)
11 call_user_func(array|2|, Neos\Flow\Core\Bootstrap)
10 Neos\Flow\Core\Booting\Step::__invoke(Neos\Flow\Core\Bootstrap)
9 Neos\Flow\Core\Booting\Sequence::invokeStep(Neos\Flow\Core\Booting\Step, Neos\Flow\Core\Bootstrap)
8 Neos\Flow\Core\Booting\Sequence::invokeStep(Neos\Flow\Core\Booting\Step, Neos\Flow\Core\Bootstrap)
7 Neos\Flow\Core\Booting\Sequence::invokeStep(Neos\Flow\Core\Booting\Step, Neos\Flow\Core\Bootstrap)
6 Neos\Flow\Core\Booting\Sequence::invokeStep(Neos\Flow\Core\Booting\Step, Neos\Flow\Core\Bootstrap)
5 Neos\Flow\Core\Booting\Sequence::invoke(Neos\Flow\Core\Bootstrap)
4 Neos\Flow\Cli\CommandRequestHandler::boot("Runtime")
3 Neos\Flow\Cli\CommandRequestHandler::handleRequest()
2 Neos\Flow\Core\Bootstrap::run()
1 require("/application/Packages/Framework/Neos.Flow/Scripts/flow.php")

Indeed:

'PunktDe.Form.Persistence:SaveFormDataFinisher':
  superTypes:
    'Neos.Form.Builder:AbstractFinisher': true

But the package does not depend on neos/form-builder

kdambekalns commented 2 years ago

Potential workaround if the form builder is not used/needed:

Add NodeTypes.Overrides.PunktDeForm.yaml with:

'PunktDe.Form.Persistence:SaveFormDataFinisher': ~