Seldaek / monolog

Sends your logs to files, sockets, inboxes, databases and various web services

Home Page:https://seldaek.github.io/monolog/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

koekaverna opened this issue · comments

commented

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

commented

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