I'm trying to attach a view to a node display. The view contains taxonomy terms so as suggested in #1238132: Embedding view with term references in Display Suite fields results in errors I'm using a dynamic field with the checkbox checked.

The node is Hungarian but the field language is LANGUAGE_NONE, so I get the above error message and 3 others. My page does not load, only the error messages.

Patch is coming.

Comments

czigor’s picture

Status: Active » Needs review
StatusFileSize
new571 bytes

Following patch solves the issue for me.

swentel’s picture

Status: Needs review » Fixed

Looks sane, committed and pushed, thanks!

Status: Fixed » Closed (fixed)

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

milos.kroulik’s picture

Status: Closed (fixed) » Active

I still seem to have problem with this one. In my case it's view on taxonomy term page, which shows events which have that term assigned. The exact error in my case:

Notice: Undefined property: stdClass::$language in ds_render_ctools_field() (line 1024 of C:\data\www\knihovna\sites\all\modules\ds\ds.module). =>

If you need more detail, let me know, please.

milos.kroulik’s picture

Status: Active » Closed (fixed)

It was probably my fault, will reopen if needed.

pyxio’s picture

I have the same problem adding a view to a taxonomy term page via dynamic field. The error I get is
Notice: Undefined property: stdClass::$language in ds_render_ctools_field() (line 878 of /var/www/html/drupalcommerce/sites/all/modules/contrib/ds/ds.module).
Cheers
Kevin

milos.kroulik’s picture

I also experience this error in the same situation.

svdhout’s picture

This solved the issue for me

klaasvw’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Issue summary: View changes
Status: Closed (fixed) » Needs review
StatusFileSize
new751 bytes

This error still exists in 7.x-2.x. Here's a reroll of the patch in #8.

nedjo’s picture

Priority: Major » Normal
Status: Needs review » Reviewed & tested by the community

The bug can be reproduced and the fix correctly addresses it. The relevant code doesn't appear in the D8 version.

Lemontonix’s picture

The same bug also exists in ds.module line 843:

Undefined index: 27 in ds_render_ctools_field() (Zeile 843 von ../modules/ds/ds.module).

Code also does not check language:

I am using Drupal 7.32 and the latest (31.10.14) DS 2.7

swentel’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed, thanks!

  • swentel committed 6a9eec4 on 7.x-2.x
    Issue #1391192 by klaasvw, svdhout, czigor: Fixed Notice: Undefined...

Status: Fixed » Closed (fixed)

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