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.

Comments

lonehorseend’s picture

Same here

ccsnkh’s picture

Version: 5.x-1.02 » 5.x-1.03

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?

thomasvandierendonck’s picture

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

8thom’s picture

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.

ccsnkh’s picture

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 ...

trevor.eye9’s picture

If you could post the changes I would greatly appreciate it!

ccsnkh’s picture

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.

ccsnkh’s picture

.... 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, ''),
trevor.eye9’s picture

Thanks for your help!

arlinsandbulte’s picture

Status: Active » Fixed

I am going to assume this is fixed in newer versions...

Status: Fixed » Closed (fixed)

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