I am getting a below error when i try to configure a new theme. I get the following error

Fatal error: Only variables can be passed by reference in /www/modules/system.module on line 649

Any help will be appreciated.

Comments

he_who_shall_not_be_named’s picture

1) Replace
file_check_directory(variable_get('file_directory_path', 'files'), FILE_CREATE_DIRECTORY, 'file_directory_path');
with:

$file_directory_path = variable_get('file_directory_path', 'files');
file_check_directory($file_directory_path, FILE_CREATE_DIRECTORY, 'file_directory_path');

2) or search the patches on the Drupal site (can be a hard job)
3) or downgrade you php to 5.0.3 (5.0.4?)

rrajan’s picture

Thanks for the reply above. That fixed the problem at line 649. Now i have the same issue in line 25.

Fatal error: Only variables can be passed by reference in /www/thesarbanes-oxley/modules/system.module on line 25

I am unable to downgrade php 5.0.3 because i am unable to find the source!!! very bad with me

sn0n’s picture

Just incase you havent found out.. downloading the CVS just shows

Line 25 being replaces with

      $reference = explode('.', arg(3), 2);
      $theme = array_pop($reference);

which fixes it for me.. :-D

~Rob Douglas
http://sn0n.com/

qwerty1234’s picture

thanks, for me as well!