I have performed a fresh install of Drupal 7 Beta 1 with the standard profile and language.

I have created a new content type which includes a title, a field text, and two "existing fields" (field_tags, field_image). I have deleted the body.

When I create a new entry with information in all fields, I get the following error in the front page (it's set up to promote entries to the front page by default):

Notice: Undefined index: taxonomy_term in taxonomy_field_formatter_view() (line 1233 of /home/ariscaiv/public_html/d7b1/modules/taxonomy/taxonomy.module).
Notice: Trying to get property of non-object in entity_extract_ids() (line 6974 of /home/ariscaiv/public_html/d7b1/includes/common.inc).
Notice: Trying to get property of non-object in taxonomy_term_uri() (line 148 of /home/ariscaiv/public_html/d7b1/modules/taxonomy/taxonomy.module).
Notice: Trying to get property of non-object in taxonomy_field_formatter_view() (line 1237 of /home/ariscaiv/public_html/d7b1/modules/taxonomy/taxonomy.module).
Notice: Undefined index: taxonomy_term in taxonomy_field_formatter_view() (line 1233 of /home/ariscaiv/public_html/d7b1/modules/taxonomy/taxonomy.module).
Notice: Trying to get property of non-object in entity_extract_ids() (line 6974 of /home/ariscaiv/public_html/d7b1/includes/common.inc).
Notice: Trying to get property of non-object in taxonomy_term_uri() (line 148 of /home/ariscaiv/public_html/d7b1/modules/taxonomy/taxonomy.module).
Notice: Trying to get property of non-object in taxonomy_field_formatter_view() (line 1237 of /home/ariscaiv/public_html/d7b1/modules/taxonomy/taxonomy.module).

However, when I click in the item, it shows correctly with no further messages. The error message is shown to authenticated and non-authenticated users. The new content type is not accepting comments, apart from that, I believe I have left everything else in its default value.

Two screenshots are included, the frontpage region with the error, and the node page with no messages.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Damien Tournoud’s picture

Status: Active » Postponed (maintainer needs more info)

I cannot reproduce this.

Could you try to dump the content of $item at line 1233 of the taxonomy.module file?

ehalber’s picture

FileSize
183.52 KB
75.13 KB

I am experiencing the same issue. However, I am running the development snapshot from 10/17/2010

In addition to the default fields I have created a number of custom fields, some are text while four are terms populated by vocabularies.

Notice: Undefined index: taxonomy_term in taxonomy_field_formatter_view() (line 1318 of /nfs/c07/h03/mnt/105166/domains/barhunternation.com/html/modules/taxonomy/taxonomy.module).
Notice: Trying to get property of non-object in entity_extract_ids() (line 7042 of /nfs/c07/h03/mnt/105166/domains/barhunternation.com/html/includes/common.inc).
Notice: Trying to get property of non-object in taxonomy_term_uri() (line 148 of /nfs/c07/h03/mnt/105166/domains/barhunternation.com/html/modules/taxonomy/taxonomy.module).
Notice: Trying to get property of non-object in taxonomy_field_formatter_view() (line 1322 of /nfs/c07/h03/mnt/105166/domains/barhunternation.com/html/modules/taxonomy/taxonomy.module).
Notice: Undefined index: taxonomy_term in taxonomy_field_formatter_view() (line 1318 of /nfs/c07/h03/mnt/105166/domains/barhunternation.com/html/modules/taxonomy/taxonomy.module).
Notice: Trying to get property of non-object in entity_extract_ids() (line 7042 of /nfs/c07/h03/mnt/105166/domains/barhunternation.com/html/includes/common.inc).
Notice: Trying to get property of non-object in taxonomy_term_uri() (line 148 of /nfs/c07/h03/mnt/105166/domains/barhunternation.com/html/modules/taxonomy/taxonomy.module).
Notice: Trying to get property of non-object in taxonomy_field_formatter_view() (line 1322 of /nfs/c07/h03/mnt/105166/domains/barhunternation.com/html/modules/taxonomy/taxonomy.module).
vinazoom’s picture

I have same problem when I testing Drupal New version (beta 2)
I think this cause by You create a new field act as Tag but not correct type.
if you want to create tag field, you must use Term reference type.
Delete you exist field and try that.
Good luck !

webchick’s picture

Status: Postponed (maintainer needs more info) » Active

Seems like there might be enough info here to troubleshoot this now.

zugaldia’s picture

Please let me know the steps I should follow if you need me to provide further info.

rosborn’s picture

FileSize
40.49 KB

If it's any help, I have just encountered the same error message (see attached). I think it might have been caused by creating a new alias to a taxonomy term, perhaps overriding the automatic alias, but I could easily be wrong.

rosborn’s picture

Actually, I was able to clear it by deleting an item of content on the front page, which is the only page where the error message was displayed. I am creating new tags - I don't know whether a previously defined tag somehow got dereferenced. Probably dangerous for me to speculate any more.

Taxoman’s picture

Not sure where the core problem lies, but it might be affected by having the Media module enabled too. Here are my observations with Beta1:

Initially, I have enabled an image field and filefield in core CCK for several content types, including a completely new one, and they seem to work well.
I cannot add Media fields from the Media module to any content type, regardless if I disable the core CCK custom fields or not, as that causes wsod errors (not THIS error discussed here). (any of the field widget types available in Media module)

While having the core CCK fields working, no active fields from Media module (but that module is enabled), I then enabled separate "custom display settings" for full, teaser, print, etc. on the "manage display" tab for my custom CCK content type. I adjusted its default values, and set the same plus other values for each separate settings page.

That is when this error started occurring.

I think it occurs on any "listing" page that at the time of rendering actually includes one or more items from the content type that has had those settings altered. That means the front page if such content is promoted there, and any taxonomy page that would include any of those pages of that content type.

Have not had time to dig further into this, but hope these observations may help further investigations.

chrispomeroy’s picture

I got the same issue, let me know what information I could provide that might help diagnosing it.

# Notice: Undefined index: taxonomy_term in taxonomy_field_formatter_view() (line 1318 of /var/www/cpomus7/modules/taxonomy/taxonomy.module).
# Notice: Trying to get property of non-object in entity_extract_ids() (line 7076 of /var/www/cpomus7/includes/common.inc).
# Notice: Trying to get property of non-object in taxonomy_term_uri() (line 148 of /var/www/cpomus7/modules/taxonomy/taxonomy.module).
# Notice: Trying to get property of non-object in taxonomy_field_formatter_view() (line 1322 of /var/www/cpomus7/modules/taxonomy/taxonomy.module).
# Notice: Undefined index: taxonomy_term in taxonomy_field_formatter_view() (line 1318 of /var/www/cpomus7/modules/taxonomy/taxonomy.module).
# Notice: Trying to get property of non-object in entity_extract_ids() (line 7076 of /var/www/cpomus7/includes/common.inc).

jerobins’s picture

Version: 7.0-beta1 » 7.0-beta3
FileSize
4.2 KB

We were hoping beta3 would make this go away; alas, it did not.
Any other information i can provide to help diagnose?

My errors look the same as posted above; however, for completeness, i've included the output in a file.

inf’s picture

I got the same error. I use tagadelic module and I have more content types.
I created new contents in each types and added same tags to them. This error occures when I list a tag which belongs to more than one content and the contents have different types.
If the contents have the same type I didn't get this error.

inf’s picture

With a little work I think I found the problem in taxonomy.module file. I changed a line (1336) in taxonomy_field_formatter_view function.
original: $term = $item['taxonomy_term'];
new: $term = taxonomy_term_load($item['tid']);

It works for me now, I hope it helps!

yched’s picture

Status: Active » Postponed (maintainer needs more info)

#12 is not the fix. $item['taxonomy_term'] is supposed to contain the taxonomy term. Fixing the bug means finding out why it isn't populated.

Also, I haven't been able to reproduce this with the tag terms in the 'Tag' vocabulary created in a default install. We really need reproducible steps triggering the bug if we want to move forward - or at worst a database dump ?

inf’s picture

#13 here are my steps:
- I installed drupal
- after that I went to 'Structure' -> 'Content types' -> 'Add content type'
- I named the new content type ('show') then I saved it
- I opened 'Manage fields' and I selected from an existing field (I chose 'Term reference: field_tags' and 'Autocomplete term widget' from the lists.) then I saved it.
- In the next screen I left everything in default value then I clicked 'Save settings'
- then I clicked 'Add new content' and I created a new Article. I gave two tags to it (kutya, cica) then I saved it.
- then I added a new Show content. I gave two tags to it (kutya, lila) then I saved it.
- after that I opened the 'Article' typed content I created then I clicked on 'kutya' tag, then I got the error.

I updated Drupal from CVS today.

I hope it helps you to reproduce the error.

inf’s picture

FileSize
718.96 KB

#13 I attach my db dump.

yched’s picture

Component: field system » taxonomy.module
Status: Postponed (maintainer needs more info) » Active

Thks @inf - no time to investigate right now, but reopening.

cwrstl’s picture

Seeing the same thing here. Can provide dump or access to the site if needed.

cwrstl’s picture

Do we know if this has been addressed in RC1?

yched’s picture

no it hasn't

DamienMcKenna’s picture

Am unable to reproduce this following the steps in #14 above with a copy of CVS HEAD (last commit #459116) with PHP v5.2.13 as bundled with MAMP. Anyone else?

DamienMcKenna’s picture

Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

Could someone please post (or email me) a database dump that shows this with the latest CVS HEAD codebase?

yched’s picture

@DamienMcKenna : inf posted a db dump in #10. I didn't find the time to deploy it and test locally so far, but if you can take a crack at it ... :-)

DamienMcKenna’s picture

@yched: The file in #10 is a list of errors, not a database dump. I'm using MySQL so the PostgreSQL dump in #15 won't run, so I'll see if I can get pgsql installed.

inf’s picture

FileSize
144.24 KB

@DamienMcKenna: I updated drupal from CVS now. I installed drupal again but I used MySQL db now. I followed the steps I wrote (#14) and I got the same error again.
I attached my mysql db dump.

mokecc’s picture

Version: 7.0-beta3 » 7.0-rc1
Assigned: Unassigned » mokecc
FileSize
22.79 KB

* Notice: Undefined index: taxonomy_term in taxonomy_field_formatter_view() (line 1366 of /wwwroot/FTP951E/htdocs/modules/taxonomy/taxonomy.module).
* Notice: Trying to get property of non-object in entity_extract_ids() (line 7258 of /wwwroot/FTP951E/htdocs/includes/common.inc).
* Notice: Trying to get property of non-object in taxonomy_term_uri() (line 148 of /wwwroot/FTP951E/htdocs/modules/taxonomy/taxonomy.module).
* Notice: Trying to get property of non-object in taxonomy_field_formatter_view() (line 1370 of /wwwroot/FTP951E/htdocs/modules/taxonomy/taxonomy.module).

ksdhanjal’s picture

Facing same issues with latest install; is there a fix in the works or a potential timeline ?

eule’s picture

here i have same issue on the final drupal 7 release

* Notice: Undefined index: taxonomy_term in taxonomy_field_formatter_view() (line 1368 of ./modules/taxonomy/taxonomy.module).
* Notice: Trying to get property of non-object in entity_extract_ids() (line 7286 of ./includes/common.inc).
* Notice: Trying to get property of non-object in taxonomy_term_uri() (line 148 of ./modules/taxonomy/taxonomy.module).
* Notice: Trying to get property of non-object in taxonomy_field_formatter_view() (line 1372 of ./modules/taxonomy/taxonomy.module).
* Notice: Undefined index: taxonomy_term in taxonomy_field_formatter_view() (line 1368 of ./modules/taxonomy/taxonomy.module).
* Notice: Trying to get property of non-object in entity_extract_ids() (line 7286 of ./includes/common.inc).
* Notice: Trying to get property of non-object in taxonomy_term_uri() (line 148 of ./modules/taxonomy/taxonomy.module).
* Notice: Trying to get property of non-object in taxonomy_field_formatter_view() (line 1372 of ./modules/taxonomy/taxonomy.module).

Moparx’s picture

I was having this issue until I went to /admin/structure/types/manage/your_custom_content_type/display/teaser and changed my Tags field from Hidden to Link.

eule’s picture

you are right! i change to inline -> text in teaser. cache cleanup, error field is gone, after i change to link and clean cache , now i dont see the error field anymore.

tsvenson’s picture

Version: 7.0-rc1 » 7.0

Same here, Hiding the Tags field on teasers causes these errors. I have several more vocabularies, all are hidden for teasers, but only the Tags is needed to be changed to Link for this error to go away.

To add some more info to this, it also happened on a Views page for me, but tags are not used at all in the view on that page, nor are teasers.

Bumping to 7.0 since that's the version I am using.

Tom.Camp’s picture

I'm having the same problem with a clean install of the latest release, 7.0. The error only occurs if I display terms for a custom content type in the teaser. It doesn't happen on the page display and it doesn't happen for teasers for blog posts. Change the display from link to plain text or vice versa and clearing cache has no effect. When it does throw the error it outputs a string of commas rather than a comma separated list of terms (see attached screenshot). I have also attached a screenshot of the error message.

As I said before this is a new install of latest D7 with the following modules installed:
CTools
Context
Devel
References
Colorbox
Site_map
Pathauto
Token
Views
Webform

yched’s picture

from #28, #29 (? not clear), #30 : "Hiding the Tags field on teasers causes these errors"
from #31 : "The error only occurs if I display terms for a custom content type in the teaser."

Contradiction, plus I still cannot reproduce this myself locally, either hiding or displaying the 'tags' field, either in teasers or full node page.

I'm afraid we do need detailed steps to reproduce from a fresh install, or a db dump from a site having the error (a sanitized dump, with passwords and emails removed). @inf was kind enough to provide a db dump in #24, unfortunately, it was generated before #986992: Insane etid / {field_config_entity_type} abstraction, and the dump no longer applies against current 7.x (apologies for not coming back at this soon enough).

In short : "me too" comments and screenshots are not helping. Detailed steps or a db dump, please :-)

jinglemansweep’s picture

FileSize
248.94 KB

I'm using Drupal 7 Final, and it was all working well until I installed the "Synonyms" module. Since installing that, I got the error message stated above. Removing the "Synonyms" module doesn't fix the problem.

I've attached a sanitised MySQL dump (GZip'd) of my broken installation.

jinglemansweep’s picture

Exact error message that appears when viewing a specific taxonomy term. I have a "Devices" taxonomy and the error only appears when viewing one (of the total of three) taxonomy terms within the "Devices" taxonomy.

Devices:

- Advent Vega (Error Displayed)
- HTC Desire
- ZTE Blade

The only difference I can see is that the "Advent Vega" term has a node (of custom content type "FAQ" attached). The other two have other content types attached, so it could be something to do with the configuration of my "FAQ" content type.

Notice: Undefined index: taxonomy_term in taxonomy_field_formatter_view() (line 1368 of /data/dev/drupal/androidguide/modules/taxonomy/taxonomy.module).
Notice: Trying to get property of non-object in entity_extract_ids() (line 7286 of /data/dev/drupal/androidguide/includes/common.inc).
Notice: Trying to get property of non-object in taxonomy_term_uri() (line 148 of /data/dev/drupal/androidguide/modules/taxonomy/taxonomy.module).
Notice: Trying to get property of non-object in taxonomy_field_formatter_view() (line 1372 of /data/dev/drupal/androidguide/modules/taxonomy/taxonomy.module).
Notice: Undefined index: taxonomy_term in taxonomy_field_formatter_view() (line 1368 of /data/dev/drupal/androidguide/modules/taxonomy/taxonomy.module).
Notice: Trying to get property of non-object in entity_extract_ids() (line 7286 of /data/dev/drupal/androidguide/includes/common.inc).
Notice: Trying to get property of non-object in taxonomy_term_uri() (line 148 of /data/dev/drupal/androidguide/modules/taxonomy/taxonomy.module).
Notice: Trying to get property of non-object in taxonomy_field_formatter_view() (line 1372 of /data/dev/drupal/androidguide/modules/taxonomy/taxonomy.module).
jinglemansweep’s picture

Status: Postponed (maintainer needs more info) » Active
yched’s picture

Priority: Normal » Major
Status: Active » Needs review
FileSize
1.15 KB

Many thanks for the dump, @jinglemansweep. I could finally nail this.

The problem happens on listing pages, listing nodes of different types, when a shared field has different display settings in each type (i.e field_taxo displayed in node type A, hidden in node type B).

Logic error in field_default_prepare_view() : The function operates on multiple entities, and thus on multiple instances. But the first iteration of the foreach ($instances) loop overwrites the incoming $display parameter, and messes it for the remaining entities.
If this results in an instance being incorrectly seen as 'hidden', the 'prepare_view' hooks don't not run. Yet the formatter will run, because the instance is in fact not hidden, and field_default_view() is *not* broken ;-).
Taxonomy formatters expect the term object to have been loaded during the 'prepare view' step --> bang.

Thus, raising to major.

We'll need a test for this, but here's a patch fixing the bug for now.

yched’s picture

With tests.

- test-only patch, should fail,
- test + fix patch, should pass

yched’s picture

Without renaming other test methods so they stay out of the way :-p.

shaikhnizam’s picture

#36 worked fine for me, i applied this patch and the problem resolved...thanks guys.

webmatter’s picture

I have applied the last patch and it solved my problem. Thanks a lot!

jinglemansweep’s picture

No problems @yched. I suppose it was just good timing that I was redeveloping my site and didn't have too much sensitive data. Glad I stumbled across this bug report and that I could help. Even happier about the time it took you to research, investigate, fix and patch this issue.

Thank you very much for your assistance. Your speed and passion truly make the Drupal community what it is.

Now about to apply the patches so I can continue developing my site!

jinglemansweep’s picture

Just applied the patch in #38 and it has solved the problem. Thanks again!

vhmauery’s picture

+1

I had a similar setup with a custom image node type and found that whenever I added an image tagged with this term, it would spew the same messages. I also found that if I added, say, an article tagged with the same term, then the messages would go away. But this patch fixes the errors on my installation. Please apply!

catch’s picture

Version: 7.0 » 7.x-dev
Component: taxonomy.module » field system
Assigned: mokecc » Unassigned
Status: Needs review » Reviewed & tested by the community

Patch looks great, test obviously works. RTBC.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Awesome sleuthing! Thanks for the tests, too.

Committed to HEAD.

sashkernel’s picture

Status: Fixed » Reviewed & tested by the community

I've got the same issue and I see that there is a fix for it. One thing is: I don't have experience applying patches
Do these patches integrate without any issues? I was advised to disable and backup all the modules before applying any patch, which I think makes sense.
But do I need to disable all modules that come with drupal core?
+Do i save patch above to the drupal root folder or somewhere down the tree?
+Which one of those 3 I should apply? (36, 37, or 38?)

Any advise will be helpful.
Thanks for getting solution for this problem so quickly.

Sash.

webchick’s picture

Status: Reviewed & tested by the community » Fixed
sam_squarewave’s picture

@sashkernel
I'm a pretty basic user as well, but maybe this will help...

When something is committed to head, you can go get the latest development release and install that. Otherwise you can apply the patch by hand by looking at the patch report - removing the lines with minuses and added the lines with plusses.

Installing the latest D7 worked to correct this for me. I imagine there are many bugfixes in there that would make it worth the gamble of going with a dev release.

sashkernel’s picture

yep. got it to work by replacing field module from dev image.
thnx.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

bryancasler’s picture

subscribe

Thomas_Zahreddin’s picture

to #48: just a simple answer to a simple question would help too ;-)

kalilo’s picture

I've got the same issue, and Im using drupal 7.0.

* Notice: Undefined index: taxonomy_term in taxonomy_field_formatter_view() (line 1368 of C:\wamp\www\d\modules\taxonomy\taxonomy.module).
* Notice: Trying to get property of non-object in entity_extract_ids() (line 7286 of C:\wamp\www\d\includes\common.inc).
* Notice: Trying to get property of non-object in taxonomy_term_uri() (line 148 of C:\wamp\www\d\modules\taxonomy\taxonomy.module).
* Notice: Trying to get property of non-object in taxonomy_field_formatter_view() (line 1372 of C:\wamp\www\d\modules\taxonomy\taxonomy.module).

kalilo’s picture

I get this error every time I choose to: Add existing field.

Kevin_VE’s picture

Same problem here. subscribe

yched’s picture

No need to subscribe, nothing will happen here anymore. The fix has been committed to the 7.x-dev branch, and will be part of the next core release (7.1). Meanwhile you can download a tarball of the current state of 7.x-dev on http://drupal.org/project/drupal.

x.flimon@gmail.com’s picture

That did the trick for me.. Thanks!

gargoyle’s picture

I realize that this is "fixed" in 7.1, but is it not considered best practice to actually check for the existence of an array key before you use it?

Should the offending code block in taxonomy_field_formatter_view() not be wrapped in a isset() check?

          if (isset($item['taxonomy_term'])) {
            $term = $item['taxonomy_term'];
            $uri = entity_uri('taxonomy_term', $term);
            $element[$delta] = array(
              '#type' => 'link',
              '#title' => $term->name,
              '#href' => $uri['path'],
              '#options' => $uri['options'],
            );
          }
yched’s picture

@gargoyle : not if the key is supposed to be present, and its absence is a smoke sign of something else going wrong. Core coding conventions include not adding unneeded preventive cruft checks, and not hiding errors under the carpet.

DamienMcKenna’s picture

@yched: One of the problems, though is not being able to debug the problem without (temporarily) hacking core, so would it be so bad to add in a watchdog statement for invalid data just to record the invalid nid?

Snicers’s picture

I am still having this issue.

Notice: Undefined variable: element in media_field_formatter_view() (line 162 of /var/www/Drupal/sites/all/modules/media/includes/media.fields.inc).

yched’s picture

@Snicers : that is a different issue, which should be reported in the Media module issue queue (if it hasn't been already)

Michael-IDA’s picture

Version: 7.x-dev » 7.8
Status: Closed (fixed) » Active

Still an issue in D7.8. Standard install, no code modifications of any kind.

Steps for reproduction:

- Taxonomy >> Add vocabulary
"MY-Page Keywords"

- Create custom Content Type, "MY-Page"

- "Add new field"
Label: Keywords
Name: field_my_page_keywords
Field: Term reference
Widget: Autocomplete term widget (tagging)

- Edit "Keywords"
Number of values: Unlimited
Vocabulary: "MY-Page Keywords"

- Hide "Keywords" field

- Add a meta tag default (/admin/config/search/metatags)
Node: MY-Page
Inherits meta tags from: Global, Node
Keywords: [node:field_my_page_keywords]

- Add Content >> MY-Page

- Add three terms to "Keywords"

Error occurs.

Error and basic site info below. Need more?, just ask.

Best,
Sam

====

Other observational notes:

- The page source with the error shows:
<meta name="keywords" content=", , " />

- Pasting the three terms into the Meta tags >> Keywords results in:
<meta name="keywords" content="quality, craftsmanship, customer service" />


Error Messages:

Notice: Undefined index: taxonomy_term in taxonomy_field_formatter_view() (line 1433 of /var/www/html/modules/taxonomy/taxonomy.module).
Notice: Trying to get property of non-object in taxonomy_field_formatter_view() (line 1433 of /var/www/html/modules/taxonomy/taxonomy.module).
Notice: Undefined index: taxonomy_term in taxonomy_field_formatter_view() (line 1433 of /var/www/html/modules/taxonomy/taxonomy.module).
Notice: Trying to get property of non-object in taxonomy_field_formatter_view() (line 1433 of /var/www/html/modules/taxonomy/taxonomy.module).
Notice: Undefined index: taxonomy_term in taxonomy_field_formatter_view() (line 1433 of /var/www/html/modules/taxonomy/taxonomy.module).
Notice: Trying to get property of non-object in taxonomy_field_formatter_view() (line 1433 of /var/www/html/modules/taxonomy/taxonomy.module).



Drupal version                :  7.8
 Database driver               :  mysql
 Database hostname             :  localhost
 Default theme                 :  bartik
 Administration theme          :  seven
 PHP configuration             :  /etc/php.ini
 Drush version                 :  4.5
 Site path                     :  sites/default
 File directory path           :  sites/default/files
 Private file directory path   :  sites/default/files/private


$ drush pml
 Package                     Name                                                  Type    Status         Version
 Administration              Actions permissions (actions_permissions)             Module  Enabled        7.x-3.0-beta3
 Administration              Administration Development tools (admin_devel)        Module  Enabled        7.x-3.0-rc1
 Administration              Administration menu (admin_menu)                      Module  Enabled        7.x-3.0-rc1
 Administration              Administration menu Toolbar style                     Module  Enabled        7.x-3.0-rc1
                             (admin_menu_toolbar)
 Administration              Administration views (admin_views)                    Module  Not installed  7.x-3.0-rc1
 Chaos tool suite            Bulk Export (bulk_export)                             Module  Not installed  7.x-1.0-rc1
 Chaos tool suite            Chaos tools (ctools)                                  Module  Enabled        7.x-1.0-rc1
 Chaos tool suite            Chaos Tools (CTools) AJAX Example                     Module  Enabled        7.x-1.0-rc1
                             (ctools_ajax_sample)
 Chaos tool suite            Chaos Tools (CTools) Plugin Example                   Module  Not installed  7.x-1.0-rc1
                             (ctools_plugin_example)
 Chaos tool suite            Custom content panes (ctools_custom_content)          Module  Not installed  7.x-1.0-rc1
 Chaos tool suite            Custom rulesets (ctools_access_ruleset)               Module  Not installed  7.x-1.0-rc1
 Chaos tool suite            Page manager (page_manager)                           Module  Enabled        7.x-1.0-rc1
 Chaos tool suite            Stylizer (stylizer)                                   Module  Not installed  7.x-1.0-rc1
 Chaos tool suite            Views content panes (views_content)                   Module  Enabled        7.x-1.0-rc1
 Core                        Aggregator (aggregator)                               Module  Not installed  7.8
 Core                        Block (block)                                         Module  Enabled        7.8
 Core                        Blog (blog)                                           Module  Not installed  7.8
 Core                        Book (book)                                           Module  Enabled        7.8
 Core                        Color (color)                                         Module  Enabled        7.8
 Core                        Comment (comment)                                     Module  Enabled        7.8
 Core                        Contact (contact)                                     Module  Enabled        7.8
 Core                        Content translation (translation)                     Module  Not installed  7.8
 Core                        Contextual links (contextual)                         Module  Enabled        7.8
 Core                        Dashboard (dashboard)                                 Module  Enabled        7.8
 Core                        Database logging (dblog)                              Module  Enabled        7.8
 Core                        Field (field)                                         Module  Enabled        7.8
 Core                        Field SQL storage (field_sql_storage)                 Module  Enabled        7.8
 Core                        Field UI (field_ui)                                   Module  Enabled        7.8
 Core                        File (file)                                           Module  Enabled        7.8
 Core                        Filter (filter)                                       Module  Enabled        7.8
 Core                        Forum (forum)                                         Module  Not installed  7.8
 Core                        Help (help)                                           Module  Enabled        7.8
 Core                        Image (image)                                         Module  Enabled        7.8
 Core                        List (list)                                           Module  Enabled        7.8
 Core                        Locale (locale)                                       Module  Enabled        7.8
 Core                        Menu (menu)                                           Module  Enabled        7.8
 Core                        Node (node)                                           Module  Enabled        7.8
 Core                        Number (number)                                       Module  Enabled        7.8
 Core                        OpenID (openid)                                       Module  Not installed  7.8
 Core                        Options (options)                                     Module  Enabled        7.8
 Core                        Overlay (overlay)                                     Module  Disabled       7.8
 Core                        Path (path)                                           Module  Enabled        7.8
 Core                        PHP filter (php)                                      Module  Enabled        7.8
 Core                        Poll (poll)                                           Module  Not installed  7.8
 Core                        RDF (rdf)                                             Module  Enabled        7.8
 Core                        Search (search)                                       Module  Enabled        7.8
 Core                        Shortcut (shortcut)                                   Module  Enabled        7.8
 Core                        Statistics (statistics)                               Module  Enabled        7.8
 Core                        Syslog (syslog)                                       Module  Not installed  7.8
 Core                        System (system)                                       Module  Enabled        7.8
 Core                        Taxonomy (taxonomy)                                   Module  Enabled        7.8
 Core                        Testing (simpletest)                                  Module  Not installed  7.8
 Core                        Text (text)                                           Module  Enabled        7.8
 Core                        Toolbar (toolbar)                                     Module  Disabled       7.8
 Core                        Tracker (tracker)                                     Module  Enabled        7.8
 Core                        Trigger (trigger)                                     Module  Enabled        7.8
 Core                        Update manager (update)                               Module  Enabled        7.8
 Core                        User (user)                                           Module  Enabled        7.8
 Date/Time                   Date (date)                                           Module  Enabled        7.x-2.0-alpha4
 Date/Time                   Date API (date_api)                                   Module  Enabled        7.x-2.0-alpha4
 Date/Time                   Date Migration (date_migrate)                         Module  Not installed  7.x-2.0-alpha4
 Date/Time                   Date Popup (date_popup)                               Module  Enabled        7.x-2.0-alpha4
 Date/Time                   Date Repeat API (date_repeat)                         Module  Enabled        7.x-2.0-alpha4
 Date/Time                   Date Tools (date_tools)                               Module  Enabled        7.x-2.0-alpha4
 Date/Time                   Date Views (date_views)                               Module  Enabled        7.x-2.0-alpha4
 Development                 Devel (devel)                                         Module  Enabled        7.x-1.2
 Development                 Devel generate (devel_generate)                       Module  Enabled        7.x-1.2
 Development                 Devel node access (devel_node_access)                 Module  Enabled        7.x-1.2
 Display suite               Display suite (ds)                                    Module  Enabled        7.x-1.3
 Display suite               Extras (ds_extras)                                    Module  Enabled        7.x-1.3
 Display suite               Search display (ds_search)                            Module  Enabled        7.x-1.3
 Features                    Date Migration Example (date_migrate_example)         Module  Not installed  7.x-2.0-alpha4
 Fields                      Field Permissions (field_permissions)                 Module  Enabled        7.x-1.0-beta1
 Fields                      Fieldgroup (field_group)                              Module  Enabled        7.x-1.0
 Image                       Imagecache Actions (imagecache_actions)               Module  Enabled        7.x-0.0
 Image                       Imagecache Autorotate (imagecache_autorotate)         Module  Enabled        7.x-0.0
 Image                       Imagecache Canvas Actions (imagecache_canvasactions)  Module  Enabled        7.x-0.0
 Image                       Imagecache Color Actions (imagecache_coloractions)    Module  Enabled        7.x-0.0
 Image                       Imagecache Custom Actions (imagecache_customactions)  Module  Enabled        7.x-0.0
 Image                       Imagecache_actions Test Suite (imagecache_testsuite)  Module  Not installed  7.x-0.0
 MailChimp                   MailChimp (mailchimp)                                 Module  Enabled        7.x-2.1
 MailChimp                   MailChimp Lists (mailchimp_lists)                     Module  Enabled        7.x-2.1
 MailChimp                   MailChimp STS (mailchimp_sts)                         Module  Enabled        7.x-2.1
 Meta tags                   Meta tag API (metatag)                                Module  Enabled        7.x-1.0-alpha3
 Meta tags                   Meta tag UI (metatag_ui)                              Module  Enabled        7.x-1.0-alpha3
 Meta tags                   Open Graph meta tags (metatag_opengraph)              Module  Enabled        7.x-1.0-alpha3
 Other                       Advanced help (advanced_help)                         Module  Enabled        7.x-1.0-beta1
 Other                       Advanced help example (help_example)                  Module  Enabled        7.x-1.0-beta1
 Other                       Entity API (entity)                                   Module  Enabled        7.x-1.0-beta10
 Other                       Entity tokens (entity_token)                          Module  Enabled        7.x-1.0-beta10
 Other                       Forward (forward)                                     Module  Enabled        7.x-1.1
 Other                       Image crop (imagefield_crop)                          Module  Enabled        7.x-1.0
 Other                       Image javascript crop (imagecrop)                     Module  Enabled        7.x-1.0-rc3
 Other                       Libraries (libraries)                                 Module  Enabled        7.x-1.0
 Other                       Pathauto (pathauto)                                   Module  Enabled        7.x-1.0-rc2
 Other                       Scheduler (scheduler)                                 Module  Enabled        7.x-1.0
 Other                       Token (token)                                         Module  Enabled        7.x-1.0-beta6
 Printer, e-mail and PDF     PDF version (print_pdf)                               Module  Enabled        7.x-1.0-beta1
 versions
 Printer, e-mail and PDF     Printer-friendly pages (print)                        Module  Enabled        7.x-1.0-beta1
 versions
 Printer, e-mail and PDF     Send by e-mail (print_mail)                           Module  Enabled        7.x-1.0-beta1
 versions
 Rules                       Rules (rules)                                         Module  Enabled        7.x-2.0
 Rules                       Rules Scheduler (rules_scheduler)                     Module  Enabled        7.x-2.0
 Rules                       Rules UI (rules_admin)                                Module  Enabled        7.x-2.0
 Service Links               Service links (service_links)                         Module  Enabled        7.x-2.1
 Service Links               Service Links Displays (service_links_displays)       Module  Not installed  7.x-2.1
 Service Links               Service Links Share (service_links_share)             Module  Not installed  7.x-2.1
 Service Links               Service Links Sprites (service_links_sprites)         Module  Not installed  7.x-2.1
 Service Links - Services    Basque Services (basque_services)                     Module  Not installed  7.x-2.1
 Service Links - Services    Dutch Services (dutch_services)                       Module  Not installed  7.x-2.1
 Service Links - Services    Farsi Services (farsi_services)                       Module  Not installed  7.x-2.1
 Service Links - Services    Favorite Services (favorite_services)                 Module  Not installed  7.x-2.1
 Service Links - Services    Forward Services (forward_services)                   Module  Enabled        7.x-2.1
 Service Links - Services    General Services (general_services)                   Module  Enabled        7.x-2.1
 Service Links - Services    German Services (german_services)                     Module  Not installed  7.x-2.1
 Service Links - Services    Hungarian Services (hungarian_services)               Module  Not installed  7.x-2.1
 Service Links - Services    Italian Services (italian_services)                   Module  Not installed  7.x-2.1
 Service Links - Services    Polish Services (polish_services)                     Module  Not installed  7.x-2.1
 Service Links - Services    Print Services (print_services)                       Module  Enabled        7.x-2.1
 Service Links - Services    Russian Services (russian_services)                   Module  Not installed  7.x-2.1
 Service Links - Services    Spanish Services (spanish_services)                   Module  Not installed  7.x-2.1
 Service Links - Services    Swedish Services (swedish_services)                   Module  Not installed  7.x-2.1
 Service Links - Services    Widget Services (widget_services)                     Module  Enabled        7.x-2.1
 Spam control                reCAPTCHA (recaptcha)                                 Module  Not installed  7.x-1.7
 Spam control                reCAPTCHA Mailhide (recaptcha_mailhide)               Module  Enabled        7.x-1.7
 Statistics                  Google Analytics (googleanalytics)                    Module  Enabled        7.x-1.2
 Ubercart - core             Cart (uc_cart)                                        Module  Enabled        7.x-3.x-dev
 Ubercart - core             Order (uc_order)                                      Module  Enabled        7.x-3.x-dev
 Ubercart - core             Product (uc_product)                                  Module  Enabled        7.x-3.x-dev
 Ubercart - core             Store (uc_store)                                      Module  Enabled        7.x-3.x-dev
 Ubercart - core (optional)  Catalog (uc_catalog)                                  Module  Not installed  7.x-3.x-dev
 Ubercart - core (optional)  File downloads (uc_file)                              Module  Not installed  7.x-3.x-dev
 Ubercart - core (optional)  Payment (uc_payment)                                  Module  Enabled        7.x-3.x-dev
 Ubercart - core (optional)  Product attributes (uc_attribute)                     Module  Enabled        7.x-3.x-dev
 Ubercart - core (optional)  Reports (uc_reports)                                  Module  Enabled        7.x-3.x-dev
 Ubercart - core (optional)  Roles (uc_roles)                                      Module  Enabled        7.x-3.x-dev
 Ubercart - core (optional)  Shipping (uc_shipping)                                Module  Enabled        7.x-3.x-dev
 Ubercart - core (optional)  Shipping quotes (uc_quote)                            Module  Enabled        7.x-3.x-dev
 Ubercart - core (optional)  Tax report (uc_tax_report)                            Module  Enabled        7.x-3.x-dev
 Ubercart - core (optional)  Taxes (uc_taxes)                                      Module  Enabled        7.x-3.x-dev
 Ubercart - extra            Cart links (uc_cart_links)                            Module  Enabled        7.x-3.x-dev
 Ubercart - extra            Google Analytics for Ubercart (uc_googleanalytics)    Module  Enabled        7.x-3.x-dev
 Ubercart - extra            Product kit (uc_product_kit)                          Module  Enabled        7.x-3.x-dev
 Ubercart - extra            Stock (uc_stock)                                      Module  Enabled        7.x-3.x-dev
 Ubercart - fulfillment      Flat rate (uc_flatrate)                               Module  Enabled        7.x-3.x-dev
 Ubercart - fulfillment      U.S. Postal Service (uc_usps)                         Module  Enabled        7.x-3.x-dev
 Ubercart - fulfillment      UPS (uc_ups)                                          Module  Enabled        7.x-3.x-dev
 Ubercart - fulfillment      Weight quote (uc_weightquote)                         Module  Enabled        7.x-3.x-dev
 Ubercart - payment          2Checkout (uc_2checkout)                              Module  Not installed  7.x-3.x-dev
 Ubercart - payment          Authorize.net (uc_authorizenet)                       Module  Enabled        7.x-3.x-dev
 Ubercart - payment          Credit card (uc_credit)                               Module  Enabled        7.x-3.x-dev
 Ubercart - payment          CyberSource (uc_cybersource)                          Module  Not installed  7.x-3.x-dev
 Ubercart - payment          Google Checkout (uc_google_checkout)                  Module  Not installed  7.x-3.x-dev
 Ubercart - payment          Payment method pack (uc_payment_pack)                 Module  Not installed  7.x-3.x-dev
 Ubercart - payment          PayPal (uc_paypal)                                    Module  Enabled        7.x-3.x-dev
 Ubercart - payment          Test gateway (test_gateway)                           Module  Enabled        7.x-3.x-dev
 User interface              Superfish (superfish)                                 Module  Enabled        7.x-1.8
 User interface              Wysiwyg (wysiwyg)                                     Module  Not installed  7.x-2.1
 Views                       Views (views)                                         Module  Enabled        7.x-3.0-rc1
 Views                       Views Bulk Operations (views_bulk_operations)         Module  Disabled       7.x-3.0-beta3
 Views                       Views UI (views_ui)                                   Module  Enabled        7.x-3.0-rc1
 Webtrends                   Webtrends (webtrends)                                 Module  Enabled        7.x-1.x-dev
 Webtrends                   Webtrends CTools Page Manager plugin                  Module  Enabled        7.x-1.x-dev
                             (webtrends_page_manager)
 Core                        Bartik (bartik)                                       Theme   Enabled        7.8
 Core                        Garland (garland)                                     Theme   Disabled       7.8
 Core                        Seven (seven)                                         Theme   Enabled        7.8
 Core                        Stark (stark)                                         Theme   Disabled       7.8
catch’s picture

Version: 7.8 » 7.x-dev
Status: Active » Closed (fixed)

This was committed with automated tests several months ago, so if you're seeing the same error or a similar one, it will be a different root cause. Please open a new issue.

Michael-IDA’s picture

Version: 7.x-dev » 7.8
Status: Closed (fixed) » Active

Catch,

Quote: "I realize that this is "fixed" in 7.1, but is it"

It hasn't been completely fixed. It still crops up in D7.8, as I presented, with what should be enough information to go figure out the last tidbit of this bug.

Please play nice, it's not what the 'root' cause is, it's that this isn't a "new" issue.

Sam

StevenPatz’s picture

Version: 7.8 » 7.x-dev
Status: Active » Closed (fixed)
Michael-IDA’s picture

This isn't fixed, but I'll play your reindeer games, new bug report at: http://drupal.org/node/1323740

johnlclark’s picture

I found this in 7.9 when I had hidden the tags in default view but not in the teaser. I just edited the content type: manage display and hide tags in both views. Hope this helps.

dynamicdan’s picture

Status: Closed (fixed) » Active

This also happens to us on 7.8 when clicking Preview on certain content types. I believe we are also hiding many (taxonomy) fields for our default view....

Double posting here and in new issue (http://drupal.org/node/1323740) because I am simply confused as to where to post.

catch’s picture

Status: Active » Closed (fixed)

The other issue was the right one, I've bumped priority on that one though.

Dharmendra.s’s picture

Thanks , its really helpful...
My proublem is solved i have replaced the Taxanomy.module
Line 1436 in drupal7
Original $term = $item['taxonomy_term'];
Replaced $term = taxonomy_term_load($item['tid']);
Happy Drupling....

Anonymous’s picture

Confirming that this fixes the error.

It's a shame to have to hack core but at least it works

nextmove’s picture

Version: 7.x-dev » 7.12
Status: Closed (fixed) » Active

Issue still exists in 7.12. I used hack see post #71 at line 1443 - that fixed the issue for me too. Drupal is new to me so I was very surprised to bump into a bug like this one. As soon as i assigned a product to a catalog i got the error when accessing page with catalog.

xjm’s picture

Version: 7.12 » 7.x-dev
Status: Active » Closed (duplicate)

Please follow up in this issue: #1075998: Notice: Undefined index: taxonomy_term after re-using term reference fields. We need steps to reproduce the problem in that issue. It may be caused by a contributed module.

mgsolipa’s picture

I had the same problem and this solution works fine for me too. Thanks for sharing.

maxchock’s picture

thanks, that work for me too. TQ.

just_like_good_vibes’s picture

thanks it's worked for me too

klopsen’s picture

Version: 7.x-dev » 7.12

In my case applying #71 sollution caused another bug:
Fatal error: Unsupported operand types in /modules/node/node.module on line 1361
Any ideas?

sachbearbeiter’s picture

after #71 i now get EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7501 of /includes/common.inc).

stanoman’s picture

#71 fixed this for me too. My trouble seems to have started when I somehow built duplicate taxonomy names called "catalog" because I couldn't figure out how to get ubercart to list products. The taxonomy implementation into Ubercart seems fairly new, so I'm thinking something there may have caused my particular issue.

dynamicdan’s picture

Status: Closed (duplicate) » Active

Re-opening... #1075998 is not related in my opinion. Comment #71 has not made it to the core so the bug has jumped into the latest 7.12 version!

I used 7 'Term Reference' fields. There may be a connection to field_regions or field_images being loaded twice as per previous comments.

NOTE that I only get the error when clicking the 'preview' button. Saving works as expected.

It seems obvious to me that the term is simply not being loaded into $item['taxonomy_term'].

xjm’s picture

Status: Active » Closed (cannot reproduce)

@dynamicdan: Please open a new issue with explicit steps to reproduce the error you're getting. So far everything points to this being caused by bad code in contributed modules.

sansaturno’s picture

Issue tags: +taxonomy, +Ubercart, +catalog

#71 worked well for me too, it was something related with Ubercart Catalog, that is conected with taxonomy, thanks a lot.

stefmex’s picture

Component: field system » taxonomy.module
Status: Closed (cannot reproduce) » Active

I have this problem with ubercart products (www.riberbike.es)

but only when terms has more than one product :) on 1rst and 2nd block (list) taxonomy
ej: "Peugeot" have troubles (many products for this make),
but "polisport" no trouble >> only one term in this make.

#71 do not work for me.

>>> 3rd block taxonomy: no problem even if more than one "product" included in this term
because (???? mmm) 3rd block have a class defined in shop (ubercart > bike accessories )
1rst & 2nd block haven't class defined in ubercart (default product, bikes) It could be the reason ????

thanks for help.

------ edit

No troubles in terms like "Origin-8" in the 1rst block because many products but alls from accessories, i.e: from "defined class" in ubercart shop.

So only problem with terms linked with "ubercart: default product class", not with terms "from" ubercart defined class. !!! I hope it can help for reproducing this issue. thanks

catch’s picture

Status: Active » Closed (cannot reproduce)

Please open a new issue against ubercart and link to it from this one.

rickmanelius’s picture

Ugh. I had to resort to #71...

The issue for me is simple to reproduce. Any ubercart product node with attributes results in an $item array that lacks the taxonomy_term key and therefore it borks.

For performance reasons, I tried to not load every single time, so here was my hack.

if(isset($item['taxonomy_term'])) {
  $term = $item['taxonomy_term'];
}
else{
  $term = taxonomy_term_load($item['tid']);
}

Obviously, use with care and realize the upcoming 7.13 will break this.

stefmex’s picture

Lars Bo Jensen’s picture

I don't know if helps anybody, but I had the error when displaying taxonomy terms on current content with a dynamic field in Display Suite, using a view, passing on nid as an argument to it, but NOT selecting 'Load terms' under Field settings. Load terms checked -> works again. Drupal 7.14, Views 7.x-3.3, Display Suite 7.x-1.5.

rickmanelius’s picture

Version: 7.12 » 7.15
FileSize
690 bytes

This bit me again, so I'm adding a patch so I can track.

Michele Wickham’s picture

This issue cropped up for me today when using preview. This patch fixes the problem. Any chance we could see this added to a core update?

grossmont@gmail.com’s picture

This patch also fixed my issue. And just ilke mishwick, above, it was occurring during preview.

dynamicdan’s picture

Status: Closed (cannot reproduce) » Active

Set status to active... I think it's important to test patches.

webchick’s picture

Priority: Major » Normal
Status: Active » Needs review

Moving to needs review, since there's a patch. However, a notice error cannot possibly be a "major" bug.

nagba’s picture

Status: Needs review » Needs work

The very least fix up the coding style a bit please. There should be a space between the if and the opening parenthese. Similarly after 'else'.

grossmont@gmail.com’s picture

When the error occurred, I didn't get a notice. It actually failed with the WSOD.

rickmanelius’s picture

FileSize
692 bytes

Fixing the style issues noted in #94. Otherwise its the same patch as #89.

nagba’s picture

One thing that comes to mind, if core actually is setting up the proper data structure, then isnt it rather ubercart module that needs fixing to populate the data structure to the expected format ? The original module could load multiple terms at once and push the necessary data into place in one go, while in this patch on a larger data set code would load the terms one by one.

cangeceiro’s picture

Version: 7.15 » 7.x-dev
Status: Needs work » Reviewed & tested by the community

also had this issue, and the patch resolved it for me.

nagba’s picture

Status: Reviewed & tested by the community » Needs work

just because the patch fixes something it does not mean that it is the right approach, fix the offending module, not core.

nagba’s picture

Status: Needs work » Closed (cannot reproduce)

we should open a new issue on whichever module is causing trouble instead of having core babysit broken code

vlajkop’s picture

Version: 7.x-dev » 7.9
Status: Closed (cannot reproduce) » Needs work

Here is some more description about this problem that may be helpful in solving issue including and instruction how to reproduce same issue.

To reproduce this issue:
1. Create couple of taxonomy terms (5 for example).
2. Assign taxonomy filed to content type and attach node to belong to those taxonomy terms.
3. Delete some (two) terms from taxonomy.
4. Visit node and error will be displayed.

This is exact error:
Notice: Undefined index: 67 in taxonomy_formatter_field_formatter_view() (line 147 of /var/www/html/sites/all/modules/taxonomy_formatter/taxonomy_formatter.module).
EntityMalformedException: Missing bundle property on entity of type taxonomy_term. in entity_extract_ids() (line 7562 of /var/www/html/includes/common.inc).

What is happening is that field is still holding relation to deleted taxonomy term id (in this case 67).

I was unable to identify in database table where this is a case. If someone has found solution please post it.

Taxonomy formatter is extension - a module, but in this case when hook taxonomy_formatter_field_formatter_view ( hook field_formatter_view()) is called $items is holding deleted taxonomy terms IDs regardless if cache is cleaned & server restarted.

SpikeX’s picture

I am having the same issue. #101 seems to explain it well.

Notice: Undefined index: 33 in taxonomy_formatter_field_formatter_view() (line 147 of /home/web/www/sites/all/modules/taxonomy_formatter/taxonomy_formatter.module).
EntityMalformedException: Missing bundle property on entity of type taxonomy_term. in entity_extract_ids() (line 7562 of /home/web/www/includes/common.inc).

This is preventing me from viewing content on my site. Could someone develop a patch for this?

osysltd’s picture

Version: 7.9 » 7.16

Acknowledge bug.

EntityMalformedException: Missing bundle property on entity of type taxonomy_term. in entity_extract_ids() (line 7562 of /home/web/www/includes/common.inc).

Any ideas?

BeaPower’s picture

Having this issue after deleting terms, any fix?

xjm’s picture

Project: Drupal core » Taxonomy Formatter
Version: 7.16 » 7.x-1.x-dev
Component: taxonomy.module » Code
Status: Needs work » Active

Moving to the correct queue per #101.

rooby’s picture

I'm seeing the error and don't have the taxonomy_formatter module installed (and never did have).

I am seeing it when previewing a node and $items being passed into taxonomy_field_formatter_view() are:

5 (Array, 1 element)
    0 (Array, 1 element)
        tid (String, 1 characters ) 2

But the code is looking for:

array(
  0 => array(
    'taxonomy_term'
  )
)

which doesn't exist.

Investigating further.

rooby’s picture

danlinn’s picture

Status: Active » Patch (to be ported)

Dang! All this hoopla due to this little module. D'oh!.

Turns out that the nodes hang on to all term ids, deleted or not. I've added a simple check for this. New version soon. Sorry everyone!

danlinn’s picture

Status: Patch (to be ported) » Closed (fixed)

Ok, 7.x-1.4 has been released with the fix in it. Thanks for the report.

sustainablesolutionsnz’s picture

I just had this issue after completely rebuilding my website and then restoring nodes. I am no longer running uc catalog module but using views to add filters to catalog pages.

As someone pointed out it could be a result of running more than one taxonomy term called catalog, but that is no longer the case.

The error only occurs when I add an attribute price to a product. Fix 71 has worked, but of course next update it will happen again.

dragonbite’s picture

Upgrading my website to Drupal 7.32, I needed to apply this patch to get rid of the errors.

The errors show up when attempting to Preview content. The description of what is going on in #36 makes sense for my situation.

There was mention elsewhere (cannot find it right now) about making all Taxonomy fields visible for all Content types (Default, teaser and others) and then set them again. I tried that before applying the patch and it did not work (hence, why I applied the patch).

vmsiam’s picture

Upgrading to drupal 7.34 I get this error while trying to preview content.
Tried to apply the patch 96 but no success.
Any ideas?

giupenni’s picture

I have the same problem witdh D 7.34.
As usual there is always a problem.

giupenni’s picture

giupenni’s picture

Never mind, unfortunately the problem is still present.
Damned

giupenni’s picture

Well, seems to work but with some issue:
https://www.drupal.org/node/2128265#comment-9398765

bobburns’s picture

There is another patch for this same issue at https://www.drupal.org/project/drupal/issues/2128265#comment-12976770 which appears to work

I am using this one right now

But can someone look into this since the issue is still present in 7.64, can someone commit one or the other to core so this does not need to patched over and over again each Drupal core is updated ??