0

我无法在 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.
4

1 回答 1

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也未在任何这些方法中使用。

于 2014-04-03T19:44:27.157 回答