Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I've tried to create a block for an entityform when I select create a block it gives a notice and the block option is saved as non-checked :
Notice entityform_block_submit() (...........entityform_block/entityform_block.module file line 106) Undefined index: block_set
Thanks for the help
Comment | File | Size | Author |
---|---|---|---|
#8 | entityform_block.2066903.undefined_index.8.D7.patch | 541 bytes | wjackson |
Comments
Comment #1
timodwhit CreditAttribution: timodwhit commentedWas this on an existing entityform or a new entityform?
Can you recreate the issue on a clean Drupal install? I have not been able to recreate this issue.
Thanks for the help!
Comment #2
timodwhit CreditAttribution: timodwhit commentedComment #3
bonchak CreditAttribution: bonchak commentedHello,
This notice occurs each time I create an entityform even without entity block is not choosen. Evertime I edit an entityform this problem re-occurs. I did not test this issue on another site yet but i'll let you know. I can provide account details for the site if you want to check this issue.
BEst regards
Halil
Comment #4
Myrddin66 CreditAttribution: Myrddin66 commentedHi,
For anyone having the same issue, try this in entityform_block.module :
line 93 replace
$form_state['values']['data']
['block_set']
['current_type']
with
$form_state['values']['data']['current_type']
and line 106 replace
$form_state['values']['data']
['block_set']
['enable_block']
with
$form_state['values']['data']['enable_block']
Bye
Comment #5
charlie charles CreditAttribution: charlie charles commentedThanks worked for me too! :)
Comment #6
timodwhit CreditAttribution: timodwhit commentedFixed this. Thanks for the find.
Comment #7
chrisfromredfinI get this error, but line 107. Removing the ['block_set'] key makes it work for me.
Comment #8
wjackson CreditAttribution: wjackson commentedAttached is a patch with the changes specified in comment #4.
Comment #9
chrisfromredfinMarking 'needs review'
Comment #10
aimeerae@will.j, thank you for the timely patch. I have applied the patch at Comment #8 and the error has gone away and a new form block is created. Thank you!
Comment #11
Blackice2999 CreditAttribution: Blackice2999 commented#8 solves this bug
Comment #12
drurian CreditAttribution: drurian commentedFixed
Comment #15
sodome CreditAttribution: sodome commented[block_set] seems to have crept back into line 107 of the 7.x-1.2 version. Sprang the same error today trying to edit the form. Deleting it fixed the issue.
Comment #16
upunkt CreditAttribution: upunkt commentedSame here, 7.x 1.2, patch #8 resolves issue.
Comment #17
drurian CreditAttribution: drurian commentedOk it seems we have two conflicting issues here. This one and https://www.drupal.org/node/2079239
Comment #18
drurian CreditAttribution: drurian commentedComment #19
umakart CreditAttribution: umakart commentedThx for #8 patch
Comment #20
timodwhit CreditAttribution: timodwhit commentedI actually rerolled this patch into 7.x-1.3 because of 7.x-1.2 wasn't allowing the saving of an entityform block.
However I think some things changed in dev that need the patch from the related issue posted by @drurian.
Thus, updating to 7.x-1.3 should solve this.
Comment #21
ericdsd CreditAttribution: ericdsd commentedAfter updating to 1.3 - enable block stopped working
in entityform_block/entityform_block.module line 107
replacing
if ($form_state['values']['data']['enable_block'] == 1) {
by
if ($form_state['values']['data']['block_set']['enable_block'] == 1) {
did the trick
Comment #22
timodwhit CreditAttribution: timodwhit commented@ericdsd. Just tried out the 1.3 branch on simplytest.me, can you explain the steps to reproduce the error, I was not able to do so.