line 649, illegal parameter passing (the 1st param)

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

it should look like this

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

Comments

drewish’s picture

that seems like a strange error. what version of php are you using?

drewish’s picture

Title: Theme settings » Pass by reference error in Theme settings
Status: Active » Fixed

I'm dumb, I fogot that file_check_directory() takes it's first param by ref.

See also:
http://drupal.org/node/37160
http://drupal.org/node/35363#comment-63919

This bug is fixed in the CVS version:
http://cvs.drupal.org/viewcvs/drupal/drupal/modules/system.module?only_w...

Use this link if you'd like to download the file:
http://cvs.drupal.org/viewcvs/*checkout*/drupal/drupal/modules/system.mo...

Anonymous’s picture

Status: Fixed » Closed (fixed)