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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

MXT’s picture

Upgrading to latest DEV version the issue disappear.

juahoo’s picture

#1 worked for me, thanks MXT.

dddbbb’s picture

#1 worked for me too.

durum’s picture

For 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.

durum’s picture

More 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.

durum’s picture

This 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.

brenk28’s picture

Issue summary: View changes
FileSize
658 bytes

Here is the change from #6 in a patch.

deviantintegral’s picture

Here's the same as #7 but not in sites/all/modules, so sites with other directory structures can still apply it.

recrit’s picture

Status: Active » Needs review
FileSize
520 bytes

Re-roll against latest 7.x-2.x

kerby70’s picture

Re-roll on 7.x-2.0-alpha3

SocialNicheGuru’s picture

DanielVeza’s picture

EDIT: Sorry I was a bit loopy yesterday after a long day. This isn't needed.

Dave Kopecek’s picture

#10 Fixed this for me.

ron_s’s picture

Version: 7.x-2.0-alpha3 » 7.x-2.x-dev
Status: Needs review » Reviewed & tested by the community

The right patch is #9, because it should be against 7.x-2.x-dev, not the alpha version.

Works as expected.