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.
Invalid argument supplied for foreach() in mobile_tools_views_check_access() (line 870 of mobile_tools.module) because $perms may be an array or may simply be boolean TRUE.
Comment | File | Size | Author |
---|---|---|---|
#2 | mobile_tools-fix_invalid_argument_supplied_for_foreach-1246446-2-D6.patch | 922 bytes | bcmiller0 |
#1 | fix_invalid_argument_supplied_for_foreach-1246446-1-D6.patch | 427 bytes | pdrake |
Comments
Comment #1
pdrake CreditAttribution: pdrake commentedSee attached for a patch to fix this.
Comment #2
bcmiller0 CreditAttribution: bcmiller0 commentedstill seeing issue, here is a new fix that gets that notice and the next one seen of this:
Warning: array_filter() expects parameter 1 to be array, string given in mobile_tools_views_check_access() (line 883 of www/sites/all/modules/contrib/mobile_tools/mobile_tools.module).
Comment #3
yashadev CreditAttribution: yashadev commented