Patch fixes it by checking if $element['#settings'] is empty.

Comments

mrtoner’s picture

Status: Needs review » Reviewed & tested by the community

Fatal error also occurs when saving an action, at least Custom PHP Code. Or rather, occurred. No longer.

amitaibu’s picture

Title: Fatal error when saving a condition » Fatal error when saving a condition/ action

change title.

Christopher Herberte’s picture

Is this likely to fix the fatal error when adding "send a mail to an arbitrary mail address" action?

Fatal error: Unsupported operand types in /var/www/.../modules/rules/rules/rules.admin.inc on line 815
mrtoner’s picture

It's likely. Apply the patch and see.

Christopher Herberte’s picture

Yep, good idea :P I applied the patch and it fixed my inability to create arbitrary mail actions. Thank-you.
+1

edward.peters’s picture

Can I assume this patch will be in next Dev release?

mercmobily’s picture

Hi,

From the developer's blog, he's on holiday and will be back on the 21st of September.
So, I guess we'll have to wait for that!

Merc.

fago’s picture

Status: Reviewed & tested by the community » Fixed

indeed, I was.

I've committed another fix for this - which fixes the source of the bug. Please test the next dev snapshot.

mercmobily’s picture

Hi,

Thanks Fago.

Merc.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

mitchell’s picture

Component: Code » Rules Core

Updated component.