Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fluid:schema:generate - throw an exception #123

Open
ryze-typo3-developer opened this issue Sep 26, 2024 · 5 comments
Open

fluid:schema:generate - throw an exception #123

ryze-typo3-developer opened this issue Sep 26, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@ryze-typo3-developer
Copy link

In TYPO3 v13.3 if i am on the console run "vendor/bin/typo3 fluid:schema:generate" it throw an exception:

Uncaught TYPO3 Exception Typed property Brotkrueml\Schema\Core\ViewHelpers\AbstractTypeViewHelper::$modelTemplate must not be accessed before initialization
thrown in file /var/www/html/domains/ryze-typo3-standard/vendor/brotkrueml/schema/Classes/Core/ViewHelpers/AbstractTypeViewHelper.php
in line 41

@brotkrueml
Copy link
Owner

brotkrueml commented Sep 26, 2024

@ryze-typo3-developer Thanks for your report. Sadly, this cannot be fixed easily on my side. If I adjust the $modelTemplate part another error occurs:

Uncaught TYPO3 Exception Call to a member function getPropertyNames() on null

It seems that the command also collects abstract view helper classes (which it shouldn't) - will have a look into the command.

@brotkrueml
Copy link
Owner

Okay, it is not the AbstractTypeViewHelper, but the first type view helper found: schema/Classes/ViewHelpers/Type/BeachViewHelper.php

@brotkrueml
Copy link
Owner

brotkrueml commented Sep 26, 2024

It is this part of code in \TYPO3Fluid\Fluid\Schema\ViewHelperMetadataFactory who produces the error:

(new \ReflectionClass($className))->newInstanceWithoutConstructor()->prepareArguments()

@brotkrueml
Copy link
Owner

Will take care, but have to think about this.

@brotkrueml brotkrueml added the bug Something isn't working label Sep 26, 2024
@brotkrueml
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants