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
Comment #1
cgdrupalkwk CreditAttribution: cgdrupalkwk commentedI 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.
Comment #2
jasom CreditAttribution: jasom commentedI have same error:
Comment #3
rico3030 CreditAttribution: rico3030 commentedType '0' in product_NID field before submitting the form.
Your View name will be saved without error message and as it is mentionned :