Fatal error: Unsupported operand types in C:\wamp\www\d5\sites\all\modules\workflow_ng\workflow_ng\workflow_ng_ui.module on line 1269

I looked in the code and I don't understand why it happens.

CommentFileSizeAuthor
#1 wf_ng_ui_1.patch1.04 KBamitaibu

Comments

amitaibu’s picture

Status: Active » Needs review
StatusFileSize
new1.04 KB

$event[#name] was empty. Please review the patch.

fago’s picture

Status: Needs review » Postponed (maintainer needs more info)

hm, that should not happen. #name should be set, if it's not we have to find out why it's not and fix that.
Do you experienced this again? Are you able to reproduce it? I never ran in something like that.

sethcohn’s picture

Confirmed, just had it happen on an upgrade from an much older version of workflow_ng

sethcohn’s picture

Status: Postponed (maintainer needs more info) » Needs work

Patch above failed to apply, but manually added by hand, solved the error.

The problem seems to be that after the module upgrade, the workflow action in question has an empty event trigger.

fago’s picture

Can you reproduce it? How?

sethcohn’s picture

In my case, upgrading to a module version that was lacking some added code (adding the event that was missing) seems to be the trigger. Removing a module that provided a given event is likely to do the same.

fago’s picture

Title: WSOD when accessing an action » WSOD when module providing the event is disabled

oh, I understand.. thanks. I've checked it in rules, and the bug is there too. I've to find the best way to deal with this issue...

fago’s picture

Status: Needs work » Fixed

I've fixed that now. You get an error telling you what's up now on the rules overview screen. I've also fixed that for rules.

Watch out for a new workflow-ng release.. :)

Status: Fixed » Closed (fixed)

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