I've added Accordion Blocks to my site, but when I tried to go configure it under Modules, I receive this error message:
Notice: Undefined index: accordion_blocks_settings_form in drupal_retrieve_form() (line 750 of C:\inetpub\drupal79\includes\form.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'accordion_blocks_settings_form' was given in drupal_retrieve_form() (line 785 of C:\inetpub\drupal79\includes\form.inc).
Not sure what this means, but then I went to Structure->Accordion Blocks and found that there was no option for me to add an accordion block, so I'm guessing the error message I received with the configuration is related to this.
Any help would be appreciated. Thanks!
Comments
Comment #1
pflame commentednaila_z,
Thanks for pointing out the issue will change the links.
The new version of this module behaves differently. There is no settings form. I mentioned how to use this module in the module home page under usage section. Please follow those steps to create accordion block and display the block in the region.
Comment #2
naila_z commentedpflame,
When I follow what is listed under usage, I'm running into the same problem. There is no option for me to Add Accordion Block, unless I'm looking in the wrong place.
I've attached a screenshot of what I see when I try to add an accordion block.
Comment #3
pflame commentedOn the screen you should have Add Accordion block link. Did you login as super user or logged in as some other user?
Did you give permission for who can access Accordion block page?
Comment #4
naila_z commentedHm, I am currently logged in as an administrator, but I changed the permissions to authenticated user as well to be sure, and the Add Accordion Block link still doesn't appear.
Comment #5
pflame commentedOn my sample instance of this module I am seeing the link, you can see in the attachment. Try accessing the direct url admin/structure/accordion_block/add
Comment #6
naila_z commentedI just tried accessing the direct URL, but I received this error:
The page cannot be displayed because an internal server error has occurred.Drupal must hate me.
Comment #7
pflame commentedCheck the error log and post the error here.
You can also try by uninstalling the module and install again. Just now I tried installing the 7.x-3.0 file, it worked for me.
Comment #8
shwx commentedI have the same problems. I can display accordion block but without accordion function :(. Only name and triangle ...
In admin/structure/accordion_block/ I can only add, I can't edit.
I tried unistall/install module twice, I tried the same with dev version.
Thanks for any help.
Comment #9
shwx commentedI attached file with exampe
Comment #10
pflame commentedshwx,
The default theme that will be loaded is from drupal's core jquery ui library. In your theme, the elements css is over written. The accordion effect will always work. You can check how to theme accordion widget at http://jqueryui.com/demos/accordion/ click on Theming tab.
Regarding can't edit, I also noted that it is a bug. Please raise a new issue for this bug. Will work on it and fix over this week end.
Comment #11
naila_z commentedpflame,
The only error in my error log was this:
access denied 03/19/2012 - 09:43 admin/structure/accordion_block/add
I believe that was when I was trying to directly access the direct link to add an accordion block.
I tried uninstalling and installing as well, but that did not fix the issue.
Comment #12
pflame commentedTry re-building your permissions at path admin/reports/status/rebuild
Comment #13
naila_z commentedStill not working. (Sorry about the delay; I'm working on this website for my job and I haven't been in, in a while). I guess I can just play around with it... not sure what else to do, haha.
Comment #14
O.Shaya commentedI have the same problem too, another user could have the add button, but we could not edit or delete the block!
Comment #15
Patribus commentedhello, some solution for the ADD issue?
I'm having also the problem, that no ADD field apperars in the Accordion Block Menu.
Waiting for some solution.
Cheers
Comment #16
pflame commentedEdit, delete accordion block issue is fixed, check the latest code 7.x-3.x-dev version.
Comment #17
naila_z commentedHi,
Should there be something in accordion_blocks.admin.inc to add an accordion block? The only place I see it is under accordion_blocks.module. It still isn't showing up. My apologies if this is a silly question; I'm still not that familiar with creating modules in Drupal.
Thanks!
Comment #18
naila_z commentedIs there any solution to this problem?
Comment #19
Doskious commentedWas having this issue as well...
Took a look at the code in the accordion_blocks.module file, and discovered that on line 12, the string associated with the Permissions entry for access to add/edit was given as
'administer accordion blocks configuration', but that further down (Lines 54, 63, 75), the access permission indicated to check for was'administer accordion block configuration'...This was the case in both the 3.2 release and the 3.x dev version.
After uninstalling the module, changing the access permissions string to be a uniform value in the file, and reinstalling, the module seems to be working properly.
Comment #20
vedsto dev commented#20 thank you very much Doskious!
I confirm that your procedure work fine. I follow your suggest and after i reinstall the module. After your procedure i can add a module under accordion. thank you again.
Comment #21
vm commentedMoving this to 3.x-dev as comment #19 states the -dev is affected as well.
Comment #22
vm commentedsee: http://drupal.org/node/1489660#comment-6700540
Comment #23
vm commentedComment #24
pflame commentedDoskious,
Thanks for pointing the issue. I fixed the issue in 7.x-3.x-dev.