Bug #44087

Call to a member function setCookie()

Added by Kien Phuoc Ma almost 9 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Must have
Assignee:
Category:
Session
Target version:
-
Start date:
2012-12-18
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

i got a Fatal Error: Call to a member function setCookie()

use by

try { $this->authenticationManager->authenticate();
error_log('LOGGED_IN');
} catch (\TYPO3\Flow\Security\Exception\AuthenticationRequiredException $exception) {
error_log('LOGIN_FAILURE');
}

Files

strace_cookie.txt (6.94 KB) strace_cookie.txt Kien Phuoc Ma, 2012-12-18 12:33

Related issues

Has duplicate TYPO3.Flow - Bug #44086: Call to a member function setCookie()ClosedBastian Waidelich2012-12-18

Actions
#1

Updated by Kien Phuoc Ma almost 9 years ago

My Line 255 in Session.php = $this->response->setCookie($this->sessionCookie);

#2

Updated by Robert Lemke almost 9 years ago

  • Category set to Session
  • Assignee set to Robert Lemke
#3

Updated by Jochen Weber almost 9 years ago

hello robert,

i figured out the problem.
just change line 606 of File TYPO3.Flow/Classes/TYPO3/Flow/Session/Session.php

from

if ($requestHandler instanceof HttpRequestHandlerInterface) {

to
if ($requestHandler instanceof \TYPO3\Flow\Core\RequestHandlerInterface) {

#4

Updated by Gerrit Code Review over 8 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/19339

#5

Updated by Gerrit Code Review over 8 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/19339

#6

Updated by Anonymous over 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#7

Updated by Gerrit Code Review over 8 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch 2.0 has been pushed to the review server.
It is available at https://review.typo3.org/19595

#8

Updated by Gerrit Code Review over 8 years ago

Patch set 2 for branch 2.0 has been pushed to the review server.
It is available at https://review.typo3.org/19595

#9

Updated by Anonymous over 8 years ago

  • Status changed from Under Review to Resolved

Also available in: Atom PDF