2
votes

I'm installing sylius-standard.

When i run the cmd: $ app/console sylius:install

Step 3 of 4. Shop configuration return this error:

[Symfony\Component\Debug\Exception\ContextErrorException]
Warning: ini_set(): A session is active. You cannot change the session modu
le's ini settings at this time

php.ini -> session.auto_start = 0

How can i fix this?

Thanks.

1
me too but in the previous stepMatteo
@Matteo check the answer posted.San Thapa

1 Answers

8
votes

Faced same problem, and I got this fixed as, observe the session property at app/config.yml at sylius installation time,

framework:
    translator:      { fallback: %sylius.locale% }
    secret:          %sylius.secret%
    /****************
    *Other pramaters*
    *****************/
    trusted_proxies: ~
    session:         ~

now change the session as

trusted_proxies: ~
session:
    handler_id:  ~

Then , re-run command (mine solved when I re-run command after this config). Done.

If this doesn't solve your problem. Try changing your php.ini settings to session.auto_start = 0.