2
Answers
Vote up!
0
Vote down!

Why cant I add product types?

I get this error when I try to add additional products in the commerce module.

[code]
Notice: Undefined index: invoice in commerce_order_invoice_form_commerce_product_ui_product_type_form_alter() (line 116 of /home/xionide/public_html/sites/all/modules/commerce_order_invoice/commerce_order_invoice.module).
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'invoice' in 'field list': INSERT INTO {commerce_product_type} (type, name, description, help, revision, invoice) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5); Array ( [:db_insert_placeholder_0] => services [:db_insert_placeholder_1] => Services [:db_insert_placeholder_2] => Services can be provided without a normal product SKU [:db_insert_placeholder_3] => [:db_insert_placeholder_4] => 1 [:db_insert_placeholder_5] => 0 ) in drupal_write_record() (line 7106 of /home/xionide/public_html/includes/common.inc).
[/code]

I also get this error:
[code]
Notice: Undefined index: invoice in commerce_order_invoice_form_commerce_product_ui_product_type_form_alter() (line 116 of /home/xionide/public_html/sites/all/modules/commerce_order_invoice/commerce_order_invoice.module).
[/code]
This error happens at the top of the page when I try anything with the products page. I love this module and wish I could add more product types.

This error happens when I try and create a new product:

Notice: Undefined index: invoice in commerce_order_invoice_form_commerce_product_product_form_alter() (line 133 of /home/xionide/public_html/sites/all/modules/commerce_order_invoice/commerce_order

Thanks again.

Asked by: atsuisofu
on March 20, 2013

2 Answers

Vote up!
1
Vote down!

Just an idea, not necessarily the solution: I got similar error after a module installation was interrupted by PHP, because it reached the execution time limit. I got more and more errors, some went away after cache clearing, but the final solution was to completely reinstall (disable+uninstall+enable) the modules whose installation was interrupted.
Since that, If I want to enable many modules, I do it in multiple steps.

Answer by: GaborTorok
Posted: Mar 21, 2013

Comments

I am not sure if that is the issue I didnt go through the normal steps of using the web interface to install I put the folders into sites/all/modules and than activated them in the modules section. I will try re-uploading all of the modules related to products.

- atsuisofu on March 21, 2013
Vote up!
-1
Vote down!

notice: Undefined index: invoice in commerce_order_invoice_form_commerce_product_ui_product_type_form_alter() (line 116 of /******************/all/modules/commerce_order_invoice/commerce_order_invoice.module).

I still get this error and google seraching ahs turned up 0 results. Any info on this would be greatly appreciated.

Answer by: atsuisofu
Posted: Mar 21, 2013