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

pflame’s picture

naila_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.

naila_z’s picture

StatusFileSize
new9.83 KB

pflame,

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.

pflame’s picture

On 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?

naila_z’s picture

Hm, 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.

pflame’s picture

StatusFileSize
new10.81 KB

On 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

naila_z’s picture

I 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.

pflame’s picture

Check 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.

shwx’s picture

I 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.

shwx’s picture

StatusFileSize
new14.91 KB

I attached file with exampe

pflame’s picture

shwx,

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.

naila_z’s picture

pflame,

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.

pflame’s picture

Try re-building your permissions at path admin/reports/status/rebuild

naila_z’s picture

Still 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.

O.Shaya’s picture

I have the same problem too, another user could have the add button, but we could not edit or delete the block!

Patribus’s picture

hello, 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

pflame’s picture

Edit, delete accordion block issue is fixed, check the latest code 7.x-3.x-dev version.

naila_z’s picture

Hi,

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!

naila_z’s picture

Is there any solution to this problem?

Doskious’s picture

Was 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.

vedsto dev’s picture

#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.

vm’s picture

Version: 7.x-3.0 » 7.x-3.x-dev

Moving this to 3.x-dev as comment #19 states the -dev is affected as well.

vm’s picture

vm’s picture

Title: No Option To Add Accordion Block » Access permission string is not uniform
pflame’s picture

Doskious,

Thanks for pointing the issue. I fixed the issue in 7.x-3.x-dev.