When editing a product created with Commerce Kickstart 2.x and enabled Autosku I get this error.

Fatal error: Unsupported operand types in /data/disk/o1/static/kickstart-20140312/profiles/commerce_kickstart/modules/contrib/commerce_autosku/commerce_autosku.module on line 23
I am not sure whether the error is in Kickstart or in Autosku, because all the product types I created my self works.

This is also reported here #2224985: Unsupported operand types commerce_autosku.module on line 23

CommentFileSizeAuthor
#3 fix_empty_check-2229007.patch638 bytesmansspams
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lsolesen’s picture

When changing http://drupalcode.org/project/commerce_autosku.git/blob/refs/heads/7.x-1... to !empty() instead of isset (because $form_state['product_type']['autosku']['pattern'] returns NULL in my case and thus isset) I was able to remedy the problem.

bechtold’s picture

I had the same problem and can confirm that your solution works fine.
Thank you.

mansspams’s picture

Status: Active » Needs review
FileSize
638 bytes

Thanks Isolesen for pointing to issue. Patch provided.

  • rbayliss committed 32e86f4 on 7.x-1.x authored by mansspams
    Issue #2229007 by mansspams | lsolesen: Fixed Unsupported operand types...
rbayliss’s picture

Status: Needs review » Fixed

Makes sense. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.