I haven't tracked it down to a specific instance but sometimes the value in $GLOBALS['id'] can be set to something other than a post ID. This can produce a message like
Notice: Object of class stdClass could not be converted to string in bw_get_post_id().
Proposed solution
[ ] Implement some logic to avoid producing the notice.
[ ] Attempt to track down the cause of the problem in the first place.
I haven't tracked it down to a specific instance but sometimes the value in $GLOBALS['id'] can be set to something other than a post ID. This can produce a message like
Notice: Object of class stdClass could not be converted to string
in bw_get_post_id().Proposed solution