You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the bug
A PHP notice is issued when creating a layout below the admin/dashboard/ path.
Steps To Reproduce
To reproduce the behavior:
Go to '/admin/structure/layouts/add'
Create a new layout using a path starting with 'admin/dashboard/'
Go to the new layout or the edit page for the new layout
Actual behavior
There will be several entries in the log with a message similar to Notice: Undefined index: path placeholder in layout_context_required_by_path()
Expected behavior
There should not be any errors
Additional information
It appears that the layout module assumes that layout contexts will have some kind of placeholder, and throws errors when it does not. Either we need to change the way contexts are handled, or we need to add a path placeholder value to dashboard_layout_context_info()
The text was updated successfully, but these errors were encountered:
The problem is that the 'path placeholder' element as defined in hook_layout_context_info() is missing. The documentation says that it's optional, but the element itself is not optional, only the value, because line 1751 of layout_context_required_by_path() checks the value without first making sure it is set.
I think the bug is actually either in the documentation or in the layout_context_required_by_path(), but I've submitting a pull request to fix dashboard_layout_context_info() (if I did it right), based on how it is handled in layout_layout_context_info().
PS: If layout_context_required_by_path() is modified to check 'path placeholder', then it should also check 'menu paths', which has the same problem.
Hmm, I am now seeing these layout-based PHP notices when saving a view I created. If I can pin down the specifics there, I'll post them here (though I'm actually debugging a different problem, ATM).
Description of the bug
A PHP notice is issued when creating a layout below the admin/dashboard/ path.
Steps To Reproduce
To reproduce the behavior:
Actual behavior
There will be several entries in the log with a message similar to
Notice: Undefined index: path placeholder in layout_context_required_by_path()
Expected behavior
There should not be any errors
Additional information
It appears that the layout module assumes that layout contexts will have some kind of placeholder, and throws errors when it does not. Either we need to change the way contexts are handled, or we need to add a path placeholder value to
dashboard_layout_context_info()
The text was updated successfully, but these errors were encountered: