I have converted Drupal 4.7 to Drupal 5. In the process, I have removed both forms and survey modules.

When I enable the Survey-Webform Migrate module, I get an error Invalid Agrument on line 34, in the foreach loop :

foreach ($node->form->fields as $field)

When I look at print_r($node) I don't find any form object for the nodes.

After the conversion, I have a webform node with no fields for each original form/survey node.

Comments

jmlavarenne’s picture

I have re-enabled both forms and survey modules (adding .info files so that the modules show up in the 5.x admin).

There are still no form objects associated with the nodes, so when doing node_load() in the install file no form content is passed to the node object. I can clearly see all the form and survey information in the appropriate database tables.

I see two paths at this point - any advice very welcome.

a) figure out why the forms are not added to the $node objects, fix that, run the migration module.

b) manually add the form object to the node in the migration module with the appropriate queries.

jmlavarenne’s picture

I'm documenting all that's happening, in case it's relevent.

When I install the survey module on the 5.x install, a table is added to the database - content_type_survey. I don't know why this happens, there is no order to do so from the install file.

The Drupal 4.7 install does not have a table by that name.

quicksketch’s picture

Yikes, sounds like you're making a lot of jumps. Survey-Webform migrate was written with the move from Survey for Drupal 5 to Webform for Drupal 5.

Your best bet is to upgrade your site to Survey/Forms for Drupal 5 make sure thats working. Then install the Webform and Survey-Webform modules and migrate over to Webform.

jmlavarenne’s picture

Status: Active » Fixed

For some reason I did not realise there were 5.x versions of the abandoned modules. Updating the forms and survey modules before the migration was all it took.

Everything went well except for the fact that in the process form field label and content with accented letters was horribly mutilated.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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