I don't know if this is an error because of my php 5.0.5 installation on my server, but I do not get the error with a php 5.2.6
I get a Only variables can be passed by reference - error for

      $output = views_build_view('embed',
        views_get_view(variable_get('taxonomy_menu_show_view_'. $vid, '')),
        $arguments, FALSE, NULL);
    }

I changed it to

      $var = views_get_view(variable_get('taxonomy_menu_show_view_'. $vid, ''));
      $output = views_build_view('embed',
        $var,
        $arguments, FALSE, NULL);
    }

and the error is gone ....

Just wanted to mention.

Comments

radarino’s picture

Hi,
a little error in your code, must be

$var = views_get_view(variable_get('taxonomy_menu_show_views_'. $vid, ''));

("views" and not "view")

Thanks!
Antonio

arlinsandbulte’s picture

Status: Active » Fixed

I am going to assume this is fixed as no one else has reported this lately.
Re-open if I am wrong.

Status: Fixed » Closed (fixed)

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