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 installing the update 3.1, I get multiple warning messages when I edit a node:
warning: Invalid argument supplied for foreach() in /usr/www/users/hdluser/service/sites/all/modules/hierarchical_select/modules/hs_taxonomy.module on line 440.
Gone through troubleshooting in the Readme fiel, but did not find a solution. See screenshots.
Comment | File | Size | Author |
---|---|---|---|
warnings.png | 79.81 KB | chiefkong | |
status.png | 128.83 KB | chiefkong |
Comments
Comment #1
Wim LeersYou have the Term Permissions module installed.
HS has Term Permissions support since #505090: Term Permissions support for Hierarchical Select Taxonomy. There's a bug in the code that went undetected for >1 month in 6.x-1-x-dev. Which indicates how many people actually use this …
Patch that fixes this attached. And committed: http://drupal.org/cvs?commit=354564.
Comment #2
chiefkong CreditAttribution: chiefkong commentedThank you, that was the clue.
It turned out that I didn't even need the Term Permissions Module. Just left on while developing the site. Now I turned it of and all works fine.
Comment #3
Wim LeersCan you please re-enable it and confirm that the change I made fixed the bug? :) That'd be very helpful and cost you only a few minutes of your time. Thanks!http://drupal.org/node/317
Comment #4
chiefkong CreditAttribution: chiefkong commentedYour patch works. I enabled the Term Permissions module again, applied your patch and the warning messages are still gone. So the patch works fine.
Thank You again.
Comment #5
Wim LeersThanks for taking the time to confirm this! :)