Thank you for a great module. I just can't get it work. :)

I can't list webforms in content/webforms mysql views

I'm getting this error:
/modules/webform_mysql_views/webform_mysql_views.module on line 181.

Thank you.

CommentFileSizeAuthor
#5 patch_1025462.patch881 bytesusonian

Comments

usonian’s picture

Assigned: Unassigned » usonian
Category: support » bug
usonian’s picture

Priority: Normal » Minor

Hmm, I'm not able to reproduce this - just to verify:

Do you have the Webform module enabled, and at least one content type webform-enabled (as configurable at admin/settings/webform) ?

DoubleT’s picture

Hi, i have several aktive Webforms and get the same error. None of them will listed.
Using Webform 6.x-2.10.

mikael.langstrom’s picture

Yes the Webform module is enabled and permissions are correct. I'm using version 6.x-2.9 of Webform.

usonian’s picture

Version: 6.x-1.1 » 6.x-1.2
StatusFileSize
new881 bytes

Please try applying the attached patch to the the 6.x-1.2 release, or alternately manually change line 184 of webform_mysql_views.module from

$types = webform_variable_get('webform_node_types', array(''));

to:

$types = webform_variable_get('webform_node_types', array('webform'));

DoubleT’s picture

Hi usonian, this patch didn't work, because webform_variable_get('webform_node_types') is not implemented in webform 6.x-2.x branch.
warning: implode(): Invalid arguments passed in .../webform_mysql_views/webform_mysql_views.module on line 192.

Well, i can't upgrade to webform 6.x-3.x, because my page has some dependencies, which i can't resolve for now. Also, the webform 6.x-3.x will offer it's own Views integration (http://drupal.org/node/680386). Your way to make Views integration possible is sooo smart, that i hope, you could find another way to fix this problem with the stable webform 6.x-2.x branch.

usonian’s picture

Title: Error: warning: implode() [function.implode]: » Error: warning: implode() [function.implode]: (Webform 6.x-2.x)

Thanks for the further info, DoubleT. I'll make a note on the main project page... if supporting the 6.x-2.x branch of Webform is as simple as looking somewhere else for the list of webform node types, that would be doable. If there's drastically different stuff going on under the hood it may be a different story.

cafuego’s picture

Status: Active » Closed (won't fix)

Closing this issue. Webform doesn't think you should be using 2.x, so please upgrade to 3.x. Then this module will magically work :-)