Overflowed logs a warning:
array_key_exists() expects parameter 2 to be array, null given commerce_cart.module:2072

the logs table in the database was greater than 4 gigabytes!!!

I fixed this:

-if (array_key_exists('#default_value', $form['attributes'][$used_field_name])) {

+if (!empty($form['attributes'][$used_field_name]) && array_key_exists('#default_value', $form['attributes'][$used_field_name])) {

Comments

WiseMike created an issue. See original summary.

rszrama’s picture

Priority: Major » Normal
Status: Active » Closed (duplicate)

Wow, that's a crazy log size! More reason to fix this ASAP (along with a couple other minor issues to address in 1.14).

I'm pretty sure this is a duplicate of: #2924792: Warning: array_key_exists() error after upgrade to 7.x-1.14

Linking to this from there.

hunlaprovo’s picture

Notice: Undefined index: field_foliatipus commerce_cart_add_to_cart_form() függvényben (/home/httpd/www/dekoraciosmatrica.hu/html/profiles/commerce_kickstart/modules/contrib/commerce/modules/cart/commerce_cart.module 2072 sor).
Warning: array_key_exists() expects parameter 2 to be array, null given commerce_cart_add_to_cart_form() függvényben (/home/httpd/www/dekoraciosmatrica.hu/html/profiles/commerce_kickstart/modules/contrib/commerce/modules/cart/commerce_cart.module 2072 sor).
Commerce Kickstart 7.x-2.58
This error message appeared after the Drupal update.I think it has happened a long time ago. What to do?