Hi, I am trying the D7 dev version, everything works fine if you associate the view with a particular node id however when I try to add a view I am getting several errors.
First scenario is if I add just a view to the content type, which I can do in the D6 version, the error is:

PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'product_nid' at row 1: INSERT INTO {uc_node_checkout_types} (node_type, product_nid, node_view) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => workshop_registrant [:db_insert_placeholder_1] => [:db_insert_placeholder_2] => uc_node_checkout_view|default ) in uc_node_checkout_type_form_submit() (line 186 of /Applications/MAMP/htdocs/mysite/sites/all/modules/uc_node_checkout/uc_node_checkout.admin.inc).

or if I leave the node id set from my initial test and add the view the errors are:

    Notice: Undefined property: views_plugin_query_default::$final_query in uc_node_checkout_node_type_association() (line 1083 of /Applications/MAMP/htdocs/mysite/sites/all/modules/uc_node_checkout/uc_node_checkout.module).
    Notice: Undefined property: views_plugin_query_default::$query_args in uc_node_checkout_node_type_association() (line 1083 of /Applications/MAMP/htdocs/mysite/sites/all/modules/uc_node_checkout/uc_node_checkout.module).
    Recoverable fatal error: Argument 2 passed to db_query() must be an array, null given, called in /Applications/MAMP/htdocs/mysite/sites/all/modules/uc_node_checkout/uc_node_checkout.module on line 1083 and defined in db_query() (line 2309 of /Applications/MAMP/htdocs/mysite/includes/database/database.inc).

I have used the same views settings as are working in the d6 versions.

Thoughts would be welcome.

Thanks
Bernie

Comments

cgdrupalkwk’s picture

I am getting the same error. Any help would be greatly appreciated. This module is a great addition to UC and I am excited to see a more stable D7 version released. Is there a development timeline? I am interested in supporting the development of this to help expedite it.

jasom’s picture

I have same error:

Warning: Illegal offset type in isset or empty in uc_node_checkout_product_map() (line 1015 of E:\Program files\VertrigoServ\www\7\sites\all\modules\uc_node_checkout\uc_node_checkout.module).
Notice: Undefined index: view in uc_node_checkout_product_select_form() (line 574 of E:\Program files\VertrigoServ\www\7\sites\all\modules\uc_node_checkout\uc_node_checkout.module).
Notice: Undefined offset: 1 in uc_node_checkout_product_select_form() (line 574 of E:\Program files\VertrigoServ\www\7\sites\all\modules\uc_node_checkout\uc_node_checkout.module).
Notice: Undefined index: nid in uc_node_checkout_product_select_form() (line 582 of E:\Program files\VertrigoServ\www\7\sites\all\modules\uc_node_checkout\uc_node_checkout.module).
Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain() (line 1572 of E:\Program files\VertrigoServ\www\7\includes\bootstrap.inc).
An error has occurred. Please contact an administrator about not being able to select a product to create this .
rico3030’s picture

Type '0' in product_NID field before submitting the form.
Your View name will be saved without error message and as it is mentionned :

if a View is specified, the Product NID setting will be ignored