FriendsOfSymfony / FOSCommentBundle

Threaded comments for Symfony
http://friendsofsymfony.github.com/
MIT License
460 stars 231 forks source link

Error during render #356

Closed dspe closed 11 years ago

dspe commented 11 years ago

Hello Everyone,

I'm trying to use FosCommentBundle. Installation is perfect works but i can't render templates. I got this error message:

An exception has been thrown during the rendering of a template ("Unable to render the form as none of the following blocks exist: "_fos_comment_comment_errors", "fos_comment_comment_errors", "form_errors".") in /var/www/ez5/vendor/friendsofsymfony/comment-bundle/FOS/CommentBundle/Resources/views/Thread/comments.html.twig at line 17.

And this is my composer.json file

    "php": ">=5.3.3",
    "zetacomponents/archive": "dev-master#4b2c4a1c24b1e1f831b015c8ff72181aece7b421",
    "zetacomponents/authentication": "dev-master#c422670d09967491c1c8c98f9334f1a738617bd0",
    "zetacomponents/cache": "dev-master#34fa794d0b5aeef67fee609c52c5d24fa4604bbd",
    "zetacomponents/configuration": "dev-master#10ae09f42768d4657b2d1a66226ee63cbd8754b2",
    "zetacomponents/console-tools": "dev-master#90156abef01e4215fda8b9740f77c322f126fb02",
    "zetacomponents/database": "dev-master#0e8ddef8ce616bc18365efa2eef2161de3d7f74f",
    "zetacomponents/debug": "dev-master#0d8cc8fae2765c22f3f1930e4cf738304fbadbaf",
    "zetacomponents/feed": "dev-master#e0190e90caf6f49771410b485fc43ff09a62b725",
    "zetacomponents/image-conversion": "dev-master#aed8cf2e3a17b049add7578fa199c02e3af903c1",
    "zetacomponents/mail": "dev-master#e0120aad96efb41bdfac5583d9cb3863bc2823e7",
    "zetacomponents/mvc-tools": "dev-master#6f2c1eb079faee98f37643d212cec0aa925313b2",
    "zetacomponents/mvc-authentication-tiein": "dev-master#9bae3a7313e2ef7f53ef1f394276acc3fde0f80e",
    "zetacomponents/persistent-object": "dev-master#a4c8b95157919d71db0b380ea7c6375be117eca2",
    "zetacomponents/php-generator": "dev-master#b51935ec5b763e5bad2182d810e1b752fcc83903",
    "zetacomponents/signal-slot": "dev-master#74deb412339a9e9af5937a5d8726f8246b6a9ccc",
    "zetacomponents/system-information": "dev-master#674336286f189d222a275bec32be9123d9faf477",
    "zetacomponents/webdav": "1.1.3",
    "symfony/symfony": "2.1.6",
    "symfony/assetic-bundle": "2.1.x-dev#bd91880b53f86689f6638c9a28b8cc17792896e2",
    "symfony/monolog-bundle": "2.1.5",
    "symfony/swiftmailer-bundle": "2.1.5",
    "twig/extensions": "1.0.x-dev#d1990ffaca93302709d1306d50ae153adb169f49",
    "ezsystems/ezpublish": "dev-master#a53c6d99cf12c48febdfc635f9d5d3346815c826",
    "sensio/generator-bundle": "2.1.5",
    "symfony-cmf/routing": "dev-master#3b152c4a38ddde20bf19d37a4fa6dea022d39532",

    "liip/cache-control-bundle": "1.1.*",

    "friendsofsymfony/comment-bundle": "2.0.*@dev",
    "friendsofsymfony/rest": "0.8.*@dev",
    "sensio/framework-extra-bundle": ">=2.1,<2.3-dev",

    "doctrine/orm": ">=2.2.3,<2.5-dev",
    "doctrine/doctrine-bundle": "1.1.*"

And my config.yml file

# Doctrine Configuration
doctrine:
    dbal:
        driver:   "%database_driver%"
        host:     "%database_host%"
        port:     "%database_port%"
        dbname:   "%database_name%"
        user:     "%database_user%"
        password: "%database_password%"
        charset:  UTF8

    orm:
        auto_generate_proxy_classes: "%kernel.debug%"
        auto_mapping: true

# FOS Comment configuration ...
fos_comment:
    db_driver: orm
    class:
        model:
            comment: ezt\AdvancedBundle\Entity\Comment
            thread: ezt\AdvancedBundle\Entity\Thread

Any idea where the problem is ? Thanks

merk commented 11 years ago

This error has something to do with your configuration not loading the default symfony form's theme. Additionally, specifying commit hashes in composer.json is not a recommended behaviour. Use tagged version numbers.