Closed (fixed)
Project:
Accordion Blocks
Version:
7.x-3.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Apr 2012 at 14:54 UTC
Updated:
13 Apr 2012 at 07:52 UTC
I can add accordion blocks all day long but once they are added and in the list, I cannot modify them. The paths are "admin/structure/accordion_block/manage/[#]/edit" and "admin/structure/accordion_block/manage/[#]/delete" but do nothing once the link is clicked. I did notice that on line 84 of accordion_blocks.module, the file may be incorrectly referenced where I think "accordion_block.admin.inc" should be "accordion_blocks.admin.inc" and I tried changing it but still no joy. Sure wish I was better at PHP!
Comments
Comment #1
O.Shaya commentedI have the same problem, in addition to not being able to add an accordion block with my user, only the admin, even thought I have the permissions.
Comment #2
Nick Fedchik commented+1
Looking for bugfix
Also I see a warining in /admin/config/user-interface/accordion-blocks
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'accordion_blocks_settings_form' not found or invalid function name in function drupal_retrieve_form()and nothing more
Comment #3
pflame commentedFixed this bug and is available in the 7.x-3.x-dev release.
Will create new version 7.x-3.1 once the tags are updated.
Comment #4
Nick Fedchik commentedI update to 3.1 version. Good, can edit and delete Accordion blocks.
Comment #5
Nick Fedchik commentedOne to whishlist - if I delete a block from AB set, then only last block can be deleted. Not so usable if I need to remove block from the middle of blocks set. At least reordering could be helpful both to delete last (deep down) block and reorder blocks.
Comment #6
pflame commentedNick,
Please create a new issue for this request.
Comment #7
Nick Fedchik commented#1527850: Blocks reordering inside of AB
Comment #8
anup.singh commented/* solution for Cannot edit or delete*/
replace line 66,73,78,84 in "accordion_blocks.module"
**********************************************************
$items['admin/structure/accordion_block/manage/%accordion_block'] = array(
$items['admin/structure/accordion_block/manage/%accordion_block/edit'] = array(
$items['admin/structure/accordion_block/manage/%accordion_block/delete'] = array(
'file' => 'accordion_block.admin.inc',
************************************************************
with
**********************************************************
$items['admin/structure/accordion_block/manage/%accordion_blocks'] = array(
$items['admin/structure/accordion_block/manage/%accordion_blocks/edit'] = array(
$items['admin/structure/accordion_block/manage/%accordion_blocks/delete'] = array(
'file' => 'accordion_blocks.admin.inc',
**********************************************************************
in line 66,73,78 %accordion_block were in correct it is not able to call accordion_blocks_load()
in line 84 file specified to include was in correct
if you have any problem reply me
Comment #9
pflame commentedHi anup,
Thanks for your solution. This issue is already fixed and available in the 7.x-3.1 version.
Comment #10
anup.singh commentedhi pflame,
i am using the same version but only include file name is changed but %accordion_blocks for calling load() are still "%accordion_block" incorrect. please have a check....
Comment #11
pflame commentedThanks for checking latest version. I did not change the menu paths but I changed function name. to just load single accordion block using the function name accordion_blocks_load is meaning less. So I changed the function name to accordion_block_load. The functionality is working fine.