Hi
After creating web form, i tried to open it. But it didnt opened.
Error report
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'nid' in 'where clause': SELECT COUNT(*) AS expression FROM (SELECT 1 AS expression FROM {webform_submissions} webform_submissions) subquery WHERE (nid = :db_condition_placeholder_0) AND (uid = :db_condition_placeholder_1) ; Array ( [:db_condition_placeholder_0] => 34 [:db_condition_placeholder_1] => 1 ) in webform_get_submission_count() (line 407 of .../sites/all/modules/webform/includes/webform.submissions.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | webform-881230.patch | 1.63 KB | Jackinloadup |
Comments
Comment #1
perkesame here, using 7.x-3.0-beta7
(subscribing)
Comment #2
duntuk commentedyup, same here.
Comment #3
duntuk commentedComment #4
duntuk commentednote: Apologies, mistakenly closed this issue. Reopened.
Yes, still getting this error message when logged in as administrator and trying to view any webform node, including when clicking "submissions" or "table". Viewing and submitting the form by anon users works fine.
my setup:
webform 7.x-3.x-dev (2010/08/30)
drupal 7.x-dev (2010/08/30)
Comment #5
quicksketchI'm no longer updating Webform to "chase" Drupal 7. If you can provide a patch I'd be happy to review it though.
Comment #6
patoshi commentedsubscribing
Comment #7
Jackinloadup commentedsubscribe
Comment #8
Jackinloadup commentedOk wow.. i think i figured it out. countQuery needs to be executed right before the execute command? seems to work for me. idk.
looks like it was caused by #423888: Use subqueries for ->countQuery(), at least for MySQL
Comment #9
berenddeboer commentedComment #10
duntuk commentedpatch worked on beta 8 (but not 7.x-3.x-dev oct 1 .. shouldn't have this been applied to dev by now?)
Comment #11
quicksketchDoesn't look like it has yet. I'm not yet maintaining Drupal 7 branches due to Drupal 7's continuing tendency to break every release. Webform currently won't run on D7 for more reasons than this one.
Comment #12
Stevel commentedMarked #916216: countQuery breaks in D7 alpha 7 as a duplicate.
Comment #13
adiatisDrupal 7.0 beta 1 released and they resolved all critical data loss. So I'm testing Drupal 7 now. When will this problem be solved in dev or beta8? Soon?
Webform is an excellent module!! Great work!
Comment #14
ksenzeeAgree this patch is ready to go.
Comment #15
quicksketchCommitted, thanks guys.