Download & Extend

Errors when canceling a signup

Project:Signup
Version:6.x-1.0-rc5
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I get the following errors after confirming that I want to cancel a signup and the user remains signed up.

warning: array_fill() [function.array-fill]: Number of elements must be positive in /Users/stephenm/Sites/drupal6.dev/htdocs/includes/database.inc on line 241.

warning: implode() [function.implode]: Invalid arguments passed in /Users/stephenm/Sites/drupal6.dev/htdocs/includes/database.inc on line 241.

user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: SELECT u.name, u.uid, s.* FROM signup_log s INNER JOIN users u ON s.uid = u.uid WHERE s.sid IN () in /Users/stephenm/Sites/drupal6.dev/htdocs/sites/all/modules/signup/includes/node_admin.inc on line 152.

warning: Invalid argument supplied for foreach() in /Users/stephenm/Sites/drupal6.dev/htdocs/sites/all/modules/signup/includes/node_admin.inc on line 184.

I tried with two different kinds of users: user1 and anonymous. Both failed. I tried to delete both at the same time and both individually -- no difference in the result.

Comments

#1

Version:6.x-1.0-rc3» 6.x-1.x-dev
Category:bug report» support request
Status:active» postponed (maintainer needs more info)

Can you try again with the latest code in DRUPAL-6--1 (or the 6.x-1.x-dev release)? This might have already been fixed thanks to #370397: All anonymous signups cancelled when any user is deleted and/or #361073: Confirmation form for canceling your own signup.

I can't reproduce this at all, either with the latest code, nor even the 6.x-1.0-rc3 code. Downgrading to a support request until there are detailed instructions for reliably reproducing this problem...

#2

I'm getting this same problem with Signup rc5 and Drupal 6.13. I have the same code running locally and can do cancellations just fine, but when I move to my shared host the problem comes up. For some reason the user ids array in the session is empty when the form is processed. I'm guessing this must be a php configuration issue of some sort.

Anyone have any ideas. Thanks

Scott

#3

Status:postponed (maintainer needs more info)» active

#4

Version:6.x-1.x-dev» 6.x-1.0-rc5

#5

I was able to get this working by commenting out line 56 in node_admin.inc.

function signup_node_admin_details_form(&$form_state, $node) {
//unset($_SESSION['signup_cancel_multiple_users']);
$form = array();
...

Not sure if there are any side effects to this, but I haven't seen any yet.

Scott

nobody click here