![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 66 Pomógł: 0 Dołączył: 5.11.2014 Ostrzeżenie: (0%) ![]() ![]() |
Witam,
Używając sonata admin, user i fosuser, mam problem, panel administratora działa, logowanie i rejestracja dla zwykłych uzytkoników też, lecz wejście na profil użytkownika już nie gdy wchodzę na mojastrona.pl/profile dostaje taki oto błąd:
Nie rozumiem co to za wartość "null" któej nie przekazuje. Domyślam siężę to jakieś błędne przekierowanie na vidok ale nie rozumiem jak to naprawić. Moj pliki konfiguracyjny: config.yml CODE imports:
- { resource: parameters.yml } - { resource: security.yml } - { resource: services.yml } # Put parameters here that don't need to change on each machine where the app is deployed # http://symfony.com/doc/current/best_practi...d-configuration parameters: locale: en framework: #esi: ~ translator: { fallbacks: %locale% } secret: "%secret%" router: resource: "%kernel.root_dir%/config/routing.yml" strict_requirements: ~ form: ~ csrf_protection: ~ validation: { enable_annotations: true } #serializer: { enable_annotations: true } templating: engines: ['twig'] #assets_version: SomeVersionScheme default_locale: "%locale%" trusted_hosts: ~ trusted_proxies: ~ session: # handler_id set to null will use default session handler from php.ini handler_id: ~ fragments: ~ http_method_override: true # Twig Configuration twig: debug: "%kernel.debug%" strict_variables: "%kernel.debug%" # Doctrine Configuration doctrine: dbal: driver: pdo_mysql host: "%database_host%" port: "%database_port%" dbname: "%database_name%" user: "%database_user%" password: "%database_password%" charset: UTF8 types: json: Sonata\Doctrine\Types\JsonType # if using pdo_sqlite as your database driver: # 1. add the path in parameters.yml # e.g. database_path: "%kernel.root_dir%/data/data.db3" # 2. Uncomment database_path in parameters.yml.dist # 3. Uncomment next line: # path: "%database_path%" orm: auto_generate_proxy_classes: "%kernel.debug%" naming_strategy: doctrine.orm.naming_strategy.underscore auto_mapping: true # Swiftmailer Configuration swiftmailer: transport: "%mailer_transport%" host: "%mailer_host%" username: "%mailer_user%" password: "%mailer_password%" spool: { type: memory } sonata_admin: title: "Mgr" security: handler: sonata.admin.security.handler.role templates: dashboard: SonataAdminBundle:Core:dashboard.html.twig layout: AppBundle::standard_layout.html.twig #layout: SonataAdminBundle::standard_layout.html.twig ajax: SonataAdminBundle::ajax_layout.html.twig list: SonataAdminBundle:CRUD:list.html.twig show: SonataAdminBundle:CRUD:show.html.twig show_compare: SonataAdminBundle:CRUD:show_compare.html.twig edit: SonataAdminBundle:CRUD:edit.html.twig history: SonataAdminBundle:CRUD:history.html.twig preview: SonataAdminBundle:CRUD:preview.html.twig delete: SonataAdminBundle:CRUD:delete.html.twig batch: SonataAdminBundle:CRUD:list__batch.html.twig acl: SonataAdminBundle:CRUD:acl.html.twig # action: SonataAdminBundle:CRUD:action.html.twig action: SonataUserBundle:Profile:action.html.twig select: SonataAdminBundle:CRUD:list__select.html.twig filter: SonataAdminBundle:Form:filter_admin_fields.html.twig dashboard: SonataAdminBundle:Core:dashboard.html.twig search: SonataAdminBundle:Core:search.html.twig batch_confirmation: SonataAdminBundle:CRUD:batch_confirmation.html.twig inner_list_row: SonataAdminBundle:CRUD:list_inner_row.html.twig base_list_field: SonataAdminBundle:CRUD:base_list_field.html.twig list_block: SonataAdminBundle:Block:block_admin_list.html.twig user_block: SonataAdminBundle:Core:user_block.html.twig add_block: SonataAdminBundle:Core:add_block.html.twig pager_links: SonataAdminBundle:Pager:links.html.twig pager_results: SonataAdminBundle:Pager:results.html.twig tab_menu_template: SonataAdminBundle:Core:tab_menu_template.html.twig history_revision_timestamp: SonataAdminBundle:CRUD:history_revision_timestamp.html.twig short_object_description: SonataAdminBundle:Helper:short-object-description.html.twig search_result_block: SonataAdminBundle:Block:block_search_result.html.twig sonata_block: default_contexts: [cms] blocks: sonata.user.block.menu: # used to display the menu in profile pages sonata.user.block.account: # used to display menu option (login option) sonata.block.service.text: # used to if you plan to use Sonata user routes sonata.block.service.rss: # used to if you plan to use Sonata user routes sonata.admin.block.admin_list: contexts: [admin] fos_user: db_driver: orm firewall_name: main user_class: Application\Sonata\UserBundle\Entity\User group: group_class: Application\Sonata\UserBundle\Entity\Group group_manager: sonata.user.orm.group_manager # If you're using doctrine orm (use sonata.user.mongodb.group_manager for mongodb) profile: form: type: fos_user_profile handler: fos_user.profile.form.handler.default name: fos_user_profile_form validation_groups: [Authentication] #[Profile, Default] # Please note : this is not the default value service: user_manager: sonata.user.orm.user_manager sonata_user: security_acl: false class: user: Application\Sonata\UserBundle\Entity\User group: Application\Sonata\UserBundle\Entity\Group manager_type: orm # google_authenticator: # enabled: true # server: storagedev.com profile: # Profile show page is a dashboard as in SonataAdminBundle dashboard: blocks: - { position: left, type: sonata.block.service.text, settings: { content: "<h2>Welcome!</h2> This is a sample user profile dashboard, feel free to override it in the configuration! Want to make this text dynamic? For instance display the user's name? Create a dedicated block and edit the configuration!"} } - { position: left, type: sonata.order.block.recent_orders, settings: { title: Recent Orders, number: 5, mode: public }} - { position: right, type: sonata.timeline.block.timeline, settings: { max_per_page: 15 }} - { position: right, type: sonata.news.block.recent_posts, settings: { title: Recent Posts, number: 5, mode: public }} - { position: right, type: sonata.news.block.recent_comments, settings: { title: Recent Comments, number: 5, mode: public }} # Customize user portal menu by setting links menu: - { route: 'sonata_user_profile_show', label: 'sonata_profile_title', domain: 'SonataUserBundle'} - { route: 'sonata_user_profile_edit', label: 'link_edit_profile', domain: 'SonataUserBundle'} - { route: 'sonata_customer_addresses', label: 'link_list_addresses', domain: 'SonataCustomerBundle'} - { route: 'sonata_user_profile_edit_authentication', label: 'link_edit_authentication', domain: 'SonataUserBundle'} - { route: 'sonata_order_index', label: 'order_list', domain: 'SonataOrderBundle'} form: type: sonata_user_profile handler: sonata.user.profile.form.handler.default name: sonata_user_profile_form validation_groups: [Profile] doctrine: orm: entity_managers: default: mappings: ApplicationSonataUserBundle: ~ SonataUserBundle: ~ FOSUserBundle: ~ dbal: types: json: Sonata\Doctrine\Types\JsonType |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 20.05.2025 - 04:43 |