The full messages are:
Notice: Trying to get property of non-object in views_handler_field_comment_link->render_link() (line 53 of /srv/bindings/0862171661d147198205074c99c1e38e/code/profiles/panopoly/modules/contrib/views/modules/comment/views_handler_field_comment_link.inc).
Notice: Trying to get property of non-object in views_handler_field_comment_link->render_link() (line 52 of /srv/bindings/0862171661d147198205074c99c1e38e/code/profiles/panopoly/modules/contrib/views/modules/comment/views_handler_field_comment_link.inc).
This looks like it's erroring for every field that is being pulled from a comment.
Comment | File | Size | Author |
---|---|---|---|
#9 | views-add-safety-checks-for-comments-1816960-8.patch | 1.93 KB | brad.bulger |
| |||
#8 | 1816960-add-safety-checks-for-comments.patch | 1.93 KB | drupal_josh |
|
Comments
Comment #1
esmerel CreditAttribution: esmerel commentedQuick transcription of what merlinofchaos said.
This is trying to read the NID and the CID out of the comment unconditionally so it notices out if there's no comments, and it's trying to get some values twice and ignoring one, etc.
Comment #2
marcel.jtf CreditAttribution: marcel.jtf commentedI got exactly the same problem when doing the following
I removed the "read more" link to solve the problem
Comment #3
xbrianx CreditAttribution: xbrianx commentedI am getting this issue. I don't have a read more link in my view so not sure how to fix it. The relationship set up is a little complicated so it sounds like something that #1 is mentioning.
Comment #4
xbrianx CreditAttribution: xbrianx commentedI seemed to have fixed this issue by checking of the box that says 'require this relationship'
Comment #5
brad.bulger CreditAttribution: brad.bulger commentedthe handler files for the comment view link weren't allowing for the absence of a comment.
Comment #6
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 4 year old patch in #5 to views_handler_field_comment_link.inc and views_handler_field_comment_link_edit.inc does not apply to the latest views 7.x-3.x-dev and if still relevant needs to be rerolled.
Comment #7
drupal_josh CreditAttribution: drupal_josh as a volunteer commentedNot sure what happened. Patch is shown above.
https://www.drupal.org/files/issues/2019-02-01/1816960-add-safety-checks...
Just adds some safety checks. Admin comments view was throwing quite a bit of errors.
Comment #8
drupal_josh CreditAttribution: drupal_josh as a volunteer commentedAdded some safety checks. Was getting a lot of php notices on the admin comment view.
Comment #9
brad.bulger CreditAttribution: brad.bulger commentedThe patch file from 7 applied to current 3.x code line.
Comment #10
brad.bulger CreditAttribution: brad.bulger commentedComment #11
rpayanm