Paid events broken with update

Project:Paid event
Component:Code
Category:
Priority:normal
Assigned:Unassigned
Status:active
Description
Project: 
uc_event

I just updated to Ubercart 1.7, and when I did so, my paid events are now broken.

* 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_513' was given in /home/mysite/public_html/includes/form.inc on line 218.
* 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_513' was given in /home/mysite/public_html/includes/form.inc on line 218.
* 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_513' was given in /home/mysite/public_html/includes/form.inc on line 218.

I have the latest uc_event as posted here. Not sure what is happening.

I have tried uninstalling modules, reinstalling, making them unpaid and they making the event paid again. No success on anything.

Any ideas where to start looking?

Version: 
Ubercart 1.7
NewZeal's picture
Offline
Joined: 04/18/2008
Juice: 56
Re: Paid events broken with update

Try using the latest version now posted at the top of the uc_event contrib page and get back if you still have problems.

NewZeal's picture
Offline
Joined: 04/18/2008
Juice: 56
Re: Paid events broken with update

This error is fixed by patching uc_product.module as follows:

function uc_product_forms($saved_args) {

- if (in_array($product->type, array_keys(uc_product_node_info()))) {
---
+ if (in_array($product->type, module_invoke_all('product_types'))) {

I have just done this in Ubercart 5.17 which is the latest at the time of writing.