After updating to the latest version of Drupal core, this is the warning I receive:
Invalid argument supplied for foreach() in amswap_prerender_toolbar_administration_tray() (line 64 of /amswap.module)
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | amswap-isarray-2967902-8.patch | 1.28 KB | saurabh.dhariwal |
Comments
Comment #2
jalpesh commentedTry this patch.
Comment #3
doxigo commentedThanks, but isn't your patch for minify module and not amswap?
Comment #4
jalpesh commentedSorry Doxigo. I was working on other module and by mistake upload a patch on this issue.
Sorry again. I will remove it.
Comment #5
jalpesh commentedComment #6
doxigo commentedSo apparently I was pointing out to the wrong Role/Menu manchine name, and that was the reason I was getting that error, I changed that and the error is gone, but I think we should still check to see if there's a Role/Menu by that name before saving the configuration
Comment #7
siva01 commentedI get similar error immediately after installation: Warning: Invalid argument supplied for foreach() in /var/www/html/docroot/modules/contrib/amswap/amswap.module on line 64. We use PHP 7.1.17.
Comment #8
saurabh.dhariwal commented@doxigo, Please Try with my attached solution in which I tried to solve the above mentioned warning. Let me know if you still face any issue.
Hope this helps you.
Thanks!.
Comment #9
maxplus commentedThanks!
patch from #8 solved this issue for me
Comment #10
cobenashThanks. #8 works for me.
Comment #11
droces commentedComment #13
droces commented