Hi,

i have an upgraded Drupal 6 -> 7 test site. I installed the newest webform module too. But now the webform content type is not available. I have an "old" webform (from Drupal 6 install), but this form is empty. When I edit this form, then the following error appears:

* Notice: Undefined index: webform_node_form in drupal_retrieve_form() (line 736 of C:\xampp\htdocs\drupal\includes\form.inc).
* Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'webform_node_form' not found or invalid function name in drupal_retrieve_form() (line 771 of C:\xampp\htdocs\drupal\includes\form.inc).

Jan

Comments

quicksketch’s picture

You probably didn't upgrade from the 2.x to 3.x version in Drupal 6 (mostly guessing here). You have to be running 3.x in Drupal 6 before you can upgrade to 3.x in Drupal 7. You cannot upgrade directly from 6.x-2.x to 7.x-3.x.

knarzer77’s picture

Status: Active » Closed (works as designed)

Thank you for your answer. My mistake.

robaminima’s picture

Actually, the same happens updating Webform within Drupal 6 from 2.x to 3.x.

xenophyle’s picture

I had this problem too, but it just turned out the update process had crashed before running the database updates.

shimmertron’s picture

Issue summary: View changes

I know this was a long time ago, but having a hard time resolving this. I foolishly upgrade to Drupal 7 from 6 and didn't upgrade to webform 3x first and getting errors now. Anyway to resolve this? I tried to replace the Drupal 7 4x version with 3x but of course that's not working.

How do I escape this predicament?

If I uninstall the module completely I would lose all prior data in those fields wouldn't I?

I would be grateful for any help.

Errors

Notice: Undefined index: webform_node_form in drupal_retrieve_form() (line 806 of /var/www/vhosts/WEBSITE/httpdocs/includes/form.inc).

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'webform_node_form' not found or invalid function name in drupal_retrieve_form() (line 841 of /var/www/vhosts/WEBSITE/httpdocs/includes/form.inc).

- Gerald

Notice: Undefined index: webform_node_form in drupal_retrieve_form()

DanChadwick’s picture

Restore your D6 backup, update to the latest webform 6.x release. Be sure to run update.php. The follow the D6 to D7 update instructions. https://www.drupal.org/node/570162

shimmertron’s picture

Thanks Dan. I think I am too deep to go back - I am two weeks into D7, any other options? Remove webform entirely?
Gerald

DanChadwick’s picture

If you don't mind losing all your webform data and configuration, you can disable and then uninstall webform entirely. At this point, can't tell you what code base to use because I don't know the history of what updates ran and what didn't. When you are done, there should be no tables in the database which start with webform_ and there should be no variables in the variables table that start with webform_.

Then you can downloaded the latest stable 7.x-4.XX, enable it, set the global webform settings, and start rebuilding your webform nodes.

The only other option would be to read the code that was in place when you did your update and look in the database to see what updates ran and what didn't run. You would then have to either make update.php run correctly or do the equivalent by hand. This would require in depth knowledge of PHP and the drupal tables. I don't recommend it, and you might end up with latent damage that will cause your problems later.

Not a happy situation, I'm afraid.