I've not seen this problem with other themes, but when the Slate/Admin theme is set as my admin theme, I cannot create Menu Blocks (http://drupal.org/project/menu_block) and get the following error on a naked (unthemed) page:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'slate_fieldset' was given in [SITE ROOT]\includes\theme.inc on line 617.
(x 4 lines)
(For info, line 617 is from theme function, $output = call_user_func_array($info['function'], $args);
. That's the limit of my bug-checking skills, alas)
It's the only snag I've had so far with this wonderful module. Looked at the Menu Block issue queue and nothing raised there.
BTW - my workaround is set Admin theme to system default, create the menu blocks I need, then re-enable Slate as my Admin theme. Works fine, but just worried there's something else amiss - hence raising it *just in case*
Comments
Comment #1
pixeliteI'm seeing the exactly the same issue with the slate/menu_block combination. I'll post back here if I find a solution.
Comment #2
JmsCrk CreditAttribution: JmsCrk commentedI'm having a similar issue when using Revision Moderation module: http://drupal.org/project/revision_moderation
For users who are not user 1 the above error appears whenever they are logged in and view any admin page. That module creates a block that only appears for administrators with the right permissions (I think). It has other issues but there's nothing in their issue queue about this and the experiences above suggest it could be an Admin theme thing.
Comment #3
netsensei CreditAttribution: netsensei commented+1
I'm seeing the exact same thing:
This is the entire output I get whenever I try to add a new menu block from the block list for my own custom theme (*not* slate)
Those functions (slate_fieldset) are in the template.php of slate. I'm not sure if they are overridden properly: I don't see any slate_theme() function that registers these.
I've used menu block succesfully in the past with Garland. I've never encountered any problems with it. I don't think that module authors should adapt there module to the quirks of a different admin theme.
Comment #4
shawngo CreditAttribution: shawngo commentedI also encountered this error. The 'quick fix' I found was to set the default admin theme to <System default> in admin/themes/admin.
Shawn
Comment #5
jrefano CreditAttribution: jrefano commentedhaving the same issue. i also have the menu block module installed. i dont want to turn off the admin theme, its a huge bummer! i didnt know about this bug until i created a user for the client right before training. ouch.
Comment #6
MrKistic CreditAttribution: MrKistic commentedI've been testing out the admin theme and it was looking good up until I installed the Revision Moderation module and now have the same problem. Just preparing for quite a large development over the next few months using both of these modules so I'll be happy to either see a solution pop up here or provide one when we inevitably have to work it out.
Comment #7
Holoduke CreditAttribution: Holoduke commentedHello:
I got same error when i tried to edit a Rule while the active user was a custom account with all perms. But if I edit the accion at Rules from default admin user the problem disapears.
Comment #8
modulist CreditAttribution: modulist commentedWe noticed the same issue, but it only came up with certain roles. We managed to trace the issue back to permissions with the admin module.
To fix the issue go to /admin/user/permissions
You'll need to have permissions for admin menu enabled under the admin module for each role that's going to access admin pages in the Slate theme.
Comment #9
m.stentaSame problem, using Menu Block module. (subscribing)
Comment #10
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedsame problem here but menu_block is not enabled
Comment #11
muschpusch CreditAttribution: muschpusch commentedgot the same error and like modulist wrote:
To fix the issue go to /admin/user/permissions
You'll need to have permissions for admin menu enabled under the admin module for each role that's going to access admin pages in the Slate theme.
and don't forget to flush all caches...
Comment #12
creativegenius CreditAttribution: creativegenius commentedI have the same issue with the Events module (event-6.x-2.x-dev). This appears when I edit the Event node with the Slate theme.
There is no change when I set the permissions. This also appears with the Slate theme selected with "Use administration theme for content editing" unchecked and saved.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'slate_admin_block_content' was given in /home/tbm4570/public_html/skills/includes/theme.inc on line 617.
Comment #13
madrush CreditAttribution: madrush commentedSame issue. But once I'm logged in (with Admin menu permissions set for my account), it's not a problem anymore. We do not have Menu Block either installed or enabled; nor Revision Moderation.
Comment #14
AlfTheCat CreditAttribution: AlfTheCat commentedSame here. Editing permissions didn't fix the problem. Logging on as user 1 doesn't help either.
Comment #15
Jolidog CreditAttribution: Jolidog commentedI don't think you ment to change the title... :P
Comment #16
theresaanna CreditAttribution: theresaanna commentedChanging status back to "active" as I don't believe creativegenius meant to mark it "won't fix".
Same issue here.
Comment #17
chris_gooley CreditAttribution: chris_gooley commentedI had the same issue and fixed it the same way as in #4.
I added the permissions for authenticated users to access the module then changed the admin theme to System Default.
It turns out the System Default admin theme IS the Slate theme when the admin module is enabled. All working fine now.
Comment #18
eric_wijaya CreditAttribution: eric_wijaya commentedIt works.. Thanks. Solve my problem by change the admin theme to System Default.