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.
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?
Comment | File | Size | Author |
---|---|---|---|
#2 | profile2_regpath-fix_undefined_variable_notices-2357321-2.patch | 565 bytes | roland.molnar |
Comments
Comment #1
Staler75 CreditAttribution: Staler75 commentedUpdate:
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 :)
Comment #2
roland.molnar CreditAttribution: roland.molnar at Technocrat commentedI 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.
Comment #3
chOP CreditAttribution: chOP at Technocrat commentedPatch applied cleanly to branch 7.x-2.x so updating the Issue Version for tests to run.