Closed (duplicate)
Project:
Project
Version:
4.6.x-1.x-dev
Component:
Releases
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Nov 2005 at 19:30 UTC
Updated:
1 Dec 2005 at 16:07 UTC
when i tryed to install the module i get the following error:
Fatal error: Only variables can be passed by reference in /opt/lampp/htdocs/drupal/modules/project/project.module on line 169
i already check the code, but i doesn't check nothing wrong.
thanks in advance.
Comments
Comment #1
pfaocleSounds like a PHP 5 error - can you confirm the version of PHP you are using?
Comment #2
flebel commentedi confirm. this didnt work with php5.
flebel@dune[/home/vrdri-01/ftp/project]> php -v
PHP 5.0.5 (cli) (built: Oct 18 2005 15:43:43)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.5, Copyright (c) 1998-2004 Zend Technologies
Fatal error: Only variables can be passed by reference in /usr/home/vrdri-01/ftp/html/modules/project.module on line 169
Comment #3
pfaocleCheers.
Comment #4
benwei commentedFrom what I understand, this is a change that was made between PHP 5.0.4 and 5.0.5. There are similar bugs to this all throughout Drupal and associated modules if you are using PHP 5.0.5. Some of them have been fixed already in CVS, I'm not sure about this one.
For a quick fix to these types of issues, you can usually just store the result of whatever function is being called in a temporary variable and pass that instead. Or you could also downgrade to PHP 5.0.4
See
http://drupal.org/node/35363
Cheers,
Ben
Comment #5
drewish commentedI've heard the new 4.4 release has the same "fix" in it.
Comment #6
fagosee http://drupal.org/node/36319
-> try the patch from issue http://drupal.org/node/35588