I know it's not ready for real use yet, but I wanted to see if this module might work for what I'm doing. I needed a 6.x replacement for the paid event module, and so far this one looks like it has the most promise. I've already added all the patches too.
I'm just wondering if I set it up wrong, because I can't get anything to show up in the orders when I make a test event. I set up a new node type using the date wizard called store class, and told it to use signups. I then made a test class, but it has no way to put the price, or any other product info. If I go to the test class it shows the signup link, but no add to cart. I know I'm missing something obvious. Does this not make a new product?

Comments

ezra-g’s picture

Status: Active » Fixed

Actually, it should be pretty close to ready for real use.

Thanks for asking! I thought i'd committed setup instructions, but apparently I did not. They're committed now and you can read them at http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/uc_signup/R... .

Please re-open this issue if that doesn't answer your question.

wxman’s picture

Thanks. Those directions do help.

wxman’s picture

I did it right this time, much better. The ony problem is I'm getting this error after clicking checkout, then it asked for an email:

Wrong datatype for second argument in /var/www/clients/client4/web4/web/sites/all/modules/uc_signup/uc_signup.module on line 57.

After running through the rest of the test order using check, I made it to the confirmation, but it showed this:

warning: Invalid argument supplied for foreach() in /var/www/clients/client4/web4/web/sites/all/modules/uc_signup/uc_signup.module on line 539.
warning: Invalid argument supplied for foreach() in /var/www/clients/client4/web4/web/sites/all/modules/uc_signup/uc_signup.module on line 539.
Unable to send e-mail. Please contact the site administrator if the problem persists.

I was using a fake email address, so I don't know if that mattered.

Did I still do something wrong?

ezra-g’s picture

Title: Question about product intergration » Wrong datatype for second argument on line 57.
Status: Fixed » Postponed (maintainer needs more info)

Technically this should be a new issue but I'll address this here.

Could you provide a list of steps to recreate the invalid data type error? I can't duplicate it.

I'll put an if(!empty before the foreach around line 539.

wxman’s picture

This is a test site so you can't see it yet. What I did was make a test class people can pay to sign up for. Then I had a test user sign up for a class. Clicked add to cart, then check out. The first tim I didn't have an email address saved, and it gave the first error I pointed out before. The second time around, I had saved the email address, and no error came up.
I then filled out the Billing information, selected Check or money order, and clicked Review order, then Submit order. On the "Order complete" page I get:

warning: Invalid argument supplied for foreach() in /var/www/clients/client4/web4/web/sites/all/modules/uc_signup/uc_signup.module on line 539.
warning: Invalid argument supplied for foreach() in /var/www/clients/client4/web4/web/sites/all/modules/uc_signup/uc_signup.module on line 539.
Unable to send e-mail. Please contact the site administrator if the problem persists.

I hope that helps. Thanks for all the hard work.

socialnicheguru’s picture

To the original issue:

I am using the latest and greatest and getting this. error still

Click signup for quantity 1 ( can I specify more than one quantity for a signup).

I am taken to a page where it asks me for the email of person to signup (is there a way to have it pre-fill with the email of the person logged in?)

I get confirmation page for attendees and header says:

warning: in_array() [function.in-array]: Wrong datatype for second argument in /sites/all/modules/uc_signup/uc_signup.module on line 57.

ezra-g’s picture

Also @wxman, I'm not sure what you mean by "I had saved the email address"

wxman’s picture

If the user has never used it before, it asks for their email address. I had done it once already so it didn't ask the second time.

ezra-g’s picture

So, are you still seeing an error message with the latest CVS checkout?

ezra-g’s picture

Status: Postponed (maintainer needs more info) » Active

Ah- I think I see the problem. I'll try to fix this in a commit shortly.

ezra-g’s picture

Status: Active » Postponed (maintainer needs more info)

Actually, I take it back. Sorry, please describe the exact error message you are seeing and how to reproduce it with the latest version from CVS.

Thanks!

ezra-g’s picture

Status: Postponed (maintainer needs more info) » Fixed

I'm marking this as fixed. Please re-open if you can reproduce this.

wxman’s picture

Sorry it took so long to get back to you. I actually can't get it to do it anymore. I don't think I changed anything, except that I've been testing adding, and removing content, and test users. If it happens again on the new site I'm starting I'll pay attention to the details.
Thanks again.

jacerider’s picture

Status: Fixed » Active

I can reproduce this. I get the following:

on uc_signup/attendees:

Invalid argument supplied for foreach() in /home/avencres/public_html/sites/all/modules/uc_signup/uc_signup.module on line 234.

and then, after checkout:

Invalid argument supplied for foreach() in /home/avencres/public_html/sites/all/modules/uc_signup/uc_signup.module on line 580.

puneet63’s picture

Yes we are facing the same problem.

warning: in_array() [function.in-array]: Wrong datatype for second argument in drupal\sites\all\modules\ubercart\uc_signup\uc_signup.module on line 57.
warning: Invalid argument supplied for foreach() in drupal\sites\all\modules\ubercart\uc_signup\uc_signup.module on line 234.
warning: Invalid argument supplied for foreach() in drupal\sites\all\modules\ubercart\uc_signup\uc_signup.module on line 234.

in these line of code

$profile_form = array_values(module_invoke('profile', 'user', 'register', array(), (object)array()));
$profile_form = $profile_form[0];
$form[$mail]['profile'] = $profile_form;
foreach ($form[$mail]['profile'] as $key => $value) {

In above code $profile_form is empty thats why it is showing error.

Now we need this to be fixed on urgent bases, because we need to implement same functionality in our website. And we are going to give demo to our client by next week.

Does anyone have any idea to fix this.

Thanks in advance

socialnicheguru’s picture

quite honestly, I don't think it has any real effect on functionality.

My suggestion if the developers cannot get to it (they have lives, jobs, relationships, etc), is to make sure errors don't get printed to the screen. I believe that is under admin -> settings -> error reporting

ezra-g’s picture

Status: Active » Fixed

I just committed and tested a fix for this, and will roll a new beta shortly. Be sure to read the release notes before upgrading.

Status: Fixed » Closed (fixed)

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