Xenforo Lỗi ErrorException: [E_WARNING] Declaration of BR\ModernStatistic khi nâng cấp Xenforo 2

photoshop24h

Administrator
Staff member
ErrorException: [E_WARNING] Declaration of BR\ModernStatistic\XF\Template\Templater::renderTemplate($template, array $params = Array, $addDefaultParams = true, ?BR\ModernStatistic\XF\Template\ExtensionSet $extensionOverrides = NULL) should be compatible with XF\Template\Templater::renderTemplate($template, array $params = Array, $addDefaultParams = true, ?XF\Template\ExtensionSet $extensionOverrides = NULL) src/addons/BR/ModernStatistic/XF/Template/Templater.php:124

Khi nâng cấp Xenforo 2 bị lỗi này chúng ta fix như sau:

Dòng 20 file: src/addons/BR/ModernStatistic/XF/Template/Templater.php

public function renderTemplate ($template, array $params = [], $addDefaultParams = true)

thành

public function renderTemplate($template, array $params = [], $addDefaultParams = true, $extensionOverrides = null)
 
Bên trên