Closed (fixed)
Project:
Menu Firstchild
Version:
2.0.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Feb 2021 at 10:03 UTC
Updated:
4 Mar 2023 at 20:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
pingevt commentedD8 module was pretty much a re-write. And when we worked on translation issues, there were some major changes. So no this was not known.
And seems completely reasonable. Here is a patch. Let me know how this works for you.
Comment #3
pingevt commentedComment #4
Trevor-NZ commentedThank you so much.
Yes your patch has fixed the stacking issue!!
FYI I do get these now in Drupal Reports page:
Notice: Trying to access array offset on value of type null in Drupal\menu_firstchild\MenuItemParser->getFirstChildRecursivly() (line 179 of /home/public_html/modules/menu_firstchild/src/MenuItemParser.php)
And also:
RuntimeException: Failed to start the session. in Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() (line 155 of /home/public_html/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php)
I'm not too sure if they are related.
Thanks again for your help!
Comment #5
pingevt commentedAh - the first one makes sense. I think this would happen if you have a menu item saved before enabling menu_firstchild. But regardless, the check for the array should be there.
The second one, the RuntimeException I'm not entirely sure. I did notice I left in a debug statement. So that could potentially be an issue. If it is still there with this patch, I will need to know more about your current setup.
Try this patch, and please let me know. Thanks.
Comment #6
Trevor-NZ commentedThank you so much the latest patch (5)
It appears to have fixed both the notice and the RunTimeException!
I'll report back in a couple of days to confirm that all is good.
Thanks again for your help with this.
Comment #7
pingevt commentedAssuming this was fixed since there was no follow up