Posted by suit4 on May 9, 2008 at 12:13pm
Jump to:
| 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
I am going to assume this is fixed as no one else has reported this lately.
Re-open if I am wrong.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.