Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Validator] [Critical] Form validation broken on PHP < 5.3.8 #11580

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

Closed
michaelperrin opened this issue Aug 6, 2014 · 2 comments
Closed

[Validator] [Critical] Form validation broken on PHP < 5.3.8 #11580

michaelperrin opened this issue Aug 6, 2014 · 2 comments

Comments

@michaelperrin
Copy link
Contributor

Since Symfony 2.5.3 update, any form validation doesn't work and gives the following error on PHP < 5.3.8 (I know, that's a shame to use such old versions):

Attempted to call method "getValidator" on class "Symfony\Component\Validator\ExecutionContext" in /var/www/beegreen_recetteprojet/sf/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Validator/Constraints/FormValidator.php line 56.

I will give as much information as I can on this issue so that it can be reproduced and be fixed.

@michaelperrin michaelperrin changed the title [Bug] [Form] [Critical] Form validation broken on PHP < 5.3.8 [Validator] [Critical] Form validation broken on PHP < 5.3.8 Aug 6, 2014
@stof stof added Bug labels Aug 6, 2014
@stof
Copy link
Member

stof commented Aug 6, 2014

@webmozart it looks like the LegacyConstraintValidatorFactory is not used when the 2.4 API is selected in auto mode.

@webmozart
Copy link
Contributor

Fixed in the referenced PR.

xabbuh referenced this issue Aug 8, 2014
….5 Validation API (webmozart)

This PR was merged into the 2.5 branch.

Discussion
----------

[Form] Fixed FormValidator compatibility with the non-BC 2.5 Validation API

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #11568
| License       | MIT
| Doc PR        | -

Commits
-------

6ac130e [Form] Fixed FormValidator compatibility with the non-BC 2.5 Validation API
webmozart added a commit that referenced this issue Aug 18, 2014
…the Validator API is "auto" for PHP < 5.3.9 (webmozart)

This PR was merged into the 2.5 branch.

Discussion
----------

[FrameworkBundle] Fixed validator factory definition when the Validator API is "auto" for PHP < 5.3.9

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #11580
| License       | MIT
| Doc PR        | -

Commits
-------

a74b758 [FrameworkBundle] Fixed validator factory definition when the Validator API is "auto" for PHP < 5.3.9
cmuench added a commit to netz98/n98-magerun that referenced this issue Aug 23, 2014
steverobbins pushed a commit to steverobbins/n98-magerun that referenced this issue Apr 7, 2015
steverobbins pushed a commit to steverobbins/n98-magerun that referenced this issue Apr 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants