ErrorException after Update.. Content Ratings?

Triax

Member
After a successful upgrade to Version 2.2.0, I was prompted to enter the Admin Panel along with the message regarding outdated templates. I am given this error from attempting to access the Admin Panel:

Code:
An exception occurred: [ErrorException] [E_WARNING] Declaration of SV\ContentRatings\XF\Template\Templater::fnReactions($templater, &$escape, XF\Mvc\Entity\Entity $content, $link, array $linkParams = Array) should be compatible with XF\Template\Templater::fnReactions($templater, &$escape, $content, $link, array $linkParams = Array) in src/addons/SV/ContentRatings/XF/Template/Templater.php on line 0

XF::handlePhpError() in src/vendor/composer/ClassLoader.php at line 444
include() in src/vendor/composer/ClassLoader.php at line 444
Composer\Autoload\includeFile() in src/vendor/composer/ClassLoader.php at line 322
Composer\Autoload\ClassLoader->loadClass()
spl_autoload_call()
class_exists() in src/XF/Extension.php at line 172
XF\Extension->extendClass() in src/XF/App.php at line 2811
XF\App->extendClass() in src/XF/App.php at line 1775
XF\App->setupTemplaterObject() in src/XF/App.php at line 1345
XF\App->XF\{closure}() in src/XF/Container.php at line 28
XF\Container->offsetGet() in src/XF/App.php at line 3175
XF\App->templater() in src/XF/Admin/App.php at line 97
XF\Admin\App->preRender() in src/XF/Mvc/Dispatcher.php at line 395
XF\Mvc\Dispatcher->render() in src/XF/Mvc/Dispatcher.php at line 58
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2300
XF\App->run() in src/XF.php at line 464
XF::runApp() in admin.php at line 13

Any idea how I can resolve this?
 
Sure the exception is being thrown from Content Ratings add-on but the method signature change in XF 2.2 doesn't make sense to me. in XF 2.1:
PHP:
    public function fnReactions($templater, &$escape, Entity $content, $link, array $linkParams = [])
    {
and in XF 2.2:
PHP:
    public function fnReactions($templater, &$escape, $content, $link, array $linkParams = [])
    {
        if (!($content instanceof Entity))
        {
            trigger_error("Content for reactions is not an entity", E_USER_WARNING);
            return '';
        }
The first thing that takes in XF 2.2's fnReactions is checking if the $content is instance of Entity.
 
  • Like
Reactions: Xon
Top Bottom