Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After upgrade to 3.3 error: Undefined class constant 'HEADER_X_FORWARDED_FOR' #23400

Closed
Snodvod opened this issue Jul 5, 2017 · 2 comments
Closed

Comments

@Snodvod
Copy link

Snodvod commented Jul 5, 2017

Q A
Bug report? no
Feature request? no
BC Break report? yes
RFC? no
Symfony version 3.3.3

After updating to symfony 3.3 I get this error:

Fatal error: Undefined class constant 'HEADER_X_FORWARDED_FOR' in /var/www/***/***/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Fragment/InlineFragmentRenderer.php on line 122

This only happens when I visit the site in production environment. When using app_dev.php this error is not thrown...

Any ideas on this?

@szymach
Copy link

szymach commented Jul 5, 2017

Remove bootstrap.cache.php and regenerate it.

@Snodvod
Copy link
Author

Snodvod commented Jul 5, 2017

Oh great, thanks a lot!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants