Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
@hgoto
Upon upgrading to 7.x-2,2. I received this message at the end of update:
Undefined property: OgMembershipType::$language in views_natural_sort_entity_to_vns() (line 405 of /Users/pglatz/project/www/sites/all/modules/contrib/views_natural_sort/views_natural_sort.module).
Perhaps this is related to this OG issue: https://www.drupal.org/node/1783162
Comment | File | Size | Author |
---|---|---|---|
#3 | views_natural_sort-fix_undefined_property_issue-2672538-3.patch | 584 bytes | hgoto |
Comments
Comment #2
hgoto CreditAttribution: hgoto as a volunteer commentedProbably this is related with https://www.drupal.org/node/2677380 .
Comment #3
hgoto CreditAttribution: hgoto as a volunteer commentedViews Natural Sort doesn't check the existence of entity properties when registering the data. But some properties are not always set when Views natural Sort runs registering process. Here is a patch for general solution though I don't know why the
$language
is not there.Comment #4
hgoto CreditAttribution: hgoto as a volunteer commentedComment #6
generalredneckA fix exactly like yours got in before I go around to this ticket. With that said, I put in a comment adding you contributed and commited it with credit to you.
Lastly, see if the latest dev fixes the problem.
Comment #8
hgoto CreditAttribution: hgoto as a volunteer commented@generalredneck, thank you for your detailed explanation and dealing with this in such a way. Surely, the latest dev fixes the problem. Thank you.