Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

I18nRouter construct, object is being passed instead of array. #46

Closed
rifeman2007 opened this Issue Jun 13, 2012 · 9 comments

Comments

Projects
None yet
6 participants

Hi,

Could you help me with this. I have installed the bundle using composer and added configuration properly but I have encountered this problem.

ErrorException: Catchable Fatal Error: Argument 5 passed to JMS\I18nRoutingBundle\Router\I18nRouter::__construct() must be an array, object given, called in app\cache\dev\appDevDebugProjectContainer.php on line 2132 and defined in app\cache\dev\classes.php line 10421

Thanks.

madc commented Jun 13, 2012

The Bundle seems to be broken since this Symfony2 commit: merged branch Seldaek/route-gen (PR #4534)
Last working version is ef41e308cc.

same problem here

Kifah commented Jun 14, 2012

same here.

Kifah commented Jun 14, 2012

Is there a workaround on this? or somewhere i can edit in the code?

You can remove the "array" type in the last parameter of I18nRouter.php constructor.

stof commented Jun 14, 2012

@rifeman2007 this would not solve the issue as the I18nRouter would still consider it as an array whereas it would receive a logger

Kifah commented Jun 14, 2012

I disabled the bundle all together, the site works on my main language:en.but switching between languages does not work anymore.

Owner

schmittjoh commented Jun 14, 2012

I've pushed a workaround for this:
b747f60

Let me know if that works for current master.

it works fine, thank you much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment