-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
Several incompatibilites with PHP 8.0 #25806
Comments
Same issue with nc21 and:
|
|
same here with nc 21 : PHP 8.0.3 (cli) (built: Mar 5 2021 08:38:30) ( NTS ) |
Ubuntu Server 18.04.5 + apache 2.4.46 + php 8.0.3 + NC 21.0.1
|
It seem that NC21 is not production ready for PHP 8.0.* |
NC 21.0.2 RC1 - PHP8Unraid OS Deprecations
Errors
|
Also happens on PHP 7.4 {"reqId":"imOYxaS3XldGehA38zwg","level":3,"time":"2021-05-27T19:05:02+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":{"Exception":"Error","Message":"Required parameter $tagManager follows optional parameter $fileIdentifier at /var/www/nextcloud/apps/files/lib/Helper.php#220","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/composer/composer/ClassLoader.php","line":478,"function":"onError","class":"OC\Log\ErrorHandler","type":"::"},{"file":"/var/www/nextcloud/lib/composer/composer/ClassLoader.php","line":478,"function":"include"},{"file":"/var/www/nextcloud/lib/composer/composer/ClassLoader.php","line":346,"function":"Composer\Autoload\includeFile"},{"file":"/var/www/nextcloud/apps/files_trashbin/lib/Helper.php","line":109,"function":"loadClass","class":"Composer\Autoload\ClassLoader","type":"->"},{"file":"/var/www/nextcloud/apps/files_trashbin/lib/Trashbin.php","line":831,"function":"getTrashFiles","class":"OCA\Files_Trashbin\Helper","type":"::"},{"file":"/var/www/nextcloud/apps/files_trashbin/lib/Command/Expire.php","line":58,"function":"expire","class":"OCA\Files_Trashbin\Trashbin","type":"::"},{"file":"/var/www/nextcloud/lib/private/Command/CommandJob.php","line":36,"function":"handle","class":"OCA\Files_Trashbin\Command\Expire","type":"->"},{"file":"/var/www/nextcloud/lib/private/BackgroundJob/Job.php","line":52,"function":"run","class":"OC\Command\CommandJob","type":"->"},{"file":"/var/www/nextcloud/lib/private/BackgroundJob/QueuedJob.php","line":46,"function":"execute","class":"OC\BackgroundJob\Job","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":128,"function":"execute","class":"OC\BackgroundJob\QueuedJob","type":"->"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"--","version":"21.0.2.1","id":"60b003f576ecc"} |
PHP 8 shows deprecation warnings about this, see #25806 Removes the "default" values, as they actually are required parameters anyway. Signed-off-by: Richard de Boer <[email protected]>
…eger PHP 8 shows deprecation warnings about this, see #25806 Signed-off-by: Richard de Boer <[email protected]>
Also this error with php8.0.7 every hour at the same time {"reqId":"Vj8YI3H9I8nkSIujb9ld","level":3,"time":"2021-06-23T15:35:01+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":{"Exception":"TypeError","Message":"Unsupported operand types: int & array","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Files/Cache/Wrapper/CacheWrapper.php","line":74,"function":"formatCacheEntry","class":"OC\Files\Cache\Wrapper\CachePermissionsMask","type":"->"},{"file":"/var/www/html/apps/groupfolders/lib/Versions/VersionsBackend.php","line":170,"function":"get","class":"OC\Files\Cache\Wrapper\CacheWrapper","type":"->"},{"function":"OCA\GroupFolders\Versions\{closure}","class":"OCA\GroupFolders\Versions\VersionsBackend","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/groupfolders/lib/Versions/VersionsBackend.php","line":169,"function":"array_map"},{"file":"/var/www/html/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php","line":64,"function":"getAllVersionedFiles","class":"OCA\GroupFolders\Versions\VersionsBackend","type":"->"},{"file":"/var/www/html/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php","line":58,"function":"expireFolder","class":"OCA\GroupFolders\Versions\GroupVersionsExpireManager","type":"->"},{"file":"/var/www/html/apps/groupfolders/lib/BackgroundJob/ExpireGroupVersions.php","line":40,"function":"expireAll","class":"OCA\GroupFolders\Versions\GroupVersionsExpireManager","type":"->"},{"file":"/var/www/html/lib/private/BackgroundJob/Job.php","line":52,"function":"run","class":"OCA\GroupFolders\BackgroundJob\ExpireGroupVersions","type":"->"},{"file":"/var/www/html/lib/private/BackgroundJob/TimedJob.php","line":59,"function":"execute","class":"OC\BackgroundJob\Job","type":"->"},{"file":"/var/www/html/cron.php","line":128,"function":"execute","class":"OC\BackgroundJob\TimedJob","type":"->"}],"File":"/var/www/html/lib/private/Files/Cache/Wrapper/CachePermissionsMask.php","Line":44,"CustomMessage":"Error while running background job (class: OCA\GroupFolders\BackgroundJob\ExpireGroupVersions, arguments: )"},"userAgent":"--","version":"21.0.2.1"} Think its this issue nextcloud/groupfolders#1464 |
As a record, this is fixed in #27631 |
Hi, please update to 24.0.9 or better 25.0.3 and report back if it fixes the issue. Thank you! My goal is to add a label like e.g. 25-feedback to this ticket of an up-to-date major Nextcloud version where the bug could be reproduced. However this is not going to work without your help. So thanks for all your effort! If you don't manage to reproduce the issue in time and the issue gets closed but you can reproduce the issue afterwards, feel free to create a new bug report with up-to-date information by following this link: https://github.com/nextcloud/server/issues/new?assignees=&labels=bug%2C0.+Needs+triage&template=BUG_REPORT.yml&title=%5BBug%5D%3A+ |
I have not seen this error on NC25.0.3 |
Thanks for verifying! |
I updated some days ago and am still seeing the
|
Can you please open a new issue about this with up-to-date information? Thanks! |
How to use GitHub
Steps to reproduce
Expected behaviour
not that many errors
Actual behaviour
following errors showing up in the log repeatedly:
Server configuration
Operating system: Ubuntu 20.04
Web server: Apache
Database: MariaDB 10.5.9
PHP version: 8.0.2
Nextcloud version: (see Nextcloud admin page) 21.0.0
Updated from an older Nextcloud/ownCloud or fresh install: Update from 20.0.8
Where did you install Nextcloud from: official website
Signing status:
Signing status
No errors have been found.List of activated apps:
App list
Enabled: - accessibility: 1.7.0 - activity: 2.14.3 - admin_audit: 1.11.0 - breezedark: 21.0.1 - camerarawpreviews: 0.7.10 - checksum: 1.0.1 - cloud_federation_api: 1.4.0 - comments: 1.11.0 - contactsinteraction: 1.2.0 - dashboard: 7.1.0 - dav: 1.17.1 - documentserver_community: 0.1.9 - extract: 1.3.1 - federatedfilesharing: 1.11.0 - federation: 1.11.0 - files: 1.16.0 - files_antivirus: 3.1.2 - files_downloadactivity: 1.10.0 - files_external: 1.12.0 - files_pdfviewer: 2.1.0 - files_rightclick: 1.0.0 - files_sharing: 1.13.1 - files_texteditor: 2.14.0 - files_trashbin: 1.11.0 - files_versions: 1.14.0 - files_videoplayer: 1.10.0 - firstrunwizard: 2.10.0 - imageconverter: 1.3.1 - impersonate: 1.8.0 - logreader: 2.6.0 - lookup_server_connector: 1.9.0 - mail: 1.8.3 - maps: 0.1.8 - notifications: 2.9.0 - oauth2: 1.9.0 - onlyoffice: 6.3.0 - password_policy: 1.11.0 - passwords: 2021.2.0 - photos: 1.3.0 - previewgenerator: 3.1.1 - privacy: 1.5.0 - provisioning_api: 1.11.0 - recommendations: 1.0.0 - serverinfo: 1.11.0 - settings: 1.3.0 - sharebymail: 1.11.0 - spreed: 11.0.0 - support: 1.4.0 - survey_client: 1.9.0 - systemtags: 1.11.0 - text: 3.2.0 - theming: 1.12.0 - twofactor_backupcodes: 1.10.0 - updatenotification: 1.11.0 - user_ldap: 1.11.0 - user_status: 1.1.1 - viewer: 1.5.0 - weather_status: 1.1.0 - workflowengine: 2.3.0 Disabled: - bruteforcesettings - encryption - facerecognition - files_fulltextsearch - fulltextsearch - fulltextsearch_elasticsearch - nextcloud_announcements - ransomware_protectionNextcloud configuration:
Config report
{ "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "cloud.clnp.eu", "cloud.saef-zf.de" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "21.0.0.18", "overwrite.cli.url": "https:\/\/cloud.clnp.eu", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "mail_smtpmode": "sendmail", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "memcache.local": "\\OC\\Memcache\\APCu", "updater.release.channel": "stable", "loglevel": 0, "maintenance": false, "theme": "", "app_install_overwrite": [ "camerarawpreviews", "files_texteditor", "extract", "documentserver_community", "ocdownloader" ], "ldapIgnoreNamingRules": false, "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory", "default_language": "de", "default_locale": "de", "default_phone_region": "DE" } }Are you using external storage, if yes which one: local/smb/sftp/...
local, sftp, nextcloud
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no
The text was updated successfully, but these errors were encountered: