RSS Feed/News Account::preDispatchController() updates breaks /account URL for XF2.2.x

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
34,670
Points
823

Reputation:

The update includes this snippet;

PHP:

Code:
    protected function preDispatchController($action, ParameterBag $params)
    {
        $this->response()->header('Cache-Control', 'no-store');

$this->assertRegistrationRequired();
}

Except $this->response() doesn't exist, and will throw this error;
Code:

Code:
Error: Call to undefined method XF\Pub\Controller\Account::response() in src/XF/Pub/Controller/Account.php at line 16
XF\Pub\Controller\Account->preDispatchController() in...

Read more

Continue reading...
 
Status
Not open for further replies.
Top