sonata-project / SonataAdminBundle

The missing Symfony Admin Generator
https://docs.sonata-project.org/projects/SonataAdminBundle
MIT License
2.11k stars 1.26k forks source link

Template not found list_outer_rows_tree.html.twig #4266

Closed vmtzkr closed 4 years ago

vmtzkr commented 7 years ago

Environment

MacOS Sierra / XAMPP

Sonata packages

$ composer show sonata-project/*
sonata-project/admin-bundle              3.10.3 The missing Symfony Admin Generator
sonata-project/block-bundle              3.2.0  Symfony SonataBlockBundle
sonata-project/cache                     1.0.7  Cache library
sonata-project/classification-bundle     3.2.0  Symfony SonataClassificationBundle
sonata-project/core-bundle               3.1.2  Symfony SonataCoreBundle
sonata-project/datagrid-bundle           2.2    Symfony SonataDatagridBundle
sonata-project/doctrine-extensions       1.0.2  Doctrine2 behavioral extensions
sonata-project/doctrine-orm-admin-bundle 3.1.2  Symfony Sonata / Integrate Doctrine ORM into the SonataAdminBundle
sonata-project/easy-extends-bundle       2.1.10 Symfony SonataEasyExtendsBundle
sonata-project/exporter                  1.7.0  Lightweight Exporter library
sonata-project/google-authenticator      1.0.2  Library to integrate Google Authenticator into a PHP project
sonata-project/intl-bundle               2.2.4  Symfony SonataIntlBundle
sonata-project/media-bundle              3.3.0  Symfony SonataMediaBundle
sonata-project/notification-bundle       3.0.0  Symfony SonataNotificationBundle
sonata-project/user-bundle               3.2.0  Symfony SonataUserBundle

Symfony packages

$ composer show symfony/*
symfony/monolog-bundle     v2.12.1 Symfony MonologBundle
symfony/phpunit-bridge     v2.8.15 Symfony PHPUnit Bridge
symfony/polyfill-apcu      v1.3.0  Symfony polyfill backporting apcu_* functions to lower PHP versions
symfony/polyfill-intl-icu  v1.3.0  Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-mbstring  v1.3.0  Symfony polyfill for the Mbstring extension
symfony/polyfill-php54     v1.3.0  Symfony polyfill backporting some PHP 5.4+ features to lower PHP versions
symfony/polyfill-php55     v1.3.0  Symfony polyfill backporting some PHP 5.5+ features to lower PHP versions
symfony/polyfill-php56     v1.3.0  Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
symfony/polyfill-php70     v1.3.0  Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions
symfony/polyfill-util      v1.3.0  Symfony utilities for portability of PHP codes
symfony/security-acl       v3.0.0  Symfony Security Component - ACL (Access Control List)
symfony/swiftmailer-bundle v2.4.2  Symfony SwiftmailerBundle
symfony/symfony            v2.8.15 The Symfony PHP framework

PHP version

$ php -v
PHP 5.6.27 (cli) (built: Oct 23 2016 11:47:58) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

Subject

Steps to reproduce

Download the 3.x branch and try to find the template under the defined location. This location is specified in the config yaml (https://sonata-project.org/bundles/admin/master/doc/reference/configuration.html).

Expected results

The template should be there.

Actual results

Unable to find template "SonataAdminBundle:CRUD:list_outer_rows_tree.html.twig" (looked into: /Users////app/Resources/views, /Users////vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form, /Users///***/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views) in SonataAdminBundle:CRUD:base_list.html.twig at line 76.

greg0ire commented 7 years ago

You should format that properly.

borjadinamic commented 7 years ago

Any fix for this issue? The bug stills there.

greg0ire commented 7 years ago

@borjadinamic can you have a look into it?

RedPaes commented 7 years ago

Run into the same Issue. I don't found this file on searching for it in the sonata-admin Repo. Where should it come from?

greg0ire commented 7 years ago

@RedPaes I think it's a missing template, here are similar files

locate list_outer_rows     
/home/gparis/dev/SonataAdminBundle/Resources/views/CRUD/list_outer_rows_list.html.twig
/home/gparis/dev/SonataAdminBundle/Resources/views/CRUD/list_outer_rows_mosaic.html.twig
RedPaes commented 7 years ago

Yes this is the problem. Found the solution i use the sonata-admin-tree-bundle there i forgot to add the AdminController to the service:

admin.category: class: TopangeboteBundle\Admin\CategoryAdmin arguments: [~, TopangeboteBundle\Entity\Category,TopangeboteBundle:Admin\CategoryAdmin, 'name' ]

( I know is not a problem from sonata-admin but maybe usefull for somewhere else.)

But as i understand the sonata admin bundle does not provide any tree functionality. Only through other bundles? So should this list_outer_rows_tree.html.twig life in the admin bundle or third part software? So is a issue of documentation of sonata-admin or is the plan to implement somthing like https://github.com/redco/sonata-admin-tree-bundle does? @greg0ire : Thank you for your fast reply.

greg0ire commented 7 years ago

Not sure. Please have a look at the history to see who introduced the tree feature and ping that person

Ragash commented 6 years ago

The bug is still here. i have the exact same problem

greg0ire commented 6 years ago

Please have a look at the history to see who introduced the tree feature and ping that person

Ragash commented 6 years ago

the problems seems to be here at last from 2015, cannot going back to there from history

greg0ire commented 6 years ago

Why not?

Ragash commented 6 years ago

Still learning how using github effectively, in anycases i searched even into the 2.x to go even more back to the history, but it seems that twig file is missing from the 2012

greg0ire commented 6 years ago

You could use git, the cli tool, with the --follow in case the files was renamed git log --follow -p path

jordisala1991 commented 6 years ago

It was added here: https://github.com/sonata-project/SonataAdminBundle/commit/7d0322b53622ac506ec876a1bb19019ec58d3d99

Seems like it was half implemented. But the template was never put in place.

boogiewoogieman commented 6 years ago

Has anyone found the missing file yet?

greg0ire commented 6 years ago

@boogiewoogieman there is nothing to find, it never existed, as said before.

stale[bot] commented 4 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.