taxonomy menu, fatal error with views option
idcm - January 30, 2008 - 12:39
| Project: | Taxonomy Menu |
| Version: | 5.x-1.03 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I installed taxonomy menu, selected a vocabulary to be seen a "views." Clicked the link from the navigation menu and got this error:
Fatal error: Only variables can be passed by reference in /home/vhosts/oer/htdocs/modules/taxonomy_menu/taxonomy_menu.inc on line 277
I changed it to normal and it is okay.

#1
Same here
#2
I get this also ..... in fact when I make any amendments to the Taxonomy Menu setttings even though it displays all the available views I am unable to save my chosen view, despite that view being available and despite me selecting the "Views" radio button. So when I view the results page I get the fatal error as above.
My version of php is 4.3.10 and Drupal 5.1
Has anyone else seen this?
#3
same problem here,
strange thing is that it has always worked and now it suddenly doesn't.
I have no idea what could be different
#4
I don't know what's causing it but I've found a workaround.
I changed the following in taxonomy_menu.inc
$output = views_build_view('embed',views_get_view(variable_get('taxonomy_menu_show_views_'. $vid, '')),
$arguments, FALSE, NULL);
to >>
$view_name = variable_get('taxonomy_menu_show_views_'. $vid, ''); //name of view$view_aux = views_get_view($view_name);
$output = views_build_view('embed', $view_aux, $arguments, FALSE, NULL);
The only difference is that the variables are defined before calling the views functions.
#5
thanks - I also found a workaround, very similar to that & it works fine now. Basically it came down to typo's. I can post the changes if anyone is interested.
also, is it possible to have custom breadcrumbs for the "category" pages - ie the non-node menu pages? I thought that it was integrated into the module but maybe not ...
#6
If you could post the changes I would greatly appreciate it!
#7
Sure, I changed this line
$form[$vocab->vid]['taxonomy_menu_show_views_'. $vocab->vid] = array('#default_value' => variable_get('taxonomy_menu_show_views_'. $vocab->vid, ''),
to
$form[$vocab->vid]['taxonomy_menu_show_view_'. $vocab->vid] = array('#default_value' => variable_get('taxonomy_menu_show_view_'. $vocab->vid, ''),
that fixed it.
#8
.... sorry, that should be the other way around, ie changed this:
$form[$vocab->vid]['taxonomy_menu_show_view_'. $vocab->vid] = array('#default_value' => variable_get('taxonomy_menu_show_view_'. $vocab->vid, ''),
to this:
$form[$vocab->vid]['taxonomy_menu_show_views_'. $vocab->vid] = array('#default_value' => variable_get('taxonomy_menu_show_views_'. $vocab->vid, ''),
#9
Thanks for your help!
#10
I am going to assume this is fixed in newer versions...
#11
Automatically closed -- issue fixed for 2 weeks with no activity.