I've got multiple warnings in my log showing

Undefined index: changed in translation_views_views_data_alter() (Zeile 103 in ...../web/modules/contrib/translation_views/translation_views.views.inc

The error does not show up once the view is in cache though, only on the first, uncached hit.

Might be related to issue 2954035

CommentFileSizeAuthor
#10 translation_views_3001086_3.patch767 bytesbala.addweb

Comments

hudri created an issue. See original summary.

eveyrat’s picture

Same problem here.

matsbla’s picture

Thanks for the feedback!
Are you both using the last dev version?
When did you last upgrade and when did you first experience this?

matsbla’s picture

And what php version are you using?

hudri’s picture

I'm using 1.x-dev ba2245c on PHP 7.1.22

EDIT: Updated to latest dev version 3c0f060455d383b7c51650184fa876c584dfad6e and log messages are still coming in

matsbla’s picture

Hmm okay, I tried to test now last version on a new fresh D8.6.1 installation, but I'm not able to reproduce it.

If we could get steps to reproduce that would be helpful!

hudri’s picture

I also don't get this error on a blank installation, but I've got the messages on every of our production sites (Translation views installed later, with a dozen modules already in use). If it helps I could clone of those environments and give you access via PM

matsbla’s picture

Could you test to re-install the module?
Maybe the problem is you've installed it before #2954035, then upgraded to more recent version after it.

If that doesn't help I can take a look at your cloned environment.

hudri’s picture

I think the errror messages are coming from Translation Views + Paragraphs combo:

The paragraph_item_field_data table has the columns content_translation_outdated, content_translation_source and default_langcode, but it has no column changed.

bala.addweb’s picture

Status: Active » Needs review
StatusFileSize
new767 bytes

@hudri, Please review my patch & Share your feedback on the same. Hope that you'll not face this warning after using this patch

hudri’s picture

Hey @nikunj.addweb,
thanks for the patch, works for me. I do not get any more error messages in the log.

hudri’s picture

Status: Needs review » Reviewed & tested by the community
matsbla’s picture

Title: PHP warning Unidefined index changed » PHP warning Unidefined index changed when using Paragraphs

Thanks for the info and patch!
I tested now with Paragraphs, but Im still not able to reproduce the warning.
Could you explain how you've configured the view or give steps to reproduce?

hudri’s picture

Hi @matsbla,
that's really strange, I could reproduce a quite isolated test case on simplytest.me

  1. Create a simplytest.me instance with Translation Views, add Paragraphs as additional project
  2. After setup has finished, add a second content lang on the instance
  3. Create at least one node with a paragraph field (make sure paragraph field on host node itself is not translatable, but child fields of paragraph entity are translatable)
  4. Visit the demo translation view
  5. Visit the reports log, error message will show up here

Maybe need to clear cache sometimes in between, but I did get error messages on Friday when doing this

  • matsbla committed 4a79aac on 8.x-1.x authored by nikunj.addweb
    Issue #3001086 by nikunj.addweb, hudri, matsbla: PHP warning Unidefined...
matsbla’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the steps, I managed to reproduce it. Thanks for helping fix this issue!

Status: Fixed » Closed (fixed)

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