As anonym user I tried to add a site guestbook entry:
Notice: Undefined index: anonemail guestbook_form_entry_form_submit() in function (/home/o2981/web/go-na.hu/new2/profiles/media_dev/modules/guestbook/guestbook.module row 625).
Notice: Undefined index: anonwebsite guestbook_form_entry_form_submit() in function (/home/o2981/web/go-na.hu/new2/profiles/media_dev/modules/guestbook/guestbook.module row 626).
I realyzed that the issue disappers if I enable the following fields in the guestbook configuration:
"Anonymous poster fields
E-mail
Website
Additional information that anonymous posters may supply."
Comment | File | Size | Author |
---|---|---|---|
#8 | guestbook.anonymous-fields.8.patch | 2.7 KB | Eric_A |
#5 | guestbook.anonymous-fields.5.patch | 2.61 KB | sun |
#3 | guestbook-error-message-1386136-3.patch | 1.41 KB | Eric_A |
Comments
Comment #1
workonwomen CreditAttribution: workonwomen commentedAny workaround to not force anonymous user to give email/webpage detail?
Comment #2
Eric_A CreditAttribution: Eric_A commentedI think this bug simply has been around since at least 6.x-2.0. It has been reported early in the Guestbook D7 cycle by @Michèle in #1014194: Port Guestbook to Drupal 7.
Can't do a patch right now, but I will later unless somebody else beats me to it.
Comment #3
Eric_A CreditAttribution: Eric_A commentedThis patch should fix the bug and preserve D6 behavior.
Please test. Those of you that don't have git available can try something like "patch -p1 < ~/guestbook-error-message-1386136-3.patch".
Comment #4
workonwomen CreditAttribution: workonwomen commentedWorks fine, thanks!
Comment #5
sunGuestbook should follow the implementation of core's Comment module with regard to this.
This should also be backported to D6.
Comment #6
sun#5 allows to dramatically simplify the form submit handlers. Didn't notice that earlier.
Comment #7
Eric_A CreditAttribution: Eric_A commentedYeah, #5 is just what the doctor ordered. Let's commit this in a day or two.
Comment #8
Eric_A CreditAttribution: Eric_A commentedPushed #5 to 7.x-2.x. Here's a patch for 6.x-2x.
Comment #9
sunThanks!
Comment #10
Eric_A CreditAttribution: Eric_A commentedThanks all! Pushed to 6.x-2.x.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.