Posted by johnblade on November 17, 2008 at 4:27am
7 followers
| Project: | Event |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | dww |
| Status: | closed (fixed) |
Issue Summary
I was running the previous 6.x.1.x-dev release of Signup before moving to the RC1. It was working fine, however now with the new RC1 I am receiving this error whenever viewing an Event.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'signup_form' was given in /my/drupal/directory/includes/form.inc on line 366.
Everything still seems to work and users are still able to signup.
Comments
#1
A) Are you 100% positive you correctly upgraded to 6.x-1.0-rc1? That release added a bunch of new files (see #330828: Split module code into separate .inc files for D6 menu API), and if you don't have all the right new files, and/or still have some of the old files, you'll get all kinds of problems. Basically, you need to completely remove your signup directory and start over cleanly when you upgrade to rc1.
B) Try clearing your caches. Visit admin/settings/performance and click the "Clear cached data" button.
Reply here to report your results, and either set this issue back to "active" if you're still having problems (with more information about exactly what steps you can use to reproduce the problem), or "fixed" if either/both of those suggestions solved it.
Thanks,
-Derek
#2
I installed this module for the very first time today and ran into precisely the same problem. The warning occurred as soon as I signed up for an event.
#3
I can't reproduce this at all, with either the latest code in HEAD in CVS, or from installing the 6.x-1.0-rc1 tarbal. I've tried signing up as a site admin, a regular authenticated user, and anonymous. I get PHP warnings from token.module, but otherwise, no errors at all.
Can those of you experiencing problems please give detailed directions about exactly what you're doing, what versions of everything you're using (including PHP), precise steps you took to install the module, and what steps you can take to reliably reproduce the problem (including configuration of the module and permissions, what user/role you use to signup as, etc).
#4
I'm running PHP Version 5.2.0-8+etch13 (latest Debian Etch Stable)
I tried erasing the old signup module directory and copying the new signup module RC1 directory.
I only see the error AFTER Signing up to an event. However all users from then on will see the error if the print error to screen is enabled in the Logging section of drupal.
I am signing up with a user that has Administrative privileges over the Signup and Event module.
It seems that the error repeats itself for each user that is signed up to an event. For instance if I two people sign up to an event the error will show two times when visiting that Event page.
#5
What other modules are you using? event.module? What version? Can you post the exact text of the full error message? I still can't reproduce this at all. I'm using PHP Version 5.2.6 and just tried with both core 6.6 official, and the end of the DRUPAL-6 branch. :(
Until I can see the problem, there's no way I can fix it. From the sound of it, it's as if you don't have the right files. Can you post the $Id$ tags from the tops of the following files:
signup.module
includes/node_output.inc
includes/signup_form.inc
They should be:
// $Id: signup.module,v 1.200 2008/11/15 02:03:49 dww Exp $// $Id: node_output.inc,v 1.1 2008/11/15 02:03:50 dww Exp $
// $Id: signup_form.inc,v 1.1 2008/11/15 02:03:50 dww Exp $
I'm very confused by this issue...
#6
OP posted the warning text in full. Here is mine:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'signup_form' was given in D:\WampServer\www\proto\includes\form.inc on line 366.
I'm running on WampServer with Apache 2.2.8, PHP 5.2.5.
I have the following modules installed and enabled:
Administration
Administration Menu 6.x-1.1
CCK
Content 6.x-2.1
Content Copy 6.x-2.1
Content Permissions 6.x-2.1
Fieldgroup 6.x-2.1
Node Reference 6.x-2.1
Number 6.x-2.1
Option Widgets 6.x-2.1
Text 6.x-2.1
User Reference 6.x-2.1
Core - optional
Aggregator 6.6
Comment 6.6
Help 6.6
Menu 6.6
Path 6.6
PHP filter 6.6
Profile 6.6
Statistics 6.6
Syslog 6.6
Taxonomy 6.6
Tracker 6.6
Update status 6.6
Upload 6.6
Date/Time
Date 6.x-2.0-rc4
Date API 6.x-2.0-rc4
Date Copy 6.x-2.0-rc4
Date Popup 6.x-2.0-rc4
Date Repeat API 6.x-2.0-rc4
Date Timezone 6.x-2.0-rc4
Event
Calendar Signup 6.x-2.x-dev
Event 6.x-2.x-dev
Other
Advanced help 6.x-1.1
Advanced help example 6.x-1.1
Announcements 6.x-1.2
Pathauto 6.x-2.x-dev
Signup 6.x-1.0-rc1
String Overrides 6.x-1.7
Token 6.x-1.x-dev
Views
Views 6.x-2.1
Views exporter 6.x-2.1
Views UI 6.x-2.1
The above list shows the dev version of Token, prompted by this: http://drupal.org/node/317606. It didn't help.
All correct:
// $Id: signup.module,v 1.200 2008/11/15 02:03:49 dww Exp $
// $Id: node_output.inc,v 1.1 2008/11/15 02:03:50 dww Exp $
// $Id: signup_form.inc,v 1.1 2008/11/15 02:03:50 dww Exp $
If you search the Drupal site for this warning, it throws up a lot of issues:
http://www.google.com.hk/search?hl=en&q=%22first+argument+is+expected+to...
#7
Please disable calendar signup and let me know if that fixes it.
#8
Disabling calendar signup stops the warning. Is that the same as fixing it? :-?
#9
Right. calendar_signup (should probably be named event_calendar_signup to avoid possible conflicts with calendar) was written against an earlier 6.x-1.x-dev of signup. signup 6.x-1.0-rc1 had a bunch of its files reorganized over at #330828: Split module code into separate .inc files for D6 menu API. so, calendar_signup now needs to call:
<?phpmodule_load_include('inc', 'signup', 'includes/signup_form');
?>
before it calls drupal_get_form('signup_form')...
#10
Try this.
#11
I tried the above patch and unfortunately have the same error.
#12
@johnblade: I don't believe you. ;) I just installed "calendarsignup" on my D6 test site, saw the error messages, applied my patch, and saw them go away.
Note to all: "calendarsignup" is *VERY* primitive at this point, and definitely "dev" code (alpha, i'd call it). I certainly don't support or recommend it yet. I'm just trying to help killes out, who's trying to get it working at all.
Meanwhile, I strongly recommend disabling calendarsignup.module on your sites, until killes says it's expected to work.
#13
335209_calendarsignup_load_include.10.patch ,this is help for my site:ㄚ琪琪的家
#14
I had the same problem with a Drupal 6.6 site where I freshly installed the signup module.
Disabling the "Calendar Signup" module which is a part of the Calendars module fixed it as you suggested. Thanks.
#15
The provided patch has been applied.
#16
Automatically closed -- issue fixed for two weeks with no activity.