Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/drupal/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
theme_status_messages()未在我的Drupal 6主题中启动_Drupal_Drupal 6_Drupal Theming - Fatal编程技术网

theme_status_messages()未在我的Drupal 6主题中启动

theme_status_messages()未在我的Drupal 6主题中启动,drupal,drupal-6,drupal-theming,Drupal,Drupal 6,Drupal Theming,我有一个template.php文件,主题为 themename\u status\u消息 我的主题没有调用/调用它 当我在测试dsm输出上使用devel themer info时,我被告知候选函数有: theme\u messages\u alter\u status\u messages() themename\u messages\u alter\u status\u messages() 我不确定在页面加载期间为什么没有调用状态消息()。有什么想法吗?在您的page.tpl.php页面上

我有一个template.php文件,主题为
themename\u status\u消息

我的主题没有调用/调用它

当我在测试dsm输出上使用devel themer info时,我被告知候选函数有:
theme\u messages\u alter\u status\u messages()

themename\u messages\u alter\u status\u messages()


我不确定在页面加载期间为什么没有调用
状态消息()。有什么想法吗?

在您的page.tpl.php页面上,是否有$messages var打印在页面的任何位置

查看是否将$messages传递给主题的更好方法是使用template.php中的theme_preprocess_page(&$vars)函数:

function THEME_preprocess_page(&$vars) {
  dpm($vars);
  // or use $dpr($vars) for a textual array printout
  // Replace 'THEME' in the function name with the name of your theme.
}

看起来问题在于启用了一个模块,该模块改变了处理方式,而我不知道该模块在那里,并且这样做了。该模块已安装完毕。教了我一个很好的方法来检查模块页面中的奥秘