Hi guys,

I'm loving the module. It's such a great interface and much better than exposing Rules to end users.

I'm having a slight issue though in that the UI keeps throwing errors like:

HTTP Result Code: 200
Debugging information follows.
Path: /system/ajax
StatusText: parsererror
ResponseText:
Notice: Undefined index: account in /sites/all/modules/inline_conditions/modules/commerce_order.inline_conditions.inc on line 197
Warning: array_flip(): Can only flip STRING and INTEGER values! in /includes/entity.inc on line 178

Notice: Undefined index: target_id in l/sites/all/modules/inline_entity_form/inline_entity_form.module on line 440
Warning: array_flip(): Can only flip STRING and INTEGER values! in /sites/all/modules/entity/includes/entity.controller.inc on line 219

If I ignore the error and keep clicking around, it sorts itself out, but it's obviously not idea.

Any ideas?

Phil

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jkuma’s picture

Hi amillionmonkeys,

May you forward us more details about your Drupal instance, the discounts you have created (what are the conditions, the discount type and the offer type).

Thanks in advance,
goldo

jkuma’s picture

Project: Commerce Discount » Inline Conditions
Version: 7.x-1.0-alpha2 » 7.x-1.x-dev
Assigned: Unassigned » jkuma
Status: Active » Needs work

I've moved your issue to Inline conditions because it's not discount related.

jkuma’s picture

Status: Needs work » Active

From my perspective, you have an issue with the user condition.

Did you get the last version of inline_conditions ? Did you try to enter more than one username in the textfield ? What did you do to get that error ?

jkuma’s picture

Status: Active » Postponed (maintainer needs more info)
amillionmonkeys’s picture

Sorry for the delay in reply, I've just become a dad for the second time!

To answer your questions, yep I've the latest version of inline_conditions. I've deleted all discounts and click add discount. Order disocunts seems to work fine, but when selecting Product discounts radio button, I immediately get the error message.

Screen grab attached in case any of this info is of use.

jkuma’s picture

Status: Postponed (maintainer needs more info) » Active

Congrats for your second child, I'm glad to hear it !

Ok, from my perspective, you need to install the last version of commerce_discount, because it's quite obvious when looking to your discount UI, you didn't have the last version. Also, I recommend you to get the last version of inline_entity_form module.

amillionmonkeys’s picture

All done. But still the error. I'm using the Commerce Discount (7.x-1.0-alpha3+0-dev) and the stable release of inline entity forms (7.x-1.3) should I need the dev version instead?

jkuma’s picture

Did you run the following commands:

  • drush updatedb
  • drush cron
  • drush cc all
amillionmonkeys’s picture

All done, errors still showing. I don't know if this is relevant at all, but I have two product types and am using Commerce Registration. I mention this because I've noticed that the products of the product type with registration enabled are not included in "Apply to" autocomplete box.

jkuma’s picture

Status: Active » Closed (cannot reproduce)

Hi amillionmonkeys,

I think your commerce_discount installation is broken. I can't reproduce the issue that's why I'm closing this post. Please, feel free to create a new issue if after a clean install the issue persist on your environment.