我在管理civi crm页面上收到“严格警告:非静态方法HTML_QuickForm_RuleRegistry”警告

时间:2014-04-03 19:34:11

标签: civicrm

我无法在CIVI CRM页面上创建任何事件,将显示以下警告消息。 找不到配置事件

strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method HTML_QuickForm_RuleRegistry::singleton() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php on line 388.
strict warning: Non-static method CRM_Core_Block::setTemplateValues() should not be called statically in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\CRM\Core\Block.php on line 587.
strict warning: Non-static method CRM_Core_Block::setTemplateValues() should not be called statically in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\CRM\Core\Block.php on line 587.
strict warning: Non-static method CRM_Core_Block::setTemplateDashboardValues() should not be called statically in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\CRM\Core\Block.php on line 291.
strict warning: Non-static method CRM_Core_Block::setTemplateValues() should not be called statically in C:\xampp\htdocs\drupal\sites\all\modules\civicrm\CRM\Core\Block.php on line 587.

1 个答案:

答案 0 :(得分:0)

编辑以下文件:

C:\xampp\htdocs\drupal\sites\all\modules\civicrm\packages\HTML\QuickForm.php
C:\xampp\htdocs\drupal\sites\all\modules\civicrm\CRM\Core\Block.php

变化:

public function singleton
public function setTemplateValues
public function setTemplateDashboardValues

要:

public static function singleton
public static function setTemplateValues
public static function setTemplateDashboardValues

如您所见,如果要调用静态方法,则需要在声明中包含该关键字。确保关键字$this也不会在任何这些方法中使用。