After entering the image picker settings page got following warning:

warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'imagepicker_settings_form' was given in /home/mysite/domains/mysite/public_html/includes/form.inc on line 366.

Comments

hutch’s picture

Oh dear, it has not found imagepicker_settings_form which does exist, try flushing the cache under site configuration > performance
Hope this helps

held69’s picture

Status: Active » Fixed

Thanks there.

Cleared the cache haven't seen the warning again.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

murokoma’s picture

Status: Closed (fixed) » Needs review

Having the same problem - flushing the cache did not help.

Anything else I could check for?

Thanks a lot!
Best regards,
Robert

hutch’s picture

Try using the dev module, it will help rebuild the menu.
Oops that's the devel module

hutch’s picture

Status: Needs review » Closed (fixed)
joecanti’s picture

Thanks Hutch - it worked for me too! useful little trick that, never knew it was there...

Thanks again, joe

held69’s picture

Version: 6.x-2.x-dev » 6.x-2.5

Mmm keep getting this error, under 6.x-2.5 as well.
After i click on 'images', 'groups' or 'validate' files and return to 'general' the menu seem to be there again.
I dont have to much experience with the devel module.

Could you specify how to rebuild the menu with the devel menu?

held69’s picture

Status: Closed (fixed) » Active
hutch’s picture

Install the devel module, enable the Development block and click on rebuild menus. You can also get there by visiting the menus page and saving. Also flush cache.

held69’s picture

thanks for your quick walkthrough.

I enabled the block, rebuild the menus and cleared the cache (admin/settings/performance.
However when i return to General settings in Image picker i see
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'imagepicker_settings_form' was given in /home/voordeze/domains/voordezebuurt.nl/public_html/includes/form.inc on line 371.

As mentiondened earlier when i go to another menu under image picker and return to the General settings the menu is there how it should be.

hutch’s picture

Very odd, it's as if imagepicker.admin.inc has not loaded. I can't replicate this error.

held69’s picture

i'll try a reinstall.....
Not much difference.

BUT

I noticed a different behaviour between going to 'General settings' via admin menu (module) and the regular navigation menu.
Via the admin menu i'll get the warning as mentioned.
The navigation menu just gives the menu as it should be.

hutch’s picture

Version: 6.x-2.5 » 6.x-2.x-dev

This error has now been fixed in the latest development version, it took a while to track it down ;-(

held69’s picture

Great Hutch

Thanks, i'll trie it out.

hutch’s picture

It's not been rolled out yet, after midnight gmt or pull it out of CVS
Alternately you can insert the following line:

    'file'             => 'imagepicker.admin.inc',

into imagepicker.module line 124, just below 'type'

hutch’s picture

Status: Active » Closed (fixed)