By rbur on
I get messages like this one from .../drupal/?q=admin/themes/settings/bluemarine or trying to configure any of the other themes.
Fatal error: Only variables can be passed by reference in /usr/local/services/www/wikarekare/drupal/modules/system.module on line 649
I also got similar ones from modules I have added
e.g. drupal/?q=admin/theme_editor
Fatal error: Only variables can be passed by reference in /usr/local/services/www/wikarekare/drupal/modules/theme_editor.module on line
Comments
your problem is php version
The reason for this is change (bug) in latest php versions 5.0.5 and 5.1. The fix is simple but I am not shure on how many places is occured in drupal source. Probably it is the best to downgrade php version or to wait for new php version. If you realy want to use durpal with this version than you should change drupal source in folowing maner (at every place where problem occures):
---from
some_function(other_function(), $some_arg);
---to
$temp_var_me=&other_function();
some_function(&$temp_var_me, $some_arg);
In other words you should not have function calls as other function arguments whan you work with references.
Hope this helps
please file a bug report
-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide