Closed (fixed)
Project:
Responsive and off-canvas menu
Version:
4.4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Sep 2020 at 20:10 UTC
Updated:
24 Sep 2020 at 14:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
wgsimon commentedI have the same issue. After clearing the cache, this happens once and then goes away. It's triggered by a non-logged-in user on any page, as far as I can tell.
Comment #3
dbielke1986 commentedI can confirm this.
Comment #4
tancThanks for the big report! A quick glance looks like the foreach should be wrapped in a condition to check if the array contains the #items property
https://git.drupalcode.org/project/responsive_menu/-/blob/4.3.x/responsi...
It would be good to know whether that older patch that was committed recently still works as intended: #2826484: Add a unique class to off-canvas menu items
Comment #5
dbielke1986 commentedThanks Tanc for the Feedback. I will have a look on this tomorrow:
Comment #6
dbielke1986 commentedI did some testing today and can provide good news:
So the fix could be (see attached patch file):
Comment #7
dbielke1986 commentedComment #8
tancExcellent! I’ll see if I can give this patch a test later tonight. Thanks so much for the contribution!
Comment #9
dbielke1986 commentedIt was a pleasure for me - such a quick response is gorgeous!!!
Comment #10
tancHi @JD_1 I'm just testing the patch but it looks like it's been diff'd from an earlier version as it includes code already in 4.4.x. Are you able to create the patch from version 4.4.x please? Thanks!
Comment #11
dbielke1986 commentedGood Morning @tanc,
yes, you are right. This would be the patch for the issue #2826484 and 4.3.x.
Attached you will find the correct one for 4.4.x.
Hope this is working for you!
Comment #12
dbielke1986 commentedComment #13
dbielke1986 commentedSorry... the first patch was a local diff. :-( This should be a good one.
Comment #14
dbielke1986 commentedHide Patch 1
Comment #15
wgsimon commentedThis fixes it for me. Thanks.
Comment #16
nelo_drup commentedProblem pacth error: corrupt patch at line 17
Comment #17
dbielke1986 commentedComment #18
dbielke1986 commentedI just removed the empty line 17 from the patch..
Comment #19
dbielke1986 commentedLast try - don´t know why this line should be corrupt. If you can see the reason for that - feel free ti fix this. The patch itself is working for me and others, too.
Comment #20
tancI'm back from holiday now :)
This test attached should FAIL, proving there is a problem. The next patch will include the fix and should PASS!
Comment #21
tancUpdated unwieldy issue title
Comment #22
tancOops, messed up the test, this should work (fail).
Comment #23
tancAnd this one should pass as it includes the fix.
Comment #24
tancExcept I forgot Nightwatch tests don't seem to work on D9... so selecting other custom test scenarios...
Comment #26
tancok, all good, although tests in #22 aren't reporting as failed, even though they have, which is what we want. Test in #23 passes which is also what we want. Committed and thanks!