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.
Undefined variable: view referral.views_default.inc:19 [121.13 sec, 286.77 MB] [notice]
Trying to get property of non-object referral.views_default.inc:19 [121.13 sec, 286.77 MB] [notice]
Undefined variable: view referral.views_default.inc:19 [121.13 sec, 286.77 MB] [notice]
Comment | File | Size | Author |
---|---|---|---|
#4 | referral-undefined_view_require_once-2876011-4.patch | 869 bytes | caschbre |
Comments
Comment #2
dev22.addweb CreditAttribution: dev22.addweb at AddWeb Solution Pvt. Ltd. commentedI did not get any error while enabling "User Referral" module and it works proper at my end. Can you provide more details to reproduce it?
Comment #3
caschbre CreditAttribution: caschbre as a volunteer commentedI to am receiving this error when dealing with Features.
https://cgit.drupalcode.org/referral/tree/views/referral.views_default.i...
I'm guessing for some reason the 'require_once' file is not loaded at all times?
Comment #4
caschbre CreditAttribution: caschbre as a volunteer commentedThis doesn't necessarily fix the issue, however it does work around the cases where the $view var is undefined. I'm not actually using the included view so this is a stop-gap patch.
I would receive the warnings after cache clearing.