WSOD when module providing the event is disabled

Amitaibu - July 17, 2008 - 12:39
Project:Workflow-ng
Version:5.x-2.x-dev
Component:Wng API
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

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.

#1

Amitaibu - July 17, 2008 - 12:50
Status:active» needs review

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

AttachmentSize
wf_ng_ui_1.patch 1.04 KB

#2

fago - July 29, 2008 - 10:45
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.

#3

sethcohn - September 22, 2008 - 14:26

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

#4

sethcohn - September 22, 2008 - 14:37
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.

#5

fago - September 25, 2008 - 10:07

Can you reproduce it? How?

#6

sethcohn - September 25, 2008 - 15:20

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.

#7

fago - October 20, 2008 - 12:48
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...

#8

fago - February 19, 2009 - 16:06
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.. :)

#9

System Message - March 5, 2009 - 16:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.