Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#3 | fix_empty_check-2229007.patch | 638 bytes | mansspams |
Comments
Comment #1
lsolesen CreditAttribution: lsolesen commentedWhen 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.
Comment #2
bechtold CreditAttribution: bechtold commentedI had the same problem and can confirm that your solution works fine.
Thank you.
Comment #3
mansspams CreditAttribution: mansspams commentedThanks Isolesen for pointing to issue. Patch provided.
Comment #5
rbayliss CreditAttribution: rbayliss commentedMakes sense. Thanks!