dongzhengzhong1282 2010-06-29 23:30
浏览 20

当我改变一些配置时drupal的问题

I am a drupal newbie. Can anyone tell me what is the meaning of such warning.

warning: Parameter 1 to profile_load_profile() expected to be a reference, value given in /data/multiserv/users/395147/projects/730411/www/includes/module.inc on line 462.

The line on question contains :

** * Invoke a hook in a particular module.
* * @param $module
* The name of the module (without the .module extension).
* @param $hook
* The name of the hook to invoke.
* @param ...
* Arguments to pass to the hook implementation.
* @return
* The return value of the hook implementation.
*/

function module_invoke() { $args = func_get_args();
$module = $args[0];
$hook = $args[1];
unset($args[0], $args[1]);
$function = $module .'_'. $hook;
if (module_hook($module, $hook)) { // this is line number 462
return call_user_func_array($function, $args);
} }

and in file ../modules/profile/profile.module the function :

function profile_load_profile(&$user) {
$result = db_query('SELECT f.name, f.type, v.value FROM {profile_fields} f INNER JOIN {profile_values} v ON f.fid = v.fid WHERE uid = %d', $user->uid);
while ($field = db_fetch_object($result)) {
if (empty($user->{$field->name})) {
$user->{$field->name} = _profile_field_serialize($field->type) ? unserialize($field->value) : $field->value;
}
}
}

  • 写回答

1条回答 默认 最新

  • douqiao3453 2010-06-30 00:30
    关注

    This looks like a PHP 5.3 incompatibility issue, which should be fixed in the next minor release of Drupal 6:

    http://drupal.org/node/360605

    评论

报告相同问题?

悬赏问题

  • ¥15 mmocr的训练错误,结果全为0
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀