Hi, I just try to install the 7.0-beta1 in my host, and when i will this path /#overlay=admin/structure/menu/settings, I get the notice:
Notice: Undefined variable: main_options in menu_configure() (line 700 of /media/MyDocuments/xampp/htdocs/drupal7/modules/menu/menu.admin.inc).
I am not sure whether or not where i did wrong, my host environment:
Apache/2.2.14 (Unix) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | 937850-followup.patch | 1.39 KB | David_Rothstein |
| #11 | 937850.patch | 1.31 KB | bleen |
| #8 | 937850_menu.patch | 1.31 KB | jaymiejones86 |
| #4 | 937850.patch | 1.31 KB | bleen |
| #1 | 937850_menu_settings_php_noice_1.patch | 1.32 KB | sivaji_ganesh_jojodae |
Comments
Comment #1
sivaji_ganesh_jojodae commentedI confirm this bug. I can reproduce the same in 7.x-dev. Attached patch will fix this.
Comment #2
otherjoe commentedI was also able to confirm this bug on 7.0-beta1. Patch works and removes Notice message.
Comment #3
bleen commentedWow... it took me way more time then I care to admit to actually see what changed in the patch in #1. :) Finally found it - and it is the correct change. One tiny formatting detail though:
There shouldn't be a space before the comma
Other than this, this patch is RTBC
Powered by Dreditor.
Comment #4
bleen commentedhere is the patch in #1 with that formatting fix
Comment #5
sivaji_ganesh_jojodae commentedGood catch bleen18.
Is there any reason for using double quotes here ? I would suggest to replace it with single quotes otherwise this patch is RTBC.
Comment #6
davidhhuan commentedgood job, bleen18! :)
Comment #7
webchickYeah, as long as we're fixing the string, let's really fix it. Single quotes, then this is good to go. Thanks!
Comment #8
jaymiejones86 commentedHere is bleen18's patch replacing double quotes with single quotes.
Comment #9
bleen commentedsummoning testbot
Comment #11
bleen commentedthis will apply (the patch in #8 had changed the quotes in both the before and the after)
Comment #12
webchickJust remembered this again today. :)
Committed to HEAD. Thanks!
Comment #13
David_Rothstein commentedWe had this at one point at one of the followups at #140783: A select list without #default_value always passes form validation (where the bug was introduced), and we need to get that overall issue cleaned up at some point - however, it is definitely better to have this simpler fix be a separate issue.
As we noticed there, though, this fix is not complete. You still get the PHP notice in the case where there are no main links.
This patch should fix it. Kind of ugly, but good enough for now; there is an issue elsewhere that will hopefully rewrite and rip out most of this text anyway.