server icon indicating copy to clipboard operation
server copied to clipboard

webdav Error Typed property OC\Share20\DefaultShareProvider::$dbConn must not be accessed before initialization

Open seals187 opened this issue 1 month ago • 5 comments

Hi There

Error Message: webdav | Error Typed property OC\Share20\DefaultShareProvider::$dbConn must not be accessed before initialization

Cant open Group-Folders after a Update to Nextcloud Hub 10 (31.0.11) Not sure if it is a bug or not.

Image

Running On:

Ubuntu 24.04

PHP Version: 8.4.15 Memory limit: 512 MB Max execution time: 3600 Upload max size: 2 GB OPcache Revalidate Frequency: 2

Extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, random, Reflection, SPL, session, standard, sodium, apache2handler, mysqlnd, PDO, xml, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, intl, ldap, exif, mcrypt, msgpack, mysqli, pdo_mysql, pdo_sqlite, Phar, posix, readline, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, redis, Zend OPcache

DB Type: mysql Version: 10.11.13 Size: 145.9 MB

cheers

seals187 avatar Dec 04 '25 13:12 seals187

Can you please post the full stacktrace/error message?

provokateurin avatar Dec 04 '25 14:12 provokateurin

something like that ? (I changed to log level 0 , thats form nextcloud.log) if not , could you explain me how to get that stacktrace/error

{"reqId":"OxhalaLCeTrYqLaJkyu3","level":3,"time":"2025-12-04T15:18:04+00:00","remoteAddr":"redacted-IP","user":"B75847EB-C1C1-4F60-938D-19B2C650EFD6","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/B75847EB-C1C1-4F60-938D-19B2C650EFD6/update/","message":"Typed property OC\Share20\DefaultShareProvider::$dbConn must not be accessed before initialization","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:145.0) Gecko/20100101 Firefox/145.0","version":"31.0.11.2","exception":{"Exception":"Error","Message":"Typed property OC\Share20\DefaultShareProvider::$dbConn must not be accessed before initialization","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Share20/DefaultShareProvider.php","line":624,"function":"getSharesInFolderInternal","class":"OC\Share20\DefaultShareProvider","type":"->"},{"file":"/var/www/nextcloud/lib/private/Share20/Manager.php","line":1220,"function":"getAllSharesInFolder","class":"OC\Share20\DefaultShareProvider","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/SharesPlugin.php","line":121,"function":"getSharesInFolder","class":"OC\Share20\Manager","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/SharesPlugin.php","line":185,"function":"getSharesFolder","class":"OCA\DAV\Connector\Sabre\SharesPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"handleGetProperties","class":"OCA\DAV\Connector\Sabre\SharesPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1052,"function":"emit","class":"Sabre\DAV\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":984,"function":"getPropertiesByNode","class":"Sabre\DAV\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1664,"function":"getPropertiesIteratorForPath","class":"Sabre\DAV\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1649,"function":"writeMultiStatus","class":"Sabre\DAV\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":346,"function":"generateMultiStatus","class":"Sabre\DAV\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPropFind","class":"Sabre\DAV\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\DAV\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php","line":49,"function":"invokeMethod","class":"Sabre\DAV\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":398,"function":"start","class":"OCA\DAV\Connector\Sabre\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":21,"function":"exec","class":"OCA\DAV\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":145,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Share20/DefaultShareProvider.php","Line":631,"message":"Typed property OC\Share20\DefaultShareProvider::$dbConn must not be accessed before initialization","exception":{},"CustomMessage":"Typed property OC\Share20\DefaultShareProvider::$dbConn must not be accessed before initialization"}}

seals187 avatar Dec 04 '25 15:12 seals187

Yes that's what I meant

provokateurin avatar Dec 06 '25 11:12 provokateurin

Can you check your logs for any other errors and post them? Also please try to restart your web server and database, it might fix the problem already.

provokateurin avatar Dec 06 '25 18:12 provokateurin

we rebooted DB, webserver and server itself, but that didn't helped. Actually we have some other errors, but not for that particular problem with the teamfolder app I think.

seals187 avatar Dec 08 '25 11:12 seals187