模板升级到3.2后。网站和后台显示许多警告信息:
Strict Standards: Non-static method JApplicationSite::getMenu() should not be called statically, assuming $this from incompatible context in Q:\xampp\htdocs\academy32\templates\hot_academy\index.php on line 218
Strict Standards: Only variables should be assigned by reference in Q:\xampp\htdocs\academy32\administrator\components\com_jevents\fields\jevinfo.php on line 22
Strict Standards: Only variables should be assigned by reference in Q:\xampp\htdocs\academy32\administrator\components\com_jevents\fields\jevview.php on line 37
Strict Standards: Non-static method JEV_CommonFunctions::getJEventsViewList() should not be called statically, assuming $this from incompatible context in Q:\xampp\htdocs\academy32\administrator\components\com_jevents\fields\jevview.php on line 43
Strict Standards: Only variables should be assigned by reference in Q:\xampp\htdocs\academy32\administrator\components\com_jevents\fields\jevmenu.php on line 46
Strict Standards: Only variables should be assigned by reference in Q:\xampp\htdocs\academy32\administrator\components\com_jevents\fields\jevmenu.php on line 54
Strict Standards: Non-static method JApplication::getMenu() should not be called statically, assuming $this from incompatible context in Q:\xampp\htdocs\academy32\administrator\components\com_jevents\fields\jevmenu.php on line 68
Strict Standards: Only variables should be assigned by reference in Q:\xampp\htdocs\academy32\administrator\components\com_jevents\fields\jevmenu.php on line 68
Strict Standards: Only variables should be assigned by reference in Q:\xampp\htdocs\academy32\components\com_jevents\libraries\helper.php on line 2161
记得老白在什么地方讲过此事。说在php/php.ini中改改error_reporting 参数就可以了,找到了这段。
error_reporting
; Default Value: E_ALL &~E_NOTICE &~E_STRICT &~E_DEPRECATED
; Development Value: E_ALL
; Production Value: E_ALL &~E_DEPRECAYED &~E_STRICT
EasyCalcCheck Plus - Warning: The form was not found, because the template uses overrides. Please adjust the search string for the form in the file easycalccheckplus.php or delete the overrides in templates/yourtemplate/html!