Closed (fixed)
Project:
MultiBlock
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jul 2011 at 02:15 UTC
Updated:
17 Mar 2015 at 15:38 UTC
Jump to comment: Most recent
When I try to configure the visibility of a multiblock, I get an error and the settings don't save.
The original block is for the front page along and the multi block is for the inside sidebar, but It won't let me save it!
I get this error Undefined index: body in block_custom_block_save() (line 537 of /var/www/vhosts/xxxxxx.net/subdomains/xxxxx/httpdocs/modules/block/block.module).
I think I may have to make this multiblock enabled, but after reading the directions, I don't understand where to put the code for that. In the PHP section of the block or what?
Comments
Comment #1
alphex commentedI'm seeing something like this also.
When I create a new instance, and place it in a region, then use page visibility settings, I get these errors.
Comment #2
andrewlevine commentedHey beckyjohnson and duran,
I believe I fixed this issue in the 7.x-1.x branch. Could you guys download and test the newest 7.x-1.x-dev release from http://drupal.org/project/multiblock (just make sure the date shows 2011-Aug-26 or later)?
If you guys test and find it fixes your problem, I will roll a new stable release with the fix.
Thanks,
Andrew
Comment #3
beckyjohnson commentedSure. I'll let you know this week how it goes.
Comment #4
kpv commentedWorks for me. Thanks
Comment #6
bago commentedI just tested the latest dev but it seems this patch break the module.
You don't pass anymore the $edit parameter to the view/configure hooks, so they won't work anymore for "multiblock-enabled" modules.
I've currently patched multiblock.module this way:
--------
- if ($op == 'save') {
+ if ($block_info->multi_settings == 1 || $op == 'save') {
$block = module_invoke($block_info->module, 'block_'. $op, $block_info->orig_delta, $edit);
}
---------
and it seems to work.
Comment #7
bago commentedAm I missing anything? Isn't #6 needed to make this module working with any multiblock-enabled module?
I just saw a new release and I expected this to be fixed...
Comment #8
lolandese commentedAlso I could only make it work with the modification as indicated in #6.
Thanks Stefano (bago).
Comment #9
intrafusionThis has been fixed in other more recent issues