Hi.
I have a multilingual site where the comments are opened.
It have some comments, but in their pages sometimes I can see the following message:
Notice: Trying to get property of non-object in entity_translation_query_comment_filter_alter() (line 238 of /home/my-site/public_html/sites/all/modules/entity_translation/entity_translation.node.inc).
The same message also is displayed on the pages of rejected comments and published comments.
In the line 238 of the file entity_translation.node.inc, we have:
if (variable_get("entity_translation_comment_filter_{$node->type}", FALSE)) {
These messages are displayed only to users logged in into the site.
Any ideas?
Tks.
Comment | File | Size | Author |
---|---|---|---|
#1 | et-comment_filter_notice-1820910-1.patch | 698 bytes | plach |
Comments
Comment #1
plachWhat about this?
Comment #2
astutonetThanks to reply.
I remove the line 238 and add the four new lines, as follow:
After that, the site down and I can see the following message:
I think I'm wrong...
Tks.
Comment #3
bforchhammer CreditAttribution: bforchhammer commented@astutonet: sounds like you made a mistake applying the patch; have you seen http://drupal.org/node/534548?
Comment #4
astutonetHi @bforchhammer.
Yes, I read the tutorial to Apply Patches Manually. It's that I've seen other new code than existing in the current version and I thought I should add it.
In any case, it seems that only replace the line 238 solves the issue.
If there are new problems I'll report here. For now, thank you.
Comment #5
plachComment #6
plachCommitted and pushed, thanks.