On every click on 'Form components' within the module there comes the message:
warning: Invalid argument supplied for foreach() in /web/1/000/034/871/111832/htdocs/drupal_print/sites/all/modules/webform/webform_components.inc on line 31.
Then after adding a new component in the area 'Edit component: ... (...)' there are also two warnings:
warning: Invalid argument supplied for foreach() in /web/1/000/034/871/111832/htdocs/drupal_print/sites/all/modules/webform/webform_components.inc on line 31.
warning: Invalid argument supplied for foreach() in /web/1/000/034/871/111832/htdocs/drupal_print/sites/all/modules/webform/webform_components.inc on line 244.
If I want to create the component by submit it doesn't work and there are still two warnings:
warning: Invalid argument supplied for foreach() in /web/1/000/034/871/111832/htdocs/drupal_print/sites/all/modules/webform/webform_components.inc on line 414.
warning: Invalid argument supplied for foreach() in /web/1/000/034/871/111832/htdocs/drupal_print/sites/all/modules/webform/webform_components.inc on line 31.
Our hoster is 'goneo' (germany)
Server-OS: FreeBSD
Drupal: 6.15
PHP: 4.4.9
MySQL: 5.0.77
Thanks for helping ...
Comments
Comment #1
quicksketchThese errors do not occur on a fresh installation of Drupal and Webform. Could you provide steps on how to reproduce from a clean installation?
Comment #2
troynt CreditAttribution: troynt commentedThis occurs when downgrading from webform-3.x-beta1
Delete all Webform nodes
Disable Webform 3.x beta 1
Uninstall Webform
Delete Webform directory
Download Webform 2.9
Enable Webform
Create Webform Node
I also see the issue and took the above steps multiple times.
Comment #3
quicksketchDowngrading is not supported in any way. The only way to restore Webform to a previous version is to restore a database backup.
This probably occurs because Webform does not delete webform-enabled content types on uninstall (say you had webform-enabled other content types besides "webform"). When you downgrade from 3.x to 2.x, there is still a "webform" content type in your database that is owned by Node module. Since Webform cannot "own" a node if its type is already claimed by Node module, Webform does not function properly.
Comment #4
quicksketchThere's also a step-by-step uninstall process suggested in #684884: Invalid argument supplied for foreach() in webform_components.inc:
http://drupal.org/node/684884#comment-2535020
Comment #5
troynt CreditAttribution: troynt commentedThanks quicksketch it appears one has to delete the webform content type in node_type table before it would work.
Working instructions here:
Delete all Webform nodes
Disable Webform 3.x beta 1
Uninstall Webform
Delete Webform directory
DELETE FROM node_type WHERE type = 'webform';
Download Webform 2.9
Enable Webform
Create Webform Node
Comment #6
bronchialtee CreditAttribution: bronchialtee commentedSorry for delay ...
havn't found the discussion you showed in #4.
The problem really was: 'Delete the Webform content type also.'
Now it works.
But thanks for the helpful details!!
Comment #7
sarjeet.singh CreditAttribution: sarjeet.singh commentedWorking instructions here:
Disable Webform 3.x beta 1
Download Webform 2.9
Enable Webform
update node_type table
UPDATE node_type SET module='webform' WHERE `type`='webform';
clear all cache
Now it works.
(No need to delete all weform nodes and webform content type)
Comment #8
loophole080 CreditAttribution: loophole080 commented#5 worked for me - doing the module uninstall seems necessary - the SQL query didn't effect anything, tho i still did it anyway
Comment #9
ahimsauziThank troynt ,
Your instruction worked for me.
While I am on the subject, the idea that a module is released, even as a beta version, that will require such process without a proper disclaimer is mindboggling.
I do appreciate the hard work guys no question here but at one point we need to start taming the beast we all hooked on!
Thanks for listening to my venting!
Comment #10
lacrosse_20 CreditAttribution: lacrosse_20 commented#7 works! THANK YOU SO MUCH!