Download & Extend

Only variables can be passed by reference - error

Project:Taxonomy menu
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

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

I changed it to

<?php
      $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

#1

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

#2

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.

#3

Status:fixed» closed (fixed)

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

nobody click here