Problems with RC4

Posts: 19
Joined: 04/08/2008

I have just installed RC4 over RC2 and got the following error in the catalog (not product) pages:

warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'uc_product_add_to_cart_form_7' was given in /drupal/includes/form.inc on line 218.

For what is worth: I have brought the following contrib modules from RC2:

uc_marketing
uc_taxes_price
uc_vat_number

My setup:

Web Server: Apache/2.2.8 (Debian) DAV/2 PHP/5.2.5-3 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g mod_perl/2.0.3 Perl/v5.8.8

MySQL version 5.0.51a

Drupal 5.7

Sad

Posts: 19
Joined: 04/08/2008

Update: disabling the product kit module the error goes away.

Any ideas?

Posts: 19
Joined: 04/08/2008

Some more details on the issue.

The errors are triggered by the product kit code, and pop up in the catalog pages only (the single product kit page is ok).

In the catalog pages, the product kits have no "add to cart" button (there's no <input type="submit"…> in the html code).

Posts: 1850
Joined: 08/07/2007
AdministratoreLiTe!

I can't see what the problem is. I've tried a couple of different sites, but they both work fine. I had an idea of what would be wrong in the code, but I looked and it doesn't work the way I thought (despite the fact I'd just changed it last week).

I didn't have any previously existing product kits readily available, so it may only work with new ones. I'll try to find an old product kit in the meantime.

Posts: 19
Joined: 04/08/2008

It's not clear to me whether you confirm the issue or not. In any case, I am at your complete disposal for further investigation, ask if you need more details. Smiling

Posts: 3744
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Do you have a URL available?

Posts: 19
Joined: 04/08/2008

I've setup public dns for you:

http://shop.newcomsrl.it

This is not a production site yet.

The product kit is "Macchinetta+Cellulare" (no picture, that's ok)

Posts: 1850
Joined: 08/07/2007
AdministratoreLiTe!

Oh, you're using the grid format for the catalog. That's not something I had tested with the product kits. And looking through the code, it's obvious why it doesn't work right. For a temporary fix, you can go to Catalog settings > Edit > Grid and uncheck "Display attributes". I didn't see any in your store, so that should be ok.

Gotta figure out what I'm gonna do about this new wrinkle.

Posts: 1850
Joined: 08/07/2007
AdministratoreLiTe!

OK. Latest commit should fix it. Get the latest code from bazaar.ubercart.org.