I’m getting internal server error when accessing folders and files shared by link or email. I’ve already tried solutions of similar topics here but unfortunately none of those worked.
Specifications:
- Running on a VPS
- Nextlcoud 23.0.0
- OS: Debian 11
- Kernel: 5.10.0-17-amd64
- PHP 7.4
- Apache
- Searching the logs by the request ID:
{
"reqId":"vpiTGGwT6B0nOMHcrdiz",
"level":3,
"time":"September 28, 2022 20:06:04",
"remoteAddr":"******",
"user":"--",
"app":"index",
"method":"GET",
"url":"/index.php/s/H7axXAADJRNtkZx",
"message":"Call to a member function getUID() on null",
"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0",
"version":"23.0.0.10",
"exception":{
"Exception":"Error",
"Message":"Call to a member function getUID() on null",
"Code":0,
"Trace":[
{
"function":"OCA\\FileUploadNotification\\Hooks\\{closure}",
"class":"OCA\\FileUploadNotification\\Hooks\\UserHooks",
"type":"->",
"args":[
"*** sensitive parameters replaced ***"
]
},
{
"file":"/var/www/html/nextcloud/lib/private/Hooks/EmitterTrait.php",
"line":106,
"function":"call_user_func_array"
},
{
"file":"/var/www/html/nextcloud/lib/private/Hooks/PublicEmitter.php",
"line":40,
"function":"emit",
"class":"OC\\Hooks\\BasicEmitter",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/Files/Node/Root.php",
"line":138,
"function":"emit",
"class":"OC\\Hooks\\PublicEmitter",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/Files/Node/Node.php",
"line":116,
"function":"emit",
"class":"OC\\Files\\Node\\Root",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/Files/Node/File.php",
"line":75,
"function":"sendHooks",
"class":"OC\\Files\\Node\\Node",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php",
"line":108,
"function":"putContent",
"class":"OC\\Files\\Node\\File",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/Template/IconsCacher.php",
"line":145,
"function":"putContent",
"class":"OC\\Files\\SimpleFS\\SimpleFile",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/Template/SCSSCacher.php",
"line":350,
"function":"setIconsCss",
"class":"OC\\Template\\IconsCacher",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/Template/SCSSCacher.php",
"line":188,
"function":"cache",
"class":"OC\\Template\\SCSSCacher",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/Template/CSSResourceLocator.php",
"line":110,
"function":"process",
"class":"OC\\Template\\SCSSCacher",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/Template/CSSResourceLocator.php",
"line":85,
"function":"cacheAndAppendScssIfExist",
"class":"OC\\Template\\CSSResourceLocator",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/Template/ResourceLocator.php",
"line":78,
"function":"doFind",
"class":"OC\\Template\\CSSResourceLocator",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/TemplateLayout.php",
"line":353,
"function":"find",
"class":"OC\\Template\\ResourceLocator",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/TemplateLayout.php",
"line":261,
"function":"findStylesheetFiles",
"class":"OC\\TemplateLayout",
"type":"::"
},
{
"file":"/var/www/html/nextcloud/lib/private/legacy/OC_Template.php",
"line":182,
"function":"__construct",
"class":"OC\\TemplateLayout",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/public/AppFramework/Http/TemplateResponse.php",
"line":204,
"function":"fetchPage",
"class":"OC_Template",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/public/AppFramework/Http/Template/PublicTemplateResponse.php",
"line":154,
"function":"render",
"class":"OCP\\AppFramework\\Http\\TemplateResponse",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line":171,
"function":"render",
"class":"OCP\\AppFramework\\Http\\Template\\PublicTemplateResponse",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php",
"line":157,
"function":"dispatch",
"class":"OC\\AppFramework\\Http\\Dispatcher",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/lib/private/Route/Router.php",
"line":302,
"function":"main",
"class":"OC\\AppFramework\\App",
"type":"::"
},
{
"file":"/var/www/html/nextcloud/lib/base.php",
"line":1006,
"function":"match",
"class":"OC\\Route\\Router",
"type":"->"
},
{
"file":"/var/www/html/nextcloud/index.php",
"line":36,
"function":"handleRequest",
"class":"OC",
"type":"::"
}
],
"File":"/var/www/html/nextcloud/apps/file_upload_notification/lib/Hooks/UserHooks.php",
"Line":59,
"CustomMessage":"--"
}
}
- config.php content:
<?php
$CONFIG = array (
'passwordsalt' => ******,
'secret' => ******,
'trusted_domains' =>
array (
0 => 'localhost',
1 => ******,
),
'datadirectory' => '/var/www/html/nextcloud/data',
'dbtype' => 'mysql',
'version' => '23.0.0.10',
'overwrite.cli.url' => ******,
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => ******,
'dbpassword' => ******,
'installed' => true,
'instanceid' => ******,
'theme' => '',
'log_type' => 'file',
'logfile' => '/var/log/nextcloud/nextcloud.log',
'loglevel' => 3,
'logdateformat' => 'F d, Y H:i:s',
'maintenance' => false,
'memcache.local' => '\\OC\\Memcache\\APCu',
'app_install_overwrite' =>
array (
0 => 'mindmap_app',
1 => 'admin_notifications',
2 => 'files_trackdownloads',
3 => 'file_upload_notification',
4 => 'sharepermissions',
5 => 'bookmarks_fulltextsearch',
),
'mail_smtpmode' => 'smtp',
'mail_smtpauth' => 1,
'mail_sendmailmode' => 'smtp',
'updater.secret' => ******,
'mail_from_address' => ******,
'mail_domain' => ******,
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpport' => '465',
'mail_smtpname' => ******,
'mail_smtppassword' => ******,
'mail_smtphost' => ******,
'mail_smtpsecure' => 'ssl',
'twofactor_enforced' => 'false',
'twofactor_enforced_groups' =>
array (
0 => 'teste',
),
'twofactor_enforced_excluded_groups' =>
array (
),
'allow_local_remote_servers' => true,
'onlyoffice' =>
array (
'verify_peer_off' => true,
'jwt_header' => ******,
'jwt_secret' => ******,
),
'defaultapp' => 'files',
);
Any help is welcome, if you need more info please let me know.