#105342Distribution Extension does not create page-tree
Description
Hello,
while activating following extension in ExtensionManager no pages will be created: https://github.com/TYPO3-Documentation/t3docs-examples. In logs you will find following Exception thrown from TcaSchemaFactory:
```
UndefinedSchemaException: No TCA schema exists for the name “pages”.
```
- In Bootstrap::init():155 was filled correctly
- After a while it hops into PackageActivationService::activate
- Rebuild Schema: $this->tcaSchemaFactory->rebuild($GLOBALS[‘TCA’]); Works, but that method is for functional tests only ;-)
- ImportExportUtility::importT3DFile
- Import::importData
- Import::writePages -> creates new DataHandler instance
- DataHandler::process_datamap
- DataHandler::initializeSlugFieldsToEmptyString
- While calling TcaSchemaFactory::get() the schema property is suddly empty
DataHandler is declared “shared: false” and injects TcaSchemaFactory which is declared “shared: true”
I remember a discussion with Lolli that such relations are problematic. Maybe that’s why a * new* instamce of TcaSchemaFactory was created?
Nice greetings
Stefan