After i install the module and activate it i get 2 errors showing up twice (so looks like 4 errors)

Notice: Undefined variable: blocks in profile2_regpath_block_info() (line 22 of /home/a-name/domains/a-name.nl/public_html/sites/all/modules/profile2_regpath/profile2_regpath_blocks/profile2_regpath_blocks.module)

Warning: Invalid argument supplied for foreach() in _block_rehash() (line 389 of /home/a-name/domains/a-name.nl/public_html/modules/block/block.module).

the same error shows up when i use the dev.

anyone a idea how to solve this?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Staler75’s picture

Update:

i forgot i had the module "Organic groups" installed, after de-installing this module the error disappeared.

don't know if i gonna need the Organic groups module also for the project i'm working on, i am testing some options but it seems profile2 and the profile--registration-path solves the multiple user types registration :)

roland.molnar’s picture

Category: Support request » Bug report
Status: Active » Needs review
FileSize
565 bytes

I think the problem is with the profile2_regpath_block_info() function in profile2_regpath_blocks/profile2_regpath_blocks.module
It can return null which later causes Invalid argument supplied for foreach() warnings when Drupal tries to process it's result.
A simple patch solve the issue.

chOP’s picture

Version: 7.x-2.0-beta3 » 7.x-2.x-dev

Patch applied cleanly to branch 7.x-2.x so updating the Issue Version for tests to run.