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.
Just installed this module, added a new config, go to my homepage, try to flush all cache, result: blank page of death with this error:
Fatal error: Cannot access empty property in /var/www/mysite.com/sites/all/modules/contrib/fe_paths/fe_paths.module on line 149
What it can be?
Thank you very much for resolving this bug.
Comment | File | Size | Author |
---|---|---|---|
#9 | fe-paths-user-save1997908-9.patch | 520 bytes | recrit |
Comments
Comment #1
MXTUpgrading to latest DEV version the issue disappear.
Comment #2
juahoo CreditAttribution: juahoo commented#1 worked for me, thanks MXT.
Comment #3
dddbbb CreditAttribution: dddbbb commented#1 worked for me too.
Comment #4
durum CreditAttribution: durum commentedFor the record, I got this error only when I tried to grant a user new role.
#1 prevents the error but breaks the functionality of the module.
Comment #5
durum CreditAttribution: durum commentedMore specifically, in my case, the WSOD is seen when a user edit form or the batch user edit form under
admin/people
is submitted. And the changes are not saved.Comment #6
durum CreditAttribution: durum commentedThis is probably that forms have a profile picture field and they are empty on form submission which are not handled in the code. So it shouldn't be a big deal.
I changed the line 148 of fe_paths.module from
if (isset($entity_info['entity keys']['bundle'])) {
to
if (isset($entity_info['entity keys']['bundle']) && isset($entity->{$entity_info['entity keys']['bundle']})) {
Saves the moment.
Comment #7
brenk28 CreditAttribution: brenk28 commentedHere is the change from #6 in a patch.
Comment #8
deviantintegral CreditAttribution: deviantintegral commentedHere's the same as #7 but not in sites/all/modules, so sites with other directory structures can still apply it.
Comment #9
recrit CreditAttribution: recrit commentedRe-roll against latest 7.x-2.x
Comment #10
kerby70 CreditAttribution: kerby70 at FFW for NBCUniversal commentedRe-roll on 7.x-2.0-alpha3
Comment #11
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedComment #12
DanielVezaEDIT: Sorry I was a bit loopy yesterday after a long day. This isn't needed.
Comment #13
Dave Kopecek#10 Fixed this for me.
Comment #14
ron_s CreditAttribution: ron_s commentedThe right patch is #9, because it should be against 7.x-2.x-dev, not the alpha version.
Works as expected.