Closed (fixed)
Project:
Webform
Version:
6.x-2.9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
19 Feb 2009 at 08:35 UTC
Updated:
21 Feb 2010 at 03:40 UTC
Jump to comment: Most recent file
I've created and configured a web form in such a way that only registered users are allowed to submit.
While testing this configuration (by trying to submit anonymously) I received the following warning message:
warning: Invalid argument supplied for foreach() in /home/content/n/o/j/admin/html/drupal/modules/webform/webform.module on line 2225.
Looks like a bug to me.
Please look into this.
Thank you!
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | webform_376574-8.patch | 2.22 KB | Scott Reynolds |
| #7 | webform_376574-7.patch | 2.02 KB | Scott Reynolds |
| #4 | webform_limit_anonymous_cache.patch | 2.17 KB | quicksketch |
Comments
Comment #1
hop commentedI see this bug only when I enable choice "Limit the number of submissions a user may send within a specified time period".
Choice "Unlimited" is OK.
Comment #2
TimK commentedI see a similar issue using Webform 5.x-2.6, probably the same issue.
It turned out to be a caching issue. When I turn off page caching for anonymous users, it works fine. For my application, this will serve as a suitable workaround. If you need a more elaborate workaround, you might try using CacheExclude to disable caching each Webform node page.
The root of the problem appears to be as follows:
-TimK
Comment #3
kardave commentedsubscribing
(it is still bug in 2.9.)
Comment #4
quicksketchI've fixed this issue in the 3.x version, which had a similar problem with the submit limit and the page cache. Porting this patch back to 2.x should possible fairly easily.
Comment #5
quicksketchComment #6
quicksketchComment #7
Scott Reynolds commentedand here is a patch.
Comment #8
Scott Reynolds commenteddidn't realize i had an old version. heres a reroll, even though previous patch should apply.
Comment #9
quicksketchThanks Scott Reynolds, everything looked good except the path to the webform_submissions.inc file was off for the 2.x branch location. Committed to Drupal 5 and 6 branches.