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.
I got next error on my progect:
Fatal error: Call to a member function getType() on string in /var/www/docroot/profiles/contrib/openy/modules/openy_features/openy_location/modules/openy_loc_camp/openy_loc_camp.module on line 20
Short investigation show that in my case $node variable contain only ID.
Solution - add additional check that $node is instanceof NodeInterface.
Comments
Comment #2
hamrant CreditAttribution: hamrant at DEWEB Studio, Drupal Ukraine Community, FFW, Open Y for Drupal Ukraine Community commentedPR - https://github.com/ymcatwincities/openy/pull/425
Comment #3
sanchiz CreditAttribution: sanchiz at FFW, Drupal Ukraine Community for Open Y commentedApproved & merged.
Comment #4
sanchiz CreditAttribution: sanchiz at FFW, Drupal Ukraine Community for Open Y commented