Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setcookie() requires string as second argument #11080

Closed
arcane47 opened this issue Sep 6, 2018 · 1 comment
Closed

setcookie() requires string as second argument #11080

arcane47 opened this issue Sep 6, 2018 · 1 comment
Labels

Comments

@arcane47
Copy link

arcane47 commented Sep 6, 2018

setcookie($this->invoke('session_name'), null, -1, \OC::$WEBROOT ?: '/');

Catch will fail here, if there are permission/file issues with session_start()

setcookie() requires string as second argument
PHP Version => 7.2.9 (php-fpm)

{"reqId":"<request_id>","level":3,"time":"0000-00-00T00:00:00+00:00","remoteAddr":"X.X.X.X","user":"--","app":"index","method":"GET","url":"/index.php","message":{"Exception":"TypeError","Message":"setcookie() expects parameter 2 to be string, null given","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Session/Internal.php","line":57,"function":"setcookie","args":["aebh03aplby",null,-1,"/"]},{"file":"/var/www/nextcloud/lib/base.php","line":424,"function":"__construct","class":"OC\Session\Internal","type":"->","args":["aebh03aplby"]},{"file":"/var/www/nextcloud/lib/base.php","line":656,"function":"initSession","class":"OC","type":"::","args":[]},{"file":"/var/www/nextcloud/lib/base.php","line":1070,"function":"init","class":"OC","type":"::","args":[]},{"file":"/var/www/nextcloud/index.php","line":40,"args":["/var/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Session/Internal.php","Line":57,"CustomMessage":"--"},"userAgent":"curl/X.XX.X","version":"X.X.X.X"}

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #1706 (Nextcloud Rich Object Strings), #9005 (c), #510 (PROPFIND requests every 30 seconds.), #7661 (Sabre: Incorrect string value), and #2863 (Password required, but pw not accepted).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants