ruian / RuianUploadifyBundle

Add Uploadify support for symfony2
21 stars 8 forks source link

Setup Problems #7

Closed umpirsky closed 12 years ago

umpirsky commented 12 years ago

I tried to add Uploadify to my secured admin area and I got:

[2012-04-09 13:45:50] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest". [] []
[2012-04-09 13:45:50] event.DEBUG: Notified event "kernel.request" to listener "Ruian\UploadifyBundle\Listener\RequestListener::onKernelRequest". [] []
[2012-04-09 13:45:50] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest". [] []
[2012-04-09 13:45:50] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest". [] []
[2012-04-09 13:45:50] request.INFO: Matched route "sylius_assortment_backend_product_show" (parameters: "_controller": "sylius_assortment.controller.backend.product:showAction", "id": "upload", "_route": "sylius_assortment_backend_product_show") [] []
[2012-04-09 13:45:50] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest". [] []
[2012-04-09 13:45:50] event.DEBUG: Notified event "kernel.request" to listener "Sylius\Bundle\ThemingBundle\EventDispatcher\Listener\RequestListener::onKernelRequest". [] []
[2012-04-09 13:45:50] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest". [] []
[2012-04-09 13:45:50] security.INFO: Populated SecurityContext with an anonymous Token [] []
[2012-04-09 13:45:50] event.DEBUG: Notified event "kernel.exception" to listener "Symfony\Component\Security\Http\Firewall\ExceptionListener::onKernelException". [] []
[2012-04-09 13:45:50] security.DEBUG: Access is denied (user is not fully authenticated) by "/home/my/Projects/demo-upload/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php" at line 70; redirecting to authentication entry point [] []
[2012-04-09 13:45:50] security.DEBUG: Calling Authentication entry point [] []
[2012-04-09 13:45:50] event.DEBUG: Listener "Symfony\Component\Security\Http\Firewall\ExceptionListener::onKernelException" stopped propagation of the event "kernel.exception". [] []
[2012-04-09 13:45:50] event.DEBUG: Listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelException" was not called for event "kernel.exception". [] []
[2012-04-09 13:45:50] event.DEBUG: Listener "Symfony\Component\HttpKernel\EventListener\ExceptionListener::onKernelException" was not called for event "kernel.exception". [] []
[2012-04-09 13:45:50] event.DEBUG: Notified event "kernel.response" to listener "Symfony\Component\Security\Http\Firewall\ContextListener::onKernelResponse". [] []
[2012-04-09 13:45:50] security.DEBUG: Write SecurityContext in the session [] []
[2012-04-09 13:45:50] event.DEBUG: Notified event "kernel.response" to listener "Symfony\Bundle\SecurityBundle\EventListener\ResponseListener::onKernelResponse". [] []
[2012-04-09 13:45:50] event.DEBUG: Notified event "kernel.response" to listener "Symfony\Component\HttpKernel\EventListener\ResponseListener::onKernelResponse". [] []
[2012-04-09 13:45:50] event.DEBUG: Notified event "kernel.response" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelResponse". [] []
[2012-04-09 13:45:50] event.DEBUG: Notified event "kernel.response" to listener "Symfony\Bundle\WebProfilerBundle\EventListener\WebDebugToolbarListener::onKernelResponse". [] []
[2012-04-09 13:45:50] event.DEBUG: Notified event "kernel.response" to listener "Symfony\Component\HttpKernel\EventListener\StreamedResponseListener::onKernelResponse". [] []

After enabling anonymous access I got:

[2012-04-09 13:48:42] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest". [] []
[2012-04-09 13:48:42] event.DEBUG: Notified event "kernel.request" to listener "Ruian\UploadifyBundle\Listener\RequestListener::onKernelRequest". [] []
[2012-04-09 13:48:42] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest". [] []
[2012-04-09 13:48:42] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest". [] []
[2012-04-09 13:48:42] request.INFO: Matched route "sylius_assortment_backend_product_show" (parameters: "_controller": "sylius_assortment.controller.backend.product:showAction", "id": "upload", "_route": "sylius_assortment_backend_product_show") [] []
[2012-04-09 13:48:42] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest". [] []
[2012-04-09 13:48:42] event.DEBUG: Notified event "kernel.request" to listener "Sylius\Bundle\ThemingBundle\EventDispatcher\Listener\RequestListener::onKernelRequest". [] []
[2012-04-09 13:48:42] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest". [] []
[2012-04-09 13:48:42] security.INFO: Populated SecurityContext with an anonymous Token [] []
[2012-04-09 13:48:42] event.DEBUG: Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RequestDataCollector::onKernelController". [] []
[2012-04-09 13:48:42] event.DEBUG: Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController". [] []
[2012-04-09 13:48:42] event.DEBUG: Notified event "kernel.exception" to listener "Symfony\Component\Security\Http\Firewall\ExceptionListener::onKernelException". [] []
[2012-04-09 13:48:42] event.DEBUG: Notified event "kernel.exception" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelException". [] []
[2012-04-09 13:48:42] event.DEBUG: Notified event "kernel.exception" to listener "Symfony\Component\HttpKernel\EventListener\ExceptionListener::onKernelException". [] []
[2012-04-09 13:48:42] request.CRITICAL: Doctrine\ORM\Query\QueryException: [Semantical Error] line 0, col 143 near 'upload': Error: 'upload' is not defined. (uncaught exception) at /home/my/Projects/demo-upload/vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php line 47 [] []
[2012-04-09 13:48:42] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest". [] []
[2012-04-09 13:48:42] event.DEBUG: Notified event "kernel.request" to listener "Ruian\UploadifyBundle\Listener\RequestListener::onKernelRequest". [] []
[2012-04-09 13:48:42] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest". [] []
[2012-04-09 13:48:42] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest". [] []
[2012-04-09 13:48:42] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest". [] []
[2012-04-09 13:48:42] event.DEBUG: Notified event "kernel.request" to listener "Sylius\Bundle\ThemingBundle\EventDispatcher\Listener\RequestListener::onKernelRequest". [] []
[2012-04-09 13:48:42] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest". [] []
[2012-04-09 13:48:42] event.DEBUG: Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RequestDataCollector::onKernelController". [] []
[2012-04-09 13:48:42] event.DEBUG: Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController". [] []
ruian commented 12 years ago

Hmm have you follow the README ? Because i've just re-test it and i don't have any error like these :/

umpirsky commented 12 years ago

Yes, followed README. Maybe it's something project specific, I'll recheck it. Thanks for fast response, really appreciate it.

umpirsky commented 12 years ago

Here is what I did and got errors reported above.

Did I do something wrong?

ruian commented 12 years ago

i'm checking with your sandbox but it seem there is a conflict with the session :/ I'm keeping searching

umpirsky commented 12 years ago

@ruian I guess you already know about this bug.

umpirsky commented 12 years ago

@ruian I just want to let you know that I've fixed 2nd problem (Doctrine\ORM\Query\QueryException: [Semantical Error] line 0, col 143 near 'upload': Error: 'upload' is not defined. (uncaught exception) at /home/my/Projects/demo-upload/vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php line 47 [] []). I had some issue with routes. I'm not sure about security , but I'll check soon and let you know if everithing works fine.

Thanks for your support.