By riwaj on
I was following the tutorial for content page creation with a module. Stuck up badly when I tried to make my own module called writers_all.Can somebody suggest the error , I got the following message;
warning: call_user_func_array() [function.call-user-func-array]: First argumented is expected to be a valid callback, 'writers_all_admin' was given in /home/tamudhi/public_html/drupal-5.7/includes/form.inc on line 218.
Comments
It looks like you're telling
It looks like you're telling it to callback a function called "writers_all_admin", but you haven't actually written that function yet. Are you sure it's in your code?
Cheers
Mark
Code Baboon
Drupal based services
Thanks but More help plz!
Thanks Mark,
I found out that I had misspelled the function name. But after i corrected i got;
warning: Cannot modify header information - headers already sent by (output started at /home/tamudhi/public_html/drupal-5.7/modules/all_writers/all_writers.module:2) in /home/tamudhi/public_html/drupal-5.7/includes/common.inc on line 141.
Can you suggest me now what went wrong?
Sorry, that one is a little
Sorry, that one is a little more generic. Best bet is to use a debugger like x_debug and Komodo or vim, and step through the code to see where it's going wrong.
__________________________________________________________
Mark Theunissen
Code Baboon
Drupal based services
I am guessing you have a
I am guessing you have a print statement somewhere in your code. If you are trying to produce a debug statement use drupal_set_message() instead, otherwise if you are using the print statement you might want to post the code.
Thanks
Problem solved! Thank you for your help.
Regards
Rabin