I run a multisite installation of Drupal 7, and today I updated from webform 7.x-3.24 to 7.x-4.7. After disabling and removing the old webform module code, and then installing the new one, I used drush to run database updates on all sites, as well as clear caches. Now, I have the module "webform report" installed to make lists for anonymous users (I user webform to sign up for board game events) where I display a few fields together. I don't know if there is a new neat way of doing this in 7.4 (i.e. without the report module), but I did a test on another server with webform report and the new 7.x-4.7 version of webform and it seemed to work with no problems. However, now I see that my old webform reports all display this notice:

Notice: Undefined index: nid i _webform_select_options() (row 860 of /home/goforbun/public_html/web/sites/all/modules/webform/components/select.inc)

The report-page seems to display correctly though despite the notice. I searched for previous similar issues, but they seem to be tied to other modules like the conditionals module which I don't have. If I create a new webform report to an old webform the notice disappears. So, I can manually re-make my most recent report pages, so it's no big problem, but it would be nice to "upgrade away" the notice messages on my older webform reports as well.

The error seems to arise when webform report uses the webform code in some way. Since the notice only mentions the webform code, and it started when I upgraded webform, I file this issue here rather than in the "webform report" issue queue.

Comments

varenius’s picture

Correction: I realised that the notice error only shows on the webform reports where I want to show a field of type "select", i.e. a list of select options. If I exclude this field from the webform report (even though it is still in the webform) the notice disappears.

danchadwick’s picture

Category: Bug report » Support request
Status: Active » Fixed

Every component should have a nid entry. The database column for nid does not allow NULL.

I have doubts that the webform report modules supports 7.x-4.x. Further, you likely don't need it as there is extensive views integration build into 4.x.

Absent that, you'll need to debug to see how it is possible to have a component without an nid entry. It is related to your database or configuration, as no one else is reporting this and there are 100,000's of webform installations using the 4.x branch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

aubjr_drupal’s picture

For future reference: It looks like the issue was fixed by a contributor for Webform Report (though the patch hasn't been ported into a release or even the dev branch).

Patch - https://www.drupal.org/files/issues/webform_report-2307639.patch