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

pixelite’s picture

I'm seeing the exactly the same issue with the slate/menu_block combination. I'll post back here if I find a solution.

JmsCrk’s picture

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

netsensei’s picture

+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)

* 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 /Users/matthias/yard/project.be/trunk/www/includes/theme.inc on line 617.
* warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'slate_fieldset' was given in /Users/matthias/yard/project.be/trunk/www/includes/theme.inc on line 617.
* warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'slate_fieldset' was given in /Users/matthias/yard/project.be/trunk/www/includes/theme.inc on line 617.
* warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'slate_fieldset' was given in /Users/matthias/yard/project.be/trunk/www/includes/theme.inc on line 617.
* warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'slate_fieldset' was given in /Users/matthias/yard/project.be/trunk/www/includes/theme.inc on line 617.

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.

shawngo’s picture

I also encountered this error. The 'quick fix' I found was to set the default admin theme to <System default> in admin/themes/admin.

Shawn

jrefano’s picture

Version: 6.x-1.0-beta2 » 6.x-1.0-beta3

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

MrKistic’s picture

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

Holoduke’s picture

Hello:

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.

modulist’s picture

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

m.stenta’s picture

Same problem, using Menu Block module. (subscribing)

SocialNicheGuru’s picture

same problem here but menu_block is not enabled

muschpusch’s picture

Status: Active » Fixed

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

creativegenius’s picture

Title: Problem with Slate/Admin theme and Menu Block module » Problem with Slate/Admin theme and Menu Block module + Events Module
Status: Fixed » Closed (won't fix)

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

* warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'slate_node_form' was given in /home/tbm4570/public_html/skills/includes/theme.inc on line 617.
    * warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'slate_fieldset' was given in /home/tbm4570/public_html/skills/includes/theme.inc on line 617.
    * warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'slate_fieldset' was given in /home/tbm4570/public_html/skills/includes/theme.inc on line 617.
    * warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'slate_fieldset' was given in /home/tbm4570/public_html/skills/includes/theme.inc on line 617.
    * warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'slate_fieldset' was given in /home/tbm4570/public_html/skills/includes/theme.inc on line 617.
    * warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'slate_fieldset' was given in /home/tbm4570/public_html/skills/includes/theme.inc on line 617.
    * warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'slate_fieldset' was given in /home/tbm4570/public_html/skills/includes/theme.inc on line 617.
    * warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'slate_fieldset' was given in /home/tbm4570/public_html/skills/includes/theme.inc on line 617.
    * warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'slate_fieldset' was given in /home/tbm4570/public_html/skills/includes/theme.inc on line 617.
    * warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'slate_fieldset' was given in /home/tbm4570/public_html/skills/includes/theme.inc on line 617.
    * warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'slate_fieldset' was given in /home/tbm4570/public_html/skills/includes/theme.inc on line 617.
    * warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'slate_fieldset' was given in /home/tbm4570/public_html/skills/includes/theme.inc on line 617.

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.

madrush’s picture

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

AlfTheCat’s picture

Title: Problem with Slate/Admin theme and Menu Block module + Events Module » #14

Same here. Editing permissions didn't fix the problem. Logging on as user 1 doesn't help either.

Jolidog’s picture

Title: #14 » Problem with Slate/Admin theme and Menu Block module + Events Module

I don't think you ment to change the title... :P

theresaanna’s picture

Status: Closed (won't fix) » Active

Changing status back to "active" as I don't believe creativegenius meant to mark it "won't fix".

Same issue here.

chris_gooley’s picture

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

eric_wijaya’s picture

It works.. Thanks. Solve my problem by change the admin theme to System Default.