-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Error on installing OwnCloud 10.0.6 #30416
Comments
Thanks for your report. Closing in favor of #30335 which apparently has the same cause |
seems to be slightly different code. @sharidas please have a look |
@Mephysto666 did you set any conditional log settings in config.php or was this a plain unmodified install ? |
HI @PVince81, Bye. Meph |
@Mephysto666 Could you please
|
Hi @VicDeo, The output of command you suggested is this:
Same error as before. Many thanks. Meph |
@Mephysto666 could you check what will happen when you replace I suspect there is something wrong with PHP session configuration so logger fails to get a user. |
@Mephysto666 please try with OC 10.0.7 RC2: https://download.owncloud.org/community/testing/owncloud-10.0.7RC2.tar.bz2 |
I can't test it now, but the problem is in config.php of downloaded version of Owncloud. I used web installation that has a more simple config.php and it had been installed without problems. When I tried to use config.php I used in preceding installation, I econuntered same error. I hope this is useful for you. Best regards. Meph |
The reason can only be guessed in that case. |
please reopen if problem persists with 10.0.7 which contains a fix for null errors |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps to reproduce
Expected behaviour
Showing admin user creation screen
Actual behaviour
Server configuration
Operating system: Debian 9.1
Web server: Same behavior both with Apache 2.4 and Nginx 1.10.3
Database: Postgres
PHP version: 7.0.27-0+deb9u1
ownCloud version: 10.0.6
Updated from an older ownCloud or fresh install: Fresh install
Where did you install ownCloud from: Manual installation
Signing status (ownCloud 9.0 and above):
The content of config/config.php:
I can't produce config, I get this error:
List of activated apps: I can't produce it.
2018/02/08 09:21:48 [error] 2071#2071: *47 FastCGI sent in stderr: "PHP message: PHP Warning: hash_equals(): Expected user_string to be a string, null given in /var/www/html/lib/private/Log.php on line 287
PHP message: {"reqId":"ALy7R2TQii6lmIJXRLoS","level":3,"time":"February 08, 2018 09:21:48","remoteAddr":"10.39.0.77","user":"--","app":"index","method":"GET","url":"/index.php","message":"Exception: {"Exception":"Error","Message":"Call to a member function getUser() on null","Code":0,"Trace":"#0 \/var\/www\/html\/lib\/private\/Log.php(169): OC\\Log->log(3, 'session_name():...', Array)\n#1 \/var\/www\/html\/lib\/private\/Log\/ErrorHandler.php(89): OC\\Log->error('session_name():...', Array)\n#2 [internal function]: OC\\Log\\ErrorHandler::onError(2, 'session_name():...', '\/var\/www\/html\/l...', 45, Array)\n#3 \/var\/www\/html\/lib\/private\/Session\/Internal.php(45): session_name('')\n#4 \/var\/www\/html\/lib\/base.php(426): OC\\Session\\Internal->__construct('')\n#5 \/var\/www\/html\/lib\/base.php(582): OC::initSession()\n#6 \/var\/www\/html\/lib\/base.php(998): OC::init()\n#7 \/var\/www\/" while reading response header from upstream, client: 10.39.0.77, server: _, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "10.39.0.222", referrer: "http://10.39.0.222/"
2018/02/08 09:21:48 [error] 2071#2071: *47 FastCGI sent in stderr: "PHP message: {"reqId":"ALy7R2TQii6lmIJXRLoS","level":3,"time":"February 08, 2018 09:21:48","remoteAddr":"10.39.0.77","user":"--","app":"PHP","method":"GET","url":"/index.php","message":"hash_equals(): Expected user_string to be a string, null given at /var/www/html/lib/private/Log.php#287"}" while reading upstream, client: 10.39.0.77, server: _, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "10.39.0.222", referrer: "http://10.39.0.222/"
2018/02/08 09:38:09 [error] 8929#8929: *1 FastCGI sent in stderr: "PHP message: PHP Warning: hash_equals(): Expected user_string to be a string, null given in /var/www/html/lib/private/Log.php on line 287" while reading response header from upstream, client: 10.39.0.77, server: _, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "10.39.0.222"
{"reqId":"6rJMyma4TOKNickeBMbB","level":3,"time":"February 08, 2018 10:00:34","remoteAddr":"10.39.0.77","user":"--","app":"index","method":"GET","url":"/index.php","message":"Exception: {"Exception":"Error","Message":"Call to a member function getUser() on null","Code":0,"Trace":"#0 \/var\/www\/html\/lib\/private\/Log.php(169): OC\\Log->log(3, 'session_name():...', Array)\n#1 \/var\/www\/html\/lib\/private\/Log\/ErrorHandler.php(89): OC\\Log->error('session_name():...', Array)\n#2 [internal function]: OC\\Log\\ErrorHandler::onError(2, 'session_name():...', '\/var\/www\/html\/l...', 45, Array)\n#3 \/var\/www\/html\/lib\/private\/Session\/Internal.php(45): session_name('')\n#4 \/var\/www\/html\/lib\/base.php(426): OC\\Session\\Internal->__construct('')\n#5 \/var\/www\/html\/lib\/base.php(582): OC::initSession()\n#6 \/var\/www\/html\/lib\/base.php(998): OC::init()\n#7 \/var\/www\/html\/index.php(54): require_once('\/var\/www\/html\/l...')\n#8 {main}","File":"\/var\/www\/html\/lib\/private\/Log.php","Line":295}"}
{"reqId":"6rJMyma4TOKNickeBMbB","level":3,"time":"February 08, 2018 10:00:34","remoteAddr":"10.39.0.77","user":"--","app":"PHP","method":"GET","url":"/index.php","message":"hash_equals(): Expected user_string to be a string, null given at /var/www/html/lib/private/Log.php#287"}
Error: Call to a member function getUser() on null in /var/www/html/lib/private/Log.php:295 Stack trace: #0 /var/www/html/lib/private/Log.php(169): OC\Log->log(3, 'session_name():...', Array) #1 /var/www/html/lib/private/Log/ErrorHandler.php(89): OC\Log->error('session_name():...', Array) #2 [internal function]: OC\Log\ErrorHandler::onError(2, 'session_name():...', '/var/www/html/l...', 45, Array) #3 /var/www/html/lib/private/Session/Internal.php(45): session_name('') #4 /var/www/html/lib/base.php(426): OC\Session\Internal->__construct('') #5 /var/www/html/lib/base.php(582): OC::initSession() #6 /var/www/html/lib/base.php(998): OC::init() #7 /var/www/html/index.php(54): require_once('/var/www/html/l...') #8 {main}
The text was updated successfully, but these errors were encountered: