JMSSecurityExtraBundle icon indicating copy to clipboard operation
JMSSecurityExtraBundle copied to clipboard

Getting Context Error Exception with Symfony 2.3.6

Open AStew8 opened this issue 12 years ago • 9 comments

When do a composer update, I am getting the following error message:

[Symfony\Component\Debug\Exception\ContextErrorException]
Notice: Undefined index: access in D:\dev\my_SF2project\vendor\jms\security-extra-bundle\JMS\SecurityExtraBundle\DependencyInjection\SecurityExtension.php line 109

I am running on a Windows 7 machine running PHP 5.4.17. I have cleared my cache before composer update/install. Any suggestions or is this a bug? Here is a partial of my composer.json file.

    "require": {
        ....
        "jms/serializer-bundle": "0.12.*",
        "jms/security-extra-bundle": "1.5.*",
        "jms/di-extra-bundle": "1.4.*",
    },
......

AStew8 avatar Oct 30 '13 06:10 AStew8

Getting the same exception when configuring security -> access_control -> requires_channel: https

mahono avatar Jan 30 '14 09:01 mahono

i got the same problem SF 2.4.2, this bundle 1.5.1

nysander avatar Feb 25 '14 21:02 nysander

Any solution?

sabliao avatar Jul 09 '14 23:07 sabliao

Me too. Windows 7 Php 5.5.28 "Symfony\Component\Debug\Exception\ContextErrorException Notice: Undefined index: access:" I'm trying to implement the Symfony2 AdminGenerator, Help Please mister Schmitt!

atamashi avatar Sep 07 '15 19:09 atamashi

I'm vey interesting for Symfony2 AdminGenerator documentation. Congratulations! This is excellent Bundle!!

atamashi avatar Sep 07 '15 19:09 atamashi

+1 same problem when configuring security.yml access_control -> allow_if

qdequippe avatar Apr 26 '16 14:04 qdequippe

Same problem here when using allow_if instead of roles ( symfony 2.7)

Assem avatar Oct 29 '16 06:10 Assem

same issue with 2.8

wuestkamp avatar Sep 02 '17 17:09 wuestkamp

Solution seems to use "access" instead of "allow_if": http://jmsyst.com/bundles/JMSSecurityExtraBundle/master/expressions#usage-in-access-control

wuestkamp avatar Sep 02 '17 17:09 wuestkamp