Fatal error: Only variables can be passed by reference in /var/www/html/modules/taxonomy_theme/taxonomy_theme.module on line 262
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | taxonomy_theme_7.module | 12.5 KB | profix898 |
Fatal error: Only variables can be passed by reference in /var/www/html/modules/taxonomy_theme/taxonomy_theme.module on line 262
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | taxonomy_theme_7.module | 12.5 KB | profix898 |
Comments
Comment #1
profix898 commentedHi llizards!
Just to confirm that you are using
- Drupal 4.6
- taxonomy_theme 1.6.2.1 ?
- PHP 5
On my 4.6 install with PHP 5.0.4 (Linux) and 5.1.1 (Win32) I'm unable to confirm this
one! Can you tell me a bit more? What php-Version are you using? What platform?
How can I reproduce this bug? Does it always occur when viewing node/x with
taxonomy_all option? Only on some pages?
Comment #2
llizards commentedApache/2.0.54 (Fedora)
PHP Version 5.0.5
Template selection method:All Taxonomy.
I have several taxonomy terms. The problem I just found out was I didnt select a them for each just the ones I want to change ... I then reset it so all terms had a theme and the above error code is now gone but it doenst change themes.
Comment #3
llizards commentedI am using the taxonomy_theme 1.6.2.1 ?
also the error
show up when I am an anonymous user
Comment #4
profix898 commentedSince I'm still unable to reproduce I can only guess ;)
Please try to replace (on line 262)
with
Comment #5
llizards commentedParse error: parse error, unexpected T_VARIABLE in /var/www/html/modules/taxonomy_theme/taxonomy_theme.module on line 263
on activating the module
Comment #6
profix898 commentedThat looks all very strange to me ... there is no T_VARIABLE ( = t('...') ) in line 263!
What else modules do you have installed? Any problems with one of them?
Try to disable all except the core modules and reactivate one after another.
Maybe you have any conflicting module or something ....
Comment #7
llizards commentedFatal error: Only variables can be passed by reference in /var/www/html/modules/taxonomy_theme/taxonomy_theme.module on line 262
Took out all other modules except the core. Same issue.
Comment #8
profix898 commentedHave you tried the code from #4. It should work!? In case it doesnt, try this:
$term = current(taxonomy_node_get_terms($nid));change to
$term = current($terms = taxonomy_node_get_terms($nid));A change has been made to the php engine with version 5.0.5. Look at:
http://the-stickman.com/web-development/php/php-505-fatal-error-only-var...
Please report whether this is working. I hope so ... ;)
Comment #9
profix898 commentedI just installed php 5.0.5 on a linux vm and was able to reproduce your
issue. I modified the code according to #4 and now it works for me!
In case something went wrong with your changes when you tested #4
I attach my modified version. Please try it and tell me ...
Comment #10
llizards commentedThat's got it,
Thanks.... I appreciate all your help
Comment #11
profix898 commentedI'm glad to hear its working now. Changes are committed to cvs
and will be available in 4.6/4.7 releases soon.
Comment #12
(not verified) commented