【问题标题】:Error uploading Drupal 7 site to server将 Drupal 7 站点上传到服务器时出错
【发布时间】:2011-03-27 10:40:37
【问题描述】:

嗨 我最近完成了一个网站是drupal 7,具有以下模块:

  • CCK
  • 混沌工具套件
  • 自动路径
  • 令牌
  • 面板
  • 所见即所得
  • 查看次数

它在我的 PC 和笔记本电脑上都可以使用全新安装的 WAMP 服务器。当我上传到我的主机时,我收到以下错误:

Parse error: parse error, unexpected T_ARRAY, expecting '&' or T_VARIABLE in
/var/www/html/rj/includes/bootstrap.inc on line 1406

这是:

function t($string, array $args = array(), array $options = array()) {
  global $language;
  static $custom_strings;

  // Merge in default.
  if (empty($options['langcode'])) {
     $options['langcode'] = isset($language->language) ? $language->language : 'en';
  }
  if (empty($options['context'])) {
  $options['context'] = '';
  }

有什么想法吗? 谢谢 菲尔

【问题讨论】:

    标签: drupal hosting drupal-7


    【解决方案1】:

    Drupal 7 需要 PHP 5.2.5 或更高版本。请检查您的服务器上运行的 PHP 版本。我猜它来自低于所需版本的 PHP 版本。

    查看System requirements页面。

    必需:PHP 4.4.0 或更高版本 对于 Drupal 5 和 Drupal 6,PHP 5.2.5 Drupal 7 或更高版本

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-06-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-28
      • 1970-01-01
      相关资源
      最近更新 更多