Closed (fixed)
Project:
Workflow
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jan 2012 at 23:20 UTC
Updated:
6 May 2016 at 07:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
shendric commentedI would like to second this report. When I click the Workflow tab of a node, I get the same error.
Comment #2
shendric commentedJust looked at the code, and I'm confused, because it doesn't look like anything is getting passed by reference:
*shrug*
Comment #3
shendric commentedThis forum discussion might be useful in figuring out how to fix the bug:
http://drupal.org/node/1064792
Comment #4
sbrege commentedHi shendric,
thanks for the hint, but I'm actually not so good in php.
Is there a chance to get the bug fixed? Can the maintainer please fix it?
Thanks,
Stefan
Comment #5
fire-wolf commentedHello, All!
Problem is that Drupal needs a variable to render. So the combination drupal_render(drupal_get_form(...)) is bad.
There are two files to edit:
workflow.pages.inc (line 26)
change to:
and workflow_admin_ui/workflow_admin_ui.module (line 756)
change to:
Comment #6
adshill commentedI can confirm this has worked for us.
Comment #7
Morten Najbjerg commented#5 worked for me too. Here's a patch.
Comment #8
sbrege commented#5 worked for me too
I've edited the file by hand, because the patch from #7 had problems (see screenshot)
Comment #9
Bastlynn commentedLooks like you ran your diff from the modules folder, not the workflow folder Morten. I've tweaked the patch for that directory difference. Otherwise, looks good and has been committed on 7.x-1.x-dev branch.
Comment #10
Bastlynn commentedThanks all :)
Comment #11
adshill commentedGood work Firewolf :)
Comment #13
alexander allen commentedWorked for me, thank you.
Comment #14
nabajit commentedI also was getting the same issue, while rendering user menu. My code is -
Before -
$tree = menu_tree_all_data('user-menu');
$html = drupal_render(menu_tree_output($tree));
After making these to :
$tree = menu_tree_all_data('user-menu');
$menu = menu_tree_output($tree);
$html = render($menu);
it worked perfectly.
Thanks All.
Comment #15
drupalmani28 commented#5 is worked fine for me. Thanks
Comment #16
geocalleo commented#5 worked for me.
Comment #17
bisw commented#5 worked for me.
Comment #18
johnv@bisw, are you still at version 1.0?