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

Fatal error: method_exists(): The script tried to execute a method or access a property of an incomplete object. #1834

Closed
koekaverna opened this issue Sep 8, 2023 · 2 comments
Labels
Milestone

Comments

@koekaverna
Copy link
Contributor

koekaverna commented Sep 8, 2023

Monolog version 2|3

When NormalizeFormatter use method_exists on incomplete object it cause fatal error.

I found the problem in logs without any stacktrace information. It can happen when unserialize wrong response from service or unserialize outdated data from session. Anyway NormalizeFormatter should not make fatal error even on corrupted data.

I made PR with fix. Please check it out. #1833

@koekaverna koekaverna added the Bug label Sep 8, 2023
@Seldaek Seldaek added this to the 2.x milestone Oct 27, 2023
@koekaverna
Copy link
Contributor Author

@Seldaek Hi, it's not fixed in 2.9.2 JsonFormatter. There is normalize method override NormalizerFormatter::normalize and have same problem...

@Seldaek
Copy link
Owner

Seldaek commented Apr 15, 2024

@koekaverna 884aa47 should take care of this for JsonFormatter at last.

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

No branches or pull requests

2 participants