AliHichem / AliDatatableBundle

Symfony2 Ajax Datagrid Bundle for doctrine2 entities
MIT License
112 stars 71 forks source link

FatalErrorException in DatatableListener #127

Closed webkod3r closed 9 years ago

webkod3r commented 9 years ago

Hi @AliHichem I need your help as soon as possible, please. I'm using the last version of symfony 2.3 branch and "ali/datatable": "dev-master". Just including this line in AppKernel.php:

new Ali\DatatableBundle\AliDatatableBundle(),

and this one in config.yml

ali_datatable:
    all:
        action: true
        search: false
    js:
        iDisplayLength: "10"
        aLengthMenu: "[[5,10, 25, 50, -1], [5,10, 25, 50, 'Todo']]"

I got this error:

FatalErrorException: Error: Call to undefined method Symfony\Component\HttpKernel\Event\FilterResponseEvent::isMasterRequest() in D:\Work\Projects\Acme\vendor\ali\datatable\Ali\DatatableBundle\EventListener\DatatableListener.php line 42

This tag dev-master include the version 2.0 for this bundle? You've seen this error before? Have you any idea how to fix this?

Thanks in advance WK

AliHichem commented 9 years ago

The version 2 was basically built and tested on Symfony2.7. I'm pretty sure it works well with sf2.6 but I have no guarantee it's compatible with sf < 2.6 .. I still need to do some testing to settle this requirement and put it in composer.json, in the meanwhile I strongly recommend you move to sf2.7 as it is the current stable LTS version of symfony2.

webkod3r commented 9 years ago

Ok, thanks for your answer. I'll have to move the project to symfony 2.7 but not now ;-)

Thank you very much.