In the preview of the default content type "article", I get this error :
Notice: Undefined property: stdClass::$field_tags in _linkchecker_parse_fields() (line 1541 of .../linkchecker/linkchecker.module).
In the preview of the default content type "article", I get this error :
Notice: Undefined property: stdClass::$field_tags in _linkchecker_parse_fields() (line 1541 of .../linkchecker/linkchecker.module).
Comments
Comment #1
hass commentedThanks for your report. Are you able to debug what field type causes this issue? I have not seen this myself yet, but I may missed this as I'm not using preview very often.
field_tagsis not something from linkchecker, too.A repro plan on a new system would be great.
Comment #2
hass commentedComment #3
tobiasbfield_tags is the default field in article, but I can not reproduce.
Comment #4
evelien commentedI do have the same problem. It happens will adding content. The error appears for empty reference fields. It only happens while adding the content, not while editing.
Comment #5
hass commented@evelien: Thanks for your report. Are you able to debug it to it's root cause, please? Please also note your core versions.
Comment #6
federico commentedSame issue here, only when adding new content without tags. If I add new content with tag, issue doesn't appear.
Drupal 7.21
Link checker 7.x-1.1
Comment #7
hass commentedThis patch adds a workaround for this notice. For me it's not clear what core is doing here with the tags field. It may be a core bug as the tags field is completely missing in the entity if the form has been submitted with an empty tag list. This requires this bad catch logics.
I'm going to open a core issue to get an idea if this is a core fault or linkchecker need to expect this. If someone knows why - shed some light, please.
Comment #9
hass commented#1953804: field_tags is missing in $entity if field is empty on "node/add"
Comment #10
hass commentedJust for the notes. These notice is functionality wise harmless. Nothing is or get's broken.
Comment #11
hass commentedChanged to isset() per #1953804: field_tags is missing in $entity if field is empty on "node/add" and committed it to D7. Backport to D6 is not required.
See http://drupalcode.org/project/linkchecker.git/commit/0e7fc34
Comment #13
anybodySame problem here with the current stable.
Would it perhaps make sense to release a new stable version? The patch works great for me!
Comment #14
Anonymous (not verified) commentedI agree with @Anybody. Please release a new stable version with this fix. Thanks!
Comment #15
ndobromirov commentedRe-roll of the patch in #10 to apply against the current stable version of the module: 1.1.
Comment #16
kristen pol#15 is working for me. Thanks.
Comment #17
kristen polWhoops. Didn't mean to reopen.
Comment #18
k-mo commented10# Works, thanks :)
Comment #19
diakon333 commented15: linkchecker-notice-undefined-property-stdClass-field_tags-1923328-15.patch queued for re-testing.
Comment #21
hass commentedComment #22
ddod commentedRe-roll of the patch from #15 to apply against the current 7.x-1.x branch.