You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
bobbingwide
changed the title
bw_get_post_id() sometimes finds $GLOBALS['id'] is not just a post_id
bw_get_post_id() sometimes finds $GLOBALS['id'] is not just a post ID
Apr 22, 2016
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
The text was updated successfully, but these errors were encountered: