When posting a comment on a perch blog, we were receiving the following error:
ErrorException: Trying to get property of non-object in /Library/WebServer/Documents/dsear/public_html/perch/core/lib/api/PerchAPI_Base.class.php on line 19
This is on Perch 2.8.2 with the latest Blog app.
The comment was saving okay, but the error was thrown regardless. I did some digging and found it was due to Perch's logging.
To fix the error I modified the aforementioned class: