After migrating from 20.0.8 to 21, I get many error messages such as these:
Error: disk_free_space(): No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#373
Error: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero at /var/www/nextcloud/lib/public/AppFramework/Http/Template/PublicTemplateResponse.php#101
Error: imagecreatefromstring(): Data is not in a recognized format at /var/www/nextcloud/lib/private/legacy/OC_Image.php#668
Error: Required parameter $tagManager follows optional parameter $fileIdentifier at /var/www/nextcloud/apps/files/lib/Helper.php#220
After switching to php 7.4, most errors disappeared. Unfortunately I see these in the logs:
Error: Call to undefined method OC\AllConfig::isGlobalScaleEnabled()
Invalid data provided to provideInitialState by files
I also get this error with the cron:
TypeError: Argument 1 passed to OC\DB\SchemaWrapper::__construct() must be an instance of OC\DB\Connection, instance of OC\DB\ConnectionAdapter given, called in /var/www/nextcloud/apps/spreed/lib/BackgroundJob/CheckReferenceIdColumn.php on line 59
Ok, thanks. not to sound mean or anything (it’s 2021, better be careful in the way people may interpret things), but reading the link you sent shows NC21 is not yet compatible with php8.0; the “fix” was to revert to php7.4, which I did.
I don’t think that NC21.x is PHP8 compatible yet …
My logs are full of several errors and i don’t think that all of them are concerned a missconfigurated NC server …
Error: Function mcrypt_encrypt() is deprecated at /var/www/nextcloud/apps/rainloop/lib/Util/RainLoopHelper.php#180
→ uninstalled php8.0-mcrypt package (gone)
Error: The “Symfony\Component\Translation\PluralizationRules” class is deprecated since Symfony 4.2. at /var/www/nextcloud/3rdparty/symfony/translation/PluralizationRules.php#38
Error: session_start(): Ignoring session_start() because a session is already active at /var/www/nextcloud/lib/private/Session/Internal.php#207
Error: Required parameter $tagManager follows optional parameter $fileIdentifier at /var/www/nextcloud/apps/files/lib/Helper.php#220
Error: ldap_read(): Search: No such object at /var/www/nextcloud/apps/user_ldap/lib/LDAP.php#342
Error: Required parameter $internalPath follows optional parameter $mountId at /var/www/nextcloud/lib/private/Files/Config/CachedMountFileInfo.php#34
All mentioned errors appears with 7.4 → 8.0 … and after migration from 20.0.8 to 21.0.1
But the errors come from PHP