-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
PHP error on cron jobs (trashbin.php) #143
Comments
cc @schiessle |
@schiessle We should remove
|
Also valid for all other occurrences, we should remove all dependencies on the user session from there. |
@s7b4 does your problem also appear under the Cron section in the the Admin of the web interface as red lamp (instead of green) with the following message:
I have exactly the same error message in my log file and was wondering if it is this exact same issue which reports that my cron is not working correctly under the admin page of the web interface. |
Hi @hostingnuggets, Edit: The trashbin was empty, so cron was OK, If I delete another file, cron does not report itsel as ok. So your issue is probably the same. |
@s7b4 thanks for your precision, I confirm my lamp is now also green and this issue does not seem to appear at every run of cron. |
I will prepare a pull request |
Steps to reproduce
Expected behaviour
No fatal php errors should be triggered.
Actual behaviour
Fatal error is sent by cron :
PHP Fatal error: Call to a member function getUID() on null in /.../apps/admin_audit/lib/actions/trashbin.php on line 49
line is :
'user' => $this->userSession->getUser()->getUID()
Server configuration
Operating system:
Debian GNU/Linux 8.5 (jessie)
Web server:
Apache 2.4
Database:
Mysql 5.5
PHP version:
PHP 5.6.22
Nextcloud version: (see Nextcloud admin page)
9.0.50.0
Updated from an older Nextcloud/ownCloud or fresh install:
Updated from ownlcloud
Where did you install Nextcloud from:
https://download.nextcloud.com/server/releases/nextcloud-9.0.50.zip
Signing status (Nextcloud 9.0 and above):
List of activated apps:
The content of config/config.php:
Are you using external storage, if yes which one: local/smb/sftp/...
local
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no
Logs
Web server error log
Nextcloud log (data/owncloud.log)
The text was updated successfully, but these errors were encountered: