warning: call_user_func_array() [function.call-user-func-array]

held69 - June 23, 2009 - 12:09
Project:Image Picker
Version:6.x-2.x-dev
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

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.

#1

hutch - June 23, 2009 - 17:28

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

#2

held69 - June 23, 2009 - 19:55
Status:active» fixed

Thanks there.

Cleared the cache haven't seen the warning again.

#3

System Message - July 7, 2009 - 20:00
Status:fixed» closed

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

#4

murokoma - August 21, 2009 - 10:05
Status:closed» needs review

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

Anything else I could check for?

Thanks a lot!
Best regards,
Robert

#5

hutch - August 21, 2009 - 17:11

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

#6

hutch - September 25, 2009 - 09:40
Status:needs review» closed

#7

joecanti - October 7, 2009 - 19:26

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

Thanks again, joe

#8

held69 - November 24, 2009 - 21:33
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?

#9

held69 - November 25, 2009 - 09:14
Status:closed» active

#10

hutch - November 25, 2009 - 10:22

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.

#11

held69 - November 25, 2009 - 14:23

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.

#12

hutch - November 25, 2009 - 15:05

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

#13

held69 - November 25, 2009 - 16:07

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.

#14

hutch - November 29, 2009 - 13:53
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 ;-(

#15

held69 - November 29, 2009 - 15:18

Great Hutch

Thanks, i'll trie it out.

#16

hutch - November 29, 2009 - 17:07

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'

 
 

Drupal is a registered trademark of Dries Buytaert.