Displayed in /admin/structure/schema in D7 HEAD.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | schema-warning-1007844.patch | 997 bytes | lyricnz |
| #9 | undefined_index_warn_in_schema_compare-1007844-9.patch | 344 bytes | Jan_vStone |
| #6 | agence2.txt | 916 bytes | cmfeliz |
| #4 | schema-info-warn-notice-1007844.patch.txt | 754 bytes | sillygwailo |
| #2 | schema-info-warn-notice-1007844.patch.txt | 553 bytes | sillygwailo |
Comments
Comment #1
EndEd commentedsubscribe
Comment #2
sillygwailoAttaching a patch to check to see if
$info['warn']is set, and if not, pass an empty array to theforeach()loop.Comment #3
3rdLOF commentedPatch worked for the line 614, put I get another error in line 633
Notice: Undefined index: extra in schema_compare() (line 633
Comment #4
sillygwailoPatch updated. I would have preferred a patch that doesn't display the extra fields box at all if there are none to display, but that messes with the weight ordering of the form elements.
Comment #5
KeesMK commentedThe most recent build other line same problem this patch still solves this.
Comment #6
cmfeliz commentedHi everybody! I have this prblemes when i try to create table with hook_schema
Undefined index: warn in schema_compare() (line 614
Warning: Invalid argument supplied for foreach() in schema_compare() (line 615
Notice: Undefined index: extra in schema_compare() (line 623
Notice: Undefined index: extra in schema_compare() (line 633
somebody can help me, please.
thanks
Comment #7
3rdLOF commentedPatch fixes the problem.
Comment #8
3rdLOF commentedTry the patch above.
Comment #9
Jan_vStone commentedI fixed this in a slightly different way without noticing any drawbacks.
Comment #10
lyricnz commentedNo point in looping and unset() if there are no warnings - used an conditional block. Used [extra] code from #4.
Comment #11
geerlingguy commentedStill getting one more warning (with patch #10 above):
There's one more place we need to handle the empty condition in the 'extra' fieldset...
Comment #12
karschsp commented@geerlingguy I'm not getting that warning with the patch in #10. Can anyone else confirm? Thanks!
Comment #13
geerlingguy commentedI haven't been getting the warning since posting the earlier comment. Back to RTBC.
Comment #14
wim leersPatch tested, confirming RTBC.
Comment #15
karschsp commentedCommitted to 7.x-1.x.
Thanks!
Comment #16
wim leersHurray :)
Comment #17
BeaPower commentedI am having this problem in 7.x-1.0-beta3, will the patch still apply?
Comment #18
karschsp commented@BeaPower. Should still apply, or just download 7.x-1.x-dev
Comment #19
cmfeliz commentedThanks for your answer it's work
Comment #20
flak commentedI think we need to make one more tiny change on or about line 630:
Comment #21
flak commentedComment #22
fgmNitpicks:
Comment #23
casperovich commentedHi all,
My solution:
in line 615:
replace by:
That all.
Comment #24
rudyard55 commentedSubscribed.
Notice: Undefined index: warn in schema_compare() (line 614 of J:\Sites\Example\sites\all\modules\schema\schema.module).
Warning: Invalid argument supplied for foreach() in schema_compare() (line 615 of J:\Sites\FPD_Portal\sites\all\modules\schema\schema.module).
Notice: Undefined index: extra in schema_compare() (line 623 of J:\Sites\Example\sites\all\modules\schema\schema.module).
Notice: Undefined index: extra in schema_compare() (line 633 of J:\Sites\Example\sites\all\modules\schema\schema.module)
Comment #25
casperovich commentedPlease Try to check if $info['extra'] isset.
REPLACE BY
Comment #26
colanI don't see a recent patch here. Please provide code changes in patch format so that they may be properly reviewed and tested.
Comment #27
geerlingguy commentedIs this even a problem anymore? I think it should be fixed in the -dev version...
Comment #28
colanLet's assume so. If this is still a problem, please reopen against 7.x-1.0-beta4, released today.