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

Admin has no subject for GalleryBlockService #2436

Closed
mesiarm opened this issue Jan 20, 2024 · 2 comments · Fixed by #2442
Closed

Admin has no subject for GalleryBlockService #2436

mesiarm opened this issue Jan 20, 2024 · 2 comments · Fixed by #2442

Comments

@mesiarm
Copy link

mesiarm commented Jan 20, 2024

Environment

Sonata packages

show

$ composer show --latest 'sonata-project/*'
# Put the result here.

sonata-project/admin-bundle 4.29.2 4.29.2 The missing Symfony Admin Generator
sonata-project/block-bundle 5.1.0 5.1.0 Symfony SonataBlockBundle
sonata-project/doctrine-extensions 2.3.0 2.3.0 Doctrine2 behavioral extensions
sonata-project/doctrine-orm-admin-bundle 4.15.0 4.15.0 Integrate Doctrine ORM into the SonataAdminBundle
sonata-project/exporter 3.3.0 3.3.0 Lightweight Exporter library
sonata-project/form-extensions 2.3.0 2.3.0 Symfony form extensions
sonata-project/formatter-bundle 5.3.0 5.3.0 Symfony SonataFormatterBundle
sonata-project/intl-bundle 3.2.0 3.2.0 Symfony SonataIntlBundle
sonata-project/media-bundle 4.11.0 4.11.0 Symfony SonataMediaBundle
sonata-project/page-bundle 4.7.1 4.7.1 This bundle provides a Site and Page management through container and block services
sonata-project/seo-bundle 3.8.0 3.8.0 Symfony SonataSeoBundle
sonata-project/translation-bundle 3.3.0 3.3.0 SonataTranslationBundle
sonata-project/twig-extensions 2.4.0 2.4.0 Sonata twig extensions
sonata-project/user-bundle 5.10.0 5.10.0 Symfony SonataUserBundle

Symfony packages

show

$ composer show --latest 'symfony/*'
# Put the result here.

symfony/asset v5.4.31 v6.4.0 Manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files and image files
symfony/browser-kit v5.4.31 v6.4.0 Simulates the behavior of a web browser, allowing you to make requests, click on links and submit forms programmatically
symfony/cache v5.4.34 v6.4.2 Provides extended PSR-6, PSR-16 (and tags) implementations
symfony/cache-contracts v2.5.2 v3.4.0 Generic abstractions related to caching
symfony/config v5.4.31 v6.4.0 Helps you find, load, combine, autofill and validate configuration values of any kind
symfony/console v5.4.34 v6.4.2 Eases the creation of beautiful and testable command line interfaces
symfony/css-selector v5.4.26 v6.4.0 Converts CSS selectors to XPath expressions
symfony/debug-bundle v5.4.26 v6.4.0 Provides a tight integration of the Symfony VarDumper component and the ServerLogCommand from MonologBridge into the Symfony full-stack framework
symfony/dependency-injection v5.4.34 v6.4.2 Allows you to standardize and centralize the way objects are constructed in your application
symfony/deprecation-contracts v3.4.0 v3.4.0 A generic function and convention to trigger deprecation notices
symfony/doctrine-bridge v5.4.34 v6.4.2 Provides integration for Doctrine with various Symfony components
symfony/dom-crawler v5.4.32 v6.4.0 Eases DOM navigation for HTML and XML documents
symfony/dotenv v5.4.34 v6.4.2 Registers environment variables from a .env file
symfony/error-handler v5.4.29 v6.4.0 Provides tools to manage errors and ease debugging PHP code
symfony/event-dispatcher v5.4.34 v6.4.2 Provides tools that allow your application components to communicate with each other by dispatching events and listening to them
symfony/event-dispatcher-contracts v3.4.0 v3.4.0 Generic abstractions related to dispatching event
symfony/expression-language v5.4.21 v6.4.2 Provides an engine that can compile and evaluate expressions
symfony/filesystem v5.4.25 v6.4.0 Provides basic utilities for the filesystem
symfony/finder v5.4.27 v6.4.0 Finds files and directories via an intuitive fluent interface
symfony/flex v2.4.3 v2.4.3 Composer plugin for Symfony
symfony/form v5.4.33 v6.4.1 Allows to easily create, process and reuse HTML forms
symfony/framework-bundle v5.4.34 v6.4.2 Provides a tight integration between Symfony components and the Symfony full-stack framework
symfony/http-client v5.4.34 v6.4.2 Provides powerful methods to fetch HTTP resources synchronously or asynchronously
symfony/http-client-contracts v2.5.2 v3.4.0 Generic abstractions related to HTTP clients
symfony/http-foundation v5.4.34 v6.4.2 Defines an object-oriented layer for the HTTP specification
symfony/http-kernel v5.4.34 v6.4.2 Provides a structured process for converting a Request into a Response
symfony/intl v5.4.30 v6.4.2 Provides a PHP replacement layer for the C intl extension that includes additional data from the ICU library
symfony/mailer v5.4.34 v6.4.2 Helps sending emails
symfony/maker-bundle v1.50.0 v1.52.0 Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.
symfony/mime v5.4.26 v6.4.0 Allows manipulating MIME messages
symfony/monolog-bridge v5.4.31 v6.4.0 Provides integration for Monolog with various Symfony components
symfony/monolog-bundle v3.10.0 v3.10.0 Symfony MonologBundle
symfony/options-resolver v5.4.21 v6.4.0 Provides an improved replacement for the array_replace PHP function
symfony/password-hasher v5.4.31 v6.4.0 Provides password hashing utilities
symfony/phpunit-bridge v5.4.34 v7.0.2 Provides utilities for PHPUnit, especially user deprecation notices management
symfony/polyfill-intl-grapheme v1.28.0 v1.28.0 Symfony polyfill for intl's grapheme_* functions
symfony/polyfill-intl-icu v1.28.0 v1.28.0 Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-intl-idn v1.28.0 v1.28.0 Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-intl-normalizer v1.28.0 v1.28.0 Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring v1.28.0 v1.28.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php72 v1.28.0 v1.28.0 Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/polyfill-php73 v1.28.0 v1.28.0 Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
symfony/polyfill-php80 v1.28.0 v1.28.0 Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
symfony/polyfill-php81 v1.28.0 v1.28.0 Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions
symfony/process v5.4.34 v6.4.2 Executes commands in sub-processes
symfony/property-access v5.4.26 v6.4.0 Provides functions to read and write from/to an object or array using a simple string notation
symfony/property-info v5.4.24 v6.4.0 Extracts information about PHP class' properties using metadata of popular sources
symfony/routing v5.4.34 v6.4.2 Maps an HTTP request to a set of configuration variables
symfony/runtime v5.4.26 v6.4.0 Enables decoupling PHP applications from global state
symfony/security-acl v3.3.3 v3.3.3 Symfony Security Component - ACL (Access Control List)
symfony/security-bundle v5.4.34 v6.4.2 Provides a tight integration of the Security component into the Symfony full-stack framework
symfony/security-core v5.4.30 v6.4.0 Symfony Security Component - Core Library
symfony/security-csrf v5.4.27 v6.4.0 Symfony Security Component - CSRF Library
symfony/security-guard v5.4.27 v5.4.27 Symfony Security Component - Guard
symfony/security-http v5.4.31 v6.4.0 Symfony Security Component - HTTP Integration
symfony/serializer v5.4.34 v6.4.2 Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.
symfony/service-contracts v2.5.2 v3.4.1 Generic abstractions related to writing services
symfony/stopwatch v5.4.21 v6.4.0 Provides a way to profile code
symfony/string v5.4.34 v6.4.2 Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way
symfony/templating v5.4.21 v6.4.0 Provides all the tools needed to build any kind of template system
symfony/translation v5.4.31 v6.4.2 Provides tools to internationalize your application
symfony/translation-contracts v2.5.2 v3.4.1 Generic abstractions related to translation
symfony/twig-bridge v5.4.34 v6.4.2 Provides integration for Twig with various Symfony components
symfony/twig-bundle v5.4.31 v6.4.0 Provides a tight integration of Twig into the Symfony full-stack framework
symfony/validator v5.4.34 v6.4.2 Provides tools to validate values
symfony/var-dumper v5.4.29 v6.4.2 Provides mechanisms for walking through any arbitrary PHP variable
symfony/var-exporter v6.4.2 v6.4.2 Allows exporting any serializable PHP data structure to plain PHP code
symfony/web-link v5.4.21 v6.4.0 Manages links between resources
symfony/web-profiler-bundle v5.4.34 v6.4.2 Provides a development tool that gives detailed information about the execution of any request
symfony/webpack-encore-bundle v2.1.1 v2.1.1 Integration with your Symfony app & Webpack Encore!
symfony/yaml v5.4.31 v6.4.0 Loads and dumps YAML files

PHP version

$ php -v
# Put the result here.

PHP 8.1.10 (cli) (built: Aug 30 2022 18:05:49) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.1.10, Copyright (c) Zend Technologies

Subject

I´m getting error Admin "Sonata\MediaBundle\Admin\GalleryAdmin" has no subject. when using Sonata\MediaBundle\Block\GalleryBlockService. Same error for MediaBlockService was solved here: https://github.com/sonata-project/SonataMediaBundle/issues/2401

@VincentLanglet
Copy link
Member

Hi, does this solve your issue #2442 @mesiarm ?

@mesiarm
Copy link
Author

mesiarm commented Jan 27, 2024

Yes, media gallery block now works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants