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

lonehorseend - March 31, 2008 - 17:15

Same here

#2

ccsnkh - May 26, 2008 - 21:47
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?

#3

thomasvandierendonck - June 2, 2008 - 18:05

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

cas8 - June 6, 2008 - 23:28

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

ccsnkh - June 9, 2008 - 21:57

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

trevor.eye9 - June 20, 2008 - 18:37

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

#7

ccsnkh - June 23, 2008 - 06:47

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

ccsnkh - June 23, 2008 - 06:49

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

trevor.eye9 - June 23, 2008 - 16:47

Thanks for your help!

#10

arlinsandbulte - October 31, 2009 - 22:32
Status:active» fixed

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

#11

System Message - November 14, 2009 - 22:40
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.