【问题标题】:PHP warning message in Zen Drupal sub-themeZen Drupal 子主题中的 PHP 警告消息
【发布时间】:2012-06-18 19:28:44
【问题描述】:

在 Drupal 中使用 Zen 子主题时,我收到以下警告。我该如何解决?

Warning: in_array() [function.in-array]: Wrong datatype for second argument in zen_preprocess_html() (line 111 of sites/all/themes/zen/template.php).
Warning: in_array() [function.in-array]: Wrong datatype for second argument in zen_preprocess_html() (line 112 of sites/all/themes/zen/template.php).
Warning: in_array() [function.in-array]: Wrong datatype for second argument in zen_preprocess_html() (line 113 of sites/all/themes/zen/template.php).

【问题讨论】:

    标签: drupal drupal-zen


    【解决方案1】:

    在子主题的 .info 文件中,添加以下行:

    settings[zen_html5_respond_meta][] = respond
    settings[zen_html5_respond_meta][] = html5
    settings[zen_html5_respond_meta][] = meta
    

    我在 http://drupal.org/node/1357538 找到了这个解决方法。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-06-21
      • 1970-01-01
      • 2010-12-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-07
      相关资源
      最近更新 更多