Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
theme system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 May 2011 at 04:44 UTC
Updated:
24 Oct 2015 at 05:57 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
alan d. commentedTo replicate, edit a theme that does not have a logo feature.
The submission function needs an isset() check on the logo_path & logo_upload values. The same would apply for the favicon_path, replicate using a theme without the favicon feature.
Comment #2
dddave commentedComment #3
marcingy commentedIssues are fixed in head first
Comment #4
BarisW commentedI think this should nail it.
Comment #5
marcingy commentedCan this not be simplified to
to
And why does the d7 patch have an extra hunk over the d8 one for the logo_upload and favicon_path?
I would look to split them into 3 seperate issues to be honest.
Comment #6
wiifmHere is a new D7 patch that incorporates #4's initial work and improves it with comment #5.
Also adds in the missing hunk for the D7 patch.
Confirmed that this does solve the issue for me.
Steps to reproduce:
Core behaviour will produce error:
After the patch is applied, the error is gone.
I am hoping that someone can roll the D8 patch for me ;) Should be very similar- edit, done this belowComment #8
wiifmAnd here is the D8 patch (hopefully testbox is happier with this one)
Comment #9
wiifmRe-rolled patch as I removed 1 line too many, also rolled against latest 8.x-dev
Can anyone help with reviewing these two patched (8.x and 7.x) ?
Thanks
Comment #10
wiifmNew refactoring based on chx's input attached
Comment #11
chx commentedThanks for the patch !Less lines of code, isn't that yummy? And I do not think we need to test for every notice we fix...
Comment #13
wiifmNow a patch that does not re-cycle the $key variable ;)
Comment #14
wiifmSetting it back to RTBC as per chx comment above
Comment #15
xjmThanks @wiifm! That looks like the correct fix.
I'm not sure I agree with chx's comment that we don't need tests here. We don't need to test to make sure every array key is set, true, but the fact that the bug did not cause any failures in the test suite indicates that we don't have test coverage for this code.
Also, no RTBCing your own patches please. :) They should always be reviewed first by another person, each time. Thanks!
Comment #16
liam morlandMarking #1004550: 'Notice: Undefined index' messages if only some features[] are defined in theme .info file as duplicate of this issue.
Comment #17
liam morlandRegarding testing, does the testing system check for undefined index notices?
Comment #18
gopherspidey commented#6: 1149900-notices-when-no-logo-d7.patch queued for re-testing.
Comment #21
joelpittetDuplicate of #1006266: Saving theme-specific theme settings with no logo creates Undefined index error when file module enabled