Steps to reproduce:
- Go to admin/content/taxonomy and create a free-tagging vocabulary, assigning it to the 'story' type (for example).
- Go to node/add/story to create a story. Add some tags.
- Click Preview.

Receive two of these guys:
notice: Undefined index: in /home/.honor/snarkles/webchick.net/modules/taxonomy/taxonomy.module on line 868.
notice: Undefined index: in /home/.honor/snarkles/webchick.net/modules/taxonomy/taxonomy.module on line 868.

CommentFileSizeAuthor
#2 186750.patch525 bytescatch

Comments

patchnewbie’s picture

Assigned: Unassigned » patchnewbie

This should be a pretty easy fix for someone new to core development.

catch’s picture

Assigned: patchnewbie » catch
Status: Active » Needs review
StatusFileSize
new525 bytes

This removes the notice.

webchick’s picture

That does indeed remove the notice, but I'm wondering why index is NULL. There might be something a bit deeper that we need to look at.

catch’s picture

Assigned: catch » Unassigned

Is that a rhetorical statement to give me a hint? In which case it went over my head, sorry.

On the assumption it's not a hint and is a genuine "I wonder why.." deassigning myself.

robloach’s picture

Oh wow, I get lots of these:

* notice: Trying to get property of non-object in drupal\modules\taxonomy\taxonomy.module on line 48.
* notice: Trying to get property of non-object in drupal\modules\taxonomy\taxonomy.module on line 49.
* notice: Trying to get property of non-object in drupal\modules\taxonomy\taxonomy.module on line 74.
* notice: Trying to get property of non-object in drupal\modules\taxonomy\taxonomy.module on line 75.
* notice: Trying to get property of non-object in drupal\modules\taxonomy\taxonomy.module on line 75.
* notice: Trying to get property of non-object in drupal\modules\taxonomy\taxonomy.module on line 78.
* notice: Trying to get property of non-object in drupal\modules\taxonomy\taxonomy.module on line 51.
* notice: Trying to get property of non-object in drupal\modules\taxonomy\taxonomy.module on line 1133.

Even with the forced check on $vocabularies[$vid].

robloach’s picture

Status: Needs review » Needs work
catch’s picture

Status: Needs work » Needs review

Rob, there's an issue here for those:
http://drupal.org/node/186837

desbeers’s picture

Status: Needs review » Closed (duplicate)

http://drupal.org/node/163728 deals with the notices and a lot more like lost of free-tags and resetting to default of other tags on preview. I mark this as duplicate.