I just updated Webform to 3.0 and the Webform Block is lost in advanced settings for Webform. What I'm doing wrong?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jectre’s picture

+1 after installing 6.x-3.x-dev #edit

avantwaves’s picture

FileSize
4.48 KB

Ok my temp solution. This has to be fixed in a better a elegant way in the near future I hope.

1. Open the webformblock.module

2. Look for the line:

  if ($form_id == 'webform_node_form') {
  
    $form['webform']['advanced']['addblock'] = array( 

inside the webformblock_form_alter function
Change that to:

  if ($form_id == 'webform_configure_form') {
 
 	$form['advanced']['addblock'] = array( 

3. Open the webform.pages.inc (Inside the Webform/Includes module folder)

Look for the function webform_configure_form_submit
Add this line just before node_save($node);

 //Set addblock from Webform Block module
    $node->webform['addblock'] = $form_state['values']['addblock']; 

Is working for me with this gross hack :) Attached are the 2 modified files just in case that you are in a hurry :)

Probably you can implement these 2 function in your theme files without the need of modifying the modules. I will do this later :)

toledo’s picture

I have tried installing the fix.zip and nothing happens. I don't get any advanced options in webforms or blocks.
What do I need to do different or fix?

avantwaves’s picture

1. Clic Edit you form node.
2. Clic Webform
3. Clic Form Settings
4. Advanced Settings should be almost at the bottom of the page.

Are you doing this or something else?

perandre’s picture

Should v 1.1 now work with webform 2.9? I can't find the block generated (doing the steps in #4).

Edit: Must have missed before. Found it, and all is ok. Note that only published nodes can create a wf block.

Danny_Joris’s picture

subscribing

StarBugger’s picture

I had the same issue. I did not use your quickfix webformfix.zip but followed your instructions above and webformblock update is now working for me. The Generate a block section now shows up and the block is working perfectly. Please see http://breethgreen.com/?q=products *Note this site is under construction. Thank you very much!

AlexanderPop’s picture

works well.
for lazybones - fresh files are in attachment. replacement for the latest webform 6.x-3.0-beta1 (13febr)

psynaptic’s picture

Status: Active » Fixed

This has been fixed in DRUPAL-6--1. Please test!

Status: Fixed » Closed (fixed)

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

megic’s picture

I have the last version of webform (6.x-3.0-beta2) and the latest of webform block (6.x-1.1) and it just doesn't work for me. After installing the webform block nothing has changed.

What could I be doing wrong? Do I still have to install the fix?

I have tried to do the workaround with views as well, but this doesn't work for me really either since the form redirects to the webform path every time I press the submit button (whether validation is successful or not).
http://drupal.org/node/139172
http://www.leveltendesign.com/blog/jennifer/how-create-sign-block-using-...

I'd be happy about some feedback on this. We would like to append the same download form to multiple pages and I just can't figure it out.

psynaptic’s picture

You need to test the dev release.

megic’s picture

Thank you for the information. I understand that the dev version is not suitable for production sites.

Can you anticipate when a version for suitable for production sites will be out?

JayKayAu’s picture

Version: 6.x-1.1 » 6.x-1.x-dev
Status: Closed (fixed) » Active

I'm also having the same issue when using Webform 6.x-3.0-beta2 and Webform Block 6.x-1.1. So I was in the same boat as #11.

Since then, I've tried updating to Webform Block 6.x-1.x-dev, and it didn't work.

Perhaps this issue should remain open and visible until it's resolved fully.

Thanks for all your help, Drupal Ninjas :)

yhager’s picture

webform-3.0-dev + webformblock-6.x-dev together work fine.

andypost’s picture

Why not to start 2.0 branch for webform3 support?

cybermache’s picture

I am using Webform 6.x-3.x-dev (2010-Apr-11) and Webform Block 6.x-1.x-dev (2010-Mar-01) and it is not working for me.

Well actually it looks like the block was just not visible on the admin/build/blocks page. I was looking through my DB to clear something else out and noticed that the block was there. I edited the tables I thought necessary such as 'region' [blank->right] and 'visibility' [0->1] and there it was. I needed to make sure that the complete form was displayed in the teaser (switched on in form settings -> advanced settings). Once this was done everything works great. Don't know too much else to track this down in the code but hopefully it might give others ideas of where to look.

bensnyder’s picture

I can confirm that editing the table manually in phpMyAdmin and setting the region manually will make the block appear.

Webform: beta5
Webformblock: latest dev

rokr’s picture

+1 confirming :-)

yhager’s picture

I did the same as comment #18. Not sure if it was caused by an upgrade from 2.x, or it is 3.x fault only.

rokr’s picture

@yhager: i started with a fresh 3.x - so it's not an update issue.

yhager’s picture

It happened to me again. I have a few themes enabled, and when creating the block, on one theme, it was set to status=1, and with no region. The block UI then does not display the block on any region (since there is none), and not in the disabled blocks (since its status is 1).
Running the following database query fixed this for me:

mysql> update blocks set status=0 where bid=10679;

I think the problematic theme is the one that was used by the admin to create the block.

Hope this report helps the module maintainer find the problem.

yhager’s picture

Category: support » bug
loophole080’s picture

just tried webform-6.x-3.0-beta5 with webformblock-6.x-1.x-dev (upgrading both) - i experienced exact problem described, webformblock settings visible etc, but when "activated" in a block it "vanished"

in mysql "blocks" table found row for "webformblock" with "region" field blank - i manually changed this to required block region and voila, block appears (on page and in block admin) - re #17 "visibility" field was already "1" so no need for me to adjust

loophole080’s picture

just added a couple more webform blocks... neither appeared in the "disabled" section of blocks admin - set block region in db table manually as before and now appearing OK

Sutharsan’s picture

I'm kinda confused what is issue is about since it was re-opened. I ran into the problem reported by christophoffman in #17 and created a new issue (with patch) for it: #797980: Webform block not listed in Admin Blocks page

keva’s picture

It sounds like there are 3 separate issues going on here:

issue 1. the option to "Generate a block" is missing entirely in Webform -> Form Settings -> Advanced settings
issue 2. the webform block is not showing up on the blocks page, even if the webform is published
issue 3. the webform block is not showing up on the blocks page, if the webform is NOT published

possible solutions:
issue 1. comment #9 - this appears to be fixed
issue 2. comment #17 offers a workaround
issue 3. comment #26 links to a patch

Issue 2 is still a problem, using Webform 6.x-3.0-beta5 and Webform Block 6.x-1.x-dev
The workaround fixes it, but is not a long-term solution.

to note: not related to these issues, I modified webformblock.module here http://drupal.org/node/793788#comment-3040998.

+1 to #16: starting a 2.0 branch for webform3 support

jeffreyvddb’s picture

I'm using Webform 6.x-3.0-beta6 and Webform Block 6.x-1.1, but the option to "Generate a block" is still missing entirely in Webform -> Form Settings -> Advanced settings. Any solutions / workarounds?

jeffreyvddb’s picture

I tried the fix from #8 today and it worked! I can generate a block from a Webform in the Advanced Settings. The block appeared on the block page and it worked like a charm! But after a few minutes, the option dissapears again and the blocks are not shown anymore. In the meanwhile, I changed the size of the fields with the module 'Arrange Fields', because the field wasn't resizing when I put the block in it's place. Could 'Arrange Fields' be the cause of the dissapearance?

snufkin’s picture

Status: Closed (fixed) » Active

#27 is right, there are multiple issues. I opened a ticket for those who upon updating to the new version do not have the block showing but DO have the "Generate a block" setting visible on the webform configuration form.

Opened an issue to resolve this problem with the update: #850344: Implement update hook that sets display as block.

As I have experienced no issue with the latest updates aside from this I'll mark it as closed, feel free to re-open it if your issue does not fall into the ticket i linked above.

#28: this issue has been fixed for the development version.

snufkin’s picture

Status: Active » Closed (fixed)
AlexanderPop’s picture

Status: Active » Closed (fixed)
jeffreyvddb’s picture

I've got the option, but the block isn't showing on the Block page. Used the workaround from #17, it's not ideal but it works for now.

Seneschall’s picture

@32

Will have to try that for the time being, but I can't possibly offer up #17 as a fix to my client who doesn't even know what #FF0000 means. I eventually have to turn the site over, once the client approves, thereby being finished with the site altogether.

Here's hoping for a general fix or perhaps merger of the two modules.

fdg123’s picture

I am using Drupal 6.19, Webform 6.x-3.2 and Webform Block 6.x-1.1 and it is not working. It is not an update problem as I have started off with the versions mentioned. Can someone tell me if and when this going to be fixed? My project is in limbo for now.
Frank.

snufkin’s picture

try the dev release.

cybermache’s picture

Webform 6.x-3.3 that was just released has Webform Block included. I had a simple email sign-up form using Webform Block and it appeared exactly the same way after I upgraded. I did have to reselect the block feature in the advanced settings under that form but besides that no big issues so far. They say you can't use Webform Block 6.x with Webform version 3.3. I just disabled that module before I uploaded the latest version of webform. Haven't tested any more complex webforms with this new release though. So can't be positive about problems due to that.

http://drupal.org/node/944652