Problem/Motivation
When I use the Admin Toolbar module's option to clear the caches the following error is logged:
Warning: in_array() expects parameter 2 to be array, string given in Drupal\easy_breadcrumb\EasyBreadcrumbBuilder->normalizeText() (line 895 of modules/contrib/easy_breadcrumb/src/EasyBreadcrumbBuilder.php).
Initially I thought this was only on the logging page, but it seems to be on all admin pages.
Steps to reproduce
Go to an admin page.
Use Admin Toolbar to clear the site's caches.
Proposed resolution
Fix the bug ;-)
Remaining tasks
Fix the bug ;-)
User interface changes
n/a
API changes
n/a
Data model changes
n/a
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | easy_breadcrumb-n3204336-18.patch | 675 bytes | damienmckenna |
| #3 | easy_breadcrumb-n3204336-3.patch | 961 bytes | damienmckenna |
Comments
Comment #2
damienmckennaComment #3
damienmckennaThe $ignored_words variable is expected to be an array but it's stored as a string and never converted to an array. So I added an explode() to convert it to an array.
Comment #4
mchamps commentedThe patch worked for me. Cheers
Comment #5
neslee canil pinto@DamienMcKenna thanks for reporting this. I tried to reproduce this using your steps, but i am not getting this error message logged.
Comment #6
mrcdrx commentedPatch in #3 worked for me. Thanks!
Comment #7
damienmckenna@mrcdrx: Are you able to confirm the bug?
Comment #8
mrcdrx commented@DamienMcKenna we let users add a node without access to the admin theme and this error was thrown when using the 'preview' button on node creation.
Comment #9
neslee canil pinto@here as a couple of people have confirmed this as a bug.
Another issue reported today - #3205407: Warning: in_array() expects parameter 2 to be array, string given in Drupal\easy_breadcrumb\EasyBreadcrumbBuilder->normalizeText() (line 895 of modules/contrib/easy_breadcrumb/src/EasyBreadcrumbBuilder.php).
PS: I was and still not able to reproduce this issue and getting the below error after applying the patch
Comment #10
jcontreras commentedI can confirm I was having the same problem. I was able to fix the issue with patch #2 on https://www.drupal.org/project/easy_breadcrumb/issues/3205407- discard this comment.Comment #11
renatog commented#3 worked
Comment #13
renatog commentedcommitted to the dev branch
Thank you so much everyone
Comment #14
neslee canil pinto@RenatoG after committing we are now below error, did you tested it before commiting?
Comment #15
jsidigital commented@Neslee
I also have errors on Dev version.
@RenatoG
Is there an update or patch for the Dev version to avoid these errors?
Thank you.
Comment #17
renatog commentedSorry, my first test was a false-positive. It really happens
@jsidigital not for now, but I'd just reverted the patch #3
Comment #18
damienmckennaHow about this?
Comment #20
neslee canil pintoCommitted to dev branch, and now its error free. Thanks.