-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
FlattenException class not found. #10313
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
Comments
Would you mind to reproduce your issue on a fork of Standard Edition? Would help us to debug. |
Closing as there is no feedback. |
Just run into this same exception after adding a form to my controller:
Here's the controller:
Symfony version 2.4.4 Update: Not extending BaseController (my code) by switching to Controller fixed it. |
@radekz2 would you mind forking Symfony Standard Edition and recreating this issue on a branch? Controller alone is not enough to reproduce. |
Not a problem, will update this as soon as I have some results, may take me couple of days. |
Which version of the debug component do you have? |
How do I get that version number? |
|
Here's what I see
|
|
Ok great thanks! |
…ekas) This PR was merged into the 2.3 branch. Discussion ---------- [Debug] fix #10313: FlattenException not found | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #10313 | License | MIT | Doc PR | none Note that this patch should be ignored while merging into 2.5/master (it will conflict because 2.5/master has a much stronger workaround, not suitable for a minor release IMHO). Commits ------- b147cfa [Debug] fix #10313: FlattenException not found because of https://bugs.php.net/42098
* 2.3: [Debug] fix #10313: FlattenException not found because of https://bugs.php.net/42098
* 2.4: [Debug] fix #10313: FlattenException not found because of https://bugs.php.net/42098
@radekz2 can you please confirm that the proposed patch fixes the issue? |
I've copied the file and got a proper exception that helped me fix the actual code issue. Applying this patch fixes the issue. Thank you! |
I have some weird issue with FlattenException. I tried to fix it myself but after few hours of thinking what can be wrong I didn't come to anything.
What I found out is that the FlattenException create method is called, with ClassNotFound exception as the first argument, with message that the FlattenException class is not found.
It sounds like a non-sense.
Actually I know what is wrong in my business logic code. I have a class that has incompatible method declaration with the parent class. I know it because I printed the exception stack in ExceptionHandler::createResponse. Then there is FlattenException::create method called which causes ClassNotFoundException, even it actually go into the create method.
The error message is
LocationEntity.php on line 0?
It is not a true of course.
When I comment out the FlattenException::create line, then Symfony doesn't print anything.
I tried to find the reason and fix it myself but I gave up. It may be even a PHP bug.
The text was updated successfully, but these errors were encountered: