-
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
Argument 8 passed to OC\Core\Avatar\AvatarController::__construct() must be an instance of OCP\Files\Folder, null given #23158
Comments
Can you please fill out the whole issue template? Thanks a lot. |
Yes but I don't see how that would break all of a sudden. @sbryf can you fill out the whole issue template? |
Steps to reproduceNot sure how to reproduce this. Happens straight after I login - I am getting three error messages in the log regarding this with same content. Same when I switch to Profile or Admin - 2 error messages in the log. Expected behaviourNo error message Actual behaviourError message raised Server configurationOperating system: Webhoster - domainfactory Web server: Apache Database: MySQL 5.6.19 PHP version: 5.5.28 ownCloud version: 8.2.3 Updated from an older ownCloud or fresh install: fresh install Where did you install ownCloud from: web installer Signing status (ownCloud 9.0 and above): n/a List of activated apps: Activity The content of config/config.php: '...', 'passwordsalt' => '...', 'secret' => '...', 'trusted_domains' => array ( 0 => '...' ), 'datadirectory' => '.../data', 'overwrite.cli.url' => '...', 'dbtype' => 'mysql', 'version' => '8.2.3.2', 'dbname' => '...', 'dbhost' => '...', 'dbtableprefix' => 'oc_', 'dbuser' => '...', 'dbpassword' => '...', 'logtimezone' => 'UTC', 'installed' => true, 'mail_from_address' => 'noreply', 'mail_smtpmode' => 'php', 'mail_domain' => '...', 'loglevel' => 1, ); **Are you using external storage, if yes which one:** n/a **Are you using encryption:** yes **Are you using an external user-backend, if yes which one:** n/a ### Client configuration **Browser:** Latest Chrome **Operating system:** Windows 10 ### Logs #### Web server error log n/a #### ownCloud log (data/owncloud.log) {"reqId":"Vukjf38AAAEAABCDOc8AAAAM","remoteAddr":"...","app":"PHP","message":"Argument 8 passed to OC\Core\Avatar\AvatarController::__construct() must be an instance of OCP\Files\Folder, null given, called in .../core\/application.php on line 90 and defined at .../core\/avatar\/avatarcontroller.php#86","level":3,"time":"2016-03-16T09:12:31+00:00"} {"reqId":"VukjgX8AAAEAABB3SUEAAAAA","remoteAddr":"...","app":"PHP","message":"Argument 8 passed to OC\Core\Avatar\AvatarController::__construct() must be an instance of OCP\Files\Folder, null given, called in .../core\/application.php on line 90 and defined at .../core\/avatar\/avatarcontroller.php#86","level":3,"time":"2016-03-16T09:12:33+00:00"} {"reqId":"Vukjhn8AAAEAABCPh-QAAAAY","remoteAddr":"...","app":"PHP","message":"Argument 8 passed to OC\Core\Avatar\AvatarController::__construct() must be an instance of OCP\Files\Folder, null given, called in .../core\/application.php on line 90 and defined at .../core\/avatar\/avatarcontroller.php#86","level":3,"time":"2016-03-16T09:12:38+00:00"} {"reqId":"VukkGn8AAAEAABCI714AAAAR","remoteAddr":"...","app":"PHP","message":"Argument 8 passed to OC\Core\Avatar\AvatarController::__construct() must be an instance of OCP\Files\Folder, null given, called in .../core\/application.php on line 90 and defined at .../core\/avatar\/avatarcontroller.php#86","level":3,"time":"2016-03-16T09:15:06+00:00"} {"reqId":"VukkHH8AAAEAABCo1bYAAAAf","remoteAddr":"...","app":"PHP","message":"Argument 8 passed to OC\Core\Avatar\AvatarController::__construct() must be an instance of OCP\Files\Folder, null given, called in .../core\/application.php on line 90 and defined at .../core\/avatar\/avatarcontroller.php#86","level":3,"time":"2016-03-16T09:15:08+00:00"} {"reqId":"VuklHH8AAAEAABCtn4YAAAAi","remoteAddr":"...","app":"PHP","message":"Argument 8 passed to OC\Core\Avatar\AvatarController::__construct() must be an instance of OCP\Files\Folder, null given, called in .../core\/application.php on line 90 and defined at .../core\/avatar\/avatarcontroller.php#86","level":3,"time":"2016-03-16T09:19:25+00:00"} {"reqId":"VuklLn8AAAEAABDFrdkAAAAs","remoteAddr":"...","app":"PHP","message":"Cannot modify header information - headers already sent by (output started at .../lib\/private\/template\/functions.php:1) at .../lib\/private\/appframework\/http\/output.php#60","level":3,"time":"2016-03-16T09:19:42+00:00"} {"reqId":"VuklLn8AAAEAABDFrdkAAAAs","remoteAddr":"...","app":"PHP","message":"Cannot modify header information - headers already sent by (output started at .../lib\/private\/template\/functions.php:1) at .../lib\/private\/appframework\/http\/output.php#60","level":3,"time":"2016-03-16T09:19:42+00:00"} {"reqId":"VuklLn8AAAEAABDFrdkAAAAs","remoteAddr":"...","app":"PHP","message":"Cannot modify header information - headers already sent by (output started at .../lib\/private\/template\/functions.php:1) at .../lib\/private\/appframework\/http\/output.php#60","level":3,"time":"2016-03-16T09:19:42+00:00"} {"reqId":"VuklLn8AAAEAABDFrdkAAAAs","remoteAddr":"...","app":"PHP","message":"Cannot modify header information - headers already sent by (output started at .../lib\/private\/template\/functions.php:1) at .../lib\/private\/appframework\/http\/output.php#60","level":3,"time":"2016-03-16T09:19:42+00:00"} #### Browser log a) The javascript console log Error parsing header X-XSS-Protection: 1; mode=block, 1; mode=block: expected semicolon at character position 14. The default protections will be applied. |
This happens if an avatar is requested when no user is logged in afaik |
Is this still happening ? |
yes its still happening for owncloud 9.1.4 |
Can someone enable XDebug and try again ? This should give a full stack trace in the logs which should help pinpoint the more precise code path leading to this error. Does it happen for a specific user / specific avatar ? Or all users ? |
@PVince81 Noticed the same here today on 9.1.4. My owncloud.log seems to contain way more details, is that enough to debug this further (don't want to install and enable XDebug on my productive machine). Calling the avatar directly (e.g. http://example.com/avatar/User/32) doesn't show this issue so not quite sure how to reproduce this.
|
In general it looks like it might be trying to use the avatar folder and for some reason it doesn't exist. If outside, maybe the setupFS code didn't mount the user's home yet properly so the avatar code doesn't work in this specific code path. |
My data folder is located within the ownCloud installation folder /var/www/owncloud/data |
How often does this happen ? Does it happen for a specific user ? |
closing due to lack of feedback. It is possible that it was due to a lowercase vs uppercase avatar name, which is a known issue that has been fixed in #26398 |
Can anyone repoen this ticket and describe what information is needed? See also nextcloud/polls#251 Regards |
But also, if everyone could use the issue template for their own posts, it would help cross-reference some potential environment issues |
Like described in nextcloud/polls#251 this error happens every time i access the newly created poll. Regards |
Hey, this issue has been closed because the label |
I already descibed the issue, what infos are needed? Regards |
@darootler See the comment in #23158 (comment) which explains what information is missing. |
Can someone try on 10.0.4 and debug this ? |
I think all the needed information is here --> nextcloud/polls#251 If not, please just tell me what information is needed in detail. Regards |
@darootler Please open https://github.com/owncloud/core/issues/new, copy the template from the new comment field in a new comment here and fill it out. This would be the required information needed in detail. |
Hey, this issue has been closed because the label (This is an automated comment from GitMate.io.) |
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. |
Hi there,
I am getting the following error in the log:
Argument 8 passed to OC\Core\Avatar\AvatarController::__construct() must be an instance of OCP\Files\Folder, null given, called in /core/application.php on line 90 and defined at /core/avatar/avatarcontroller.php#86
OwnCloud 8.2.3
Encryption on
Shared webhoster
PHP 5.5.28
Any idea how to fix that? Seems to be related to $c->query('UserFolder'), right?
Thanks.
The text was updated successfully, but these errors were encountered: