【发布时间】:2009-10-03 09:18:19
【问题描述】:
当用户在我的网站上注册时,我似乎无法从 drupal_set_message 收到消息。 我正在使用 Drupal 6.14。
在 user.module 中添加打印:
function user_register_submit($form, &$form_state) {
...
if ($notify) {
...
}
else {
drupal_set_message(t('Your password and further instructions have been sent to your e-mail address.'));
print 'xxxxxx';
$form_state['redirect'] = '';
return;
}
}
...
}
它打印'xxxxx';
$_SESSION 变量的 var_dump 提供状态消息,drupal_set_message 不显示,所以看起来也不错。
我已经卸载了所有模块,只剩下核心,现在使用 Garland 作为主题。
此外,我安装了全新的 Drupal 安装,它给了我一个很好的状态消息。
然后我比较了全新安装的 .htaccess 和 Drupal 的。修改我的以使它们相等。
没有任何帮助。
有什么想法吗?
【问题讨论】:
-
您还在不同的页面/情况下收到其他状态消息吗?
-
请在 .试试看
标签: drupal