-
-
Notifications
You must be signed in to change notification settings - Fork 495
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
Attempted to call an undefined method named "buildCreateForm" of class "Sonata\MediaBundle\Block\*MediaBlockService". Did you mean to call "buildEditForm"? #1731
Comments
I guess adding
to MediaBlockService would be enough? |
I'm still waiting for an answer. |
Can you provide a PR with a fix @haivala ? |
@core23 Is that how it should be handled? |
This commit is problem. 9533247 After change AbstractAdminBlockService to AbstractBlockService some methods are missing (for Block 3 support). We should also add EditebleBlockServie to this change to keep info about using in Admin(required in Block 4). |
cc @franmomu |
Sorry I didn't see the mention, IMHO we should fix the BC break and then (in another PR) see how to be compatible with BlockBundle 4. |
Environment
Sonata packages
Symfony packages
PHP version
Subject
Open PageBundles composer and try to add this bundles Block I get this error:
Attempted to call an undefined method named "buildCreateForm" of class "Sonata\MediaBundle\Block\FeatureMediaBlockService". Did you mean to call "buildEditForm"?
The blocks from this bundle don't even have names in page bundles composer.
Steps to reproduce
Open composer in page bundle.
Try to add media block anywhere.
Expected results
No error.
Actual results
Attempted to call an undefined method named "buildCreateForm" of class "Sonata\MediaBundle\Block\FeatureMediaBlockService". Did you mean to call "buildEditForm"?
The text was updated successfully, but these errors were encountered: