-
Notifications
You must be signed in to change notification settings - Fork 87
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
PHP8 Error: unsupported operand types: int & array #1464
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
These seem to be some technical debts. I get log entries every cron run. System: Arch, PHP8, NC21.0.2. Formatted logs: Required parameter $tagManager follows optional parameter
{
"reqId": "CNkdZLgnAYyjHsOGsKnd",
"level": 3,
"time": "2021-06-02T23:08:22+02:00",
"remoteAddr": "",
"user": "--",
"app": "PHP",
"method": "",
"url": "--",
"message": {
"Exception": "Error",
"Message": "Required parameter $tagManager follows optional parameter $fileIdentifier at nextcloud/apps/files/lib/Helper.php#220",
"Code": 0,
"Trace": [
{
"file": "nextcloud/lib/composer/composer/ClassLoader.php",
"line": 478,
"function": "onError",
"class": "OC\\Log\\ErrorHandler",
"type": "::"
},
{
"file": "nextcloud/lib/composer/composer/ClassLoader.php",
"line": 478,
"function": "include"
},
{
"file": "nextcloud/lib/composer/composer/ClassLoader.php",
"line": 346,
"function": "Composer\\Autoload\\includeFile"
},
{
"file": "nextcloud/apps/files_trashbin/lib/Helper.php",
"line": 109,
"function": "loadClass",
"class": "Composer\\Autoload\\ClassLoader",
"type": "->"
},
{
"file": "nextcloud/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php",
"line": 88,
"function": "getTrashFiles",
"class": "OCA\\Files_Trashbin\\Helper",
"type": "::"
},
{
"file": "nextcloud/lib/private/User/Manager.php",
"line": 646,
"function": "OCA\\Files_Trashbin\\BackgroundJob\\{closure}",
"class": "OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "nextcloud/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php",
"line": 90,
"function": "callForSeenUsers",
"class": "OC\\User\\Manager",
"type": "->"
},
{
"file": "nextcloud/lib/private/BackgroundJob/Job.php",
"line": 52,
"function": "run",
"class": "OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash",
"type": "->"
},
{
"file": "nextcloud/lib/private/BackgroundJob/TimedJob.php",
"line": 59,
"function": "execute",
"class": "OC\\BackgroundJob\\Job",
"type": "->"
},
{
"file": "nextcloud/cron.php",
"line": 128,
"function": "execute",
"class": "OC\\BackgroundJob\\TimedJob",
"type": "->"
}
],
"File": "nextcloud/lib/private/Log/ErrorHandler.php",
"Line": 92,
"CustomMessage": "--"
},
"userAgent": "--",
"version": "21.0.2.1"
} TypeError: Unsupported operand types: int & array
{
"reqId": "gIAZA03EbEPPBfdrFedj",
"level": 3,
"time": "2021-06-02T23:17:49+02:00",
"remoteAddr": "",
"user": "--",
"app": "core",
"method": "",
"url": "--",
"message": {
"Exception": "TypeError",
"Message": "Unsupported operand types: int & array",
"Code": 0,
"Trace": [
{
"file": "nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php",
"line": 74,
"function": "formatCacheEntry",
"class": "OC\\Files\\Cache\\Wrapper\\CachePermissionsMask",
"type": "->"
},
{
"file": "nextcloud/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": "nextcloud/apps/groupfolders/lib/Versions/VersionsBackend.php",
"line": 169,
"function": "array_map"
},
{
"file": "nextcloud/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php",
"line": 64,
"function": "getAllVersionedFiles",
"class": "OCA\\GroupFolders\\Versions\\VersionsBackend",
"type": "->"
},
{
"file": "nextcloud/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php",
"line": 58,
"function": "expireFolder",
"class": "OCA\\GroupFolders\\Versions\\GroupVersionsExpireManager",
"type": "->"
},
{
"file": "nextcloud/apps/groupfolders/lib/BackgroundJob/ExpireGroupVersions.php",
"line": 40,
"function": "expireAll",
"class": "OCA\\GroupFolders\\Versions\\GroupVersionsExpireManager",
"type": "->"
},
{
"file": "nextcloud/lib/private/BackgroundJob/Job.php",
"line": 52,
"function": "run",
"class": "OCA\\GroupFolders\\BackgroundJob\\ExpireGroupVersions",
"type": "->"
},
{
"file": "nextcloud/lib/private/BackgroundJob/TimedJob.php",
"line": 59,
"function": "execute",
"class": "OC\\BackgroundJob\\Job",
"type": "->"
},
{
"file": "nextcloud/cron.php",
"line": 128,
"function": "execute",
"class": "OC\\BackgroundJob\\TimedJob",
"type": "->"
}
],
"File": "nextcloud/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"
} |
Same error here wrote in |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Is this only an error message or there is a real and concrete issue which could affect datas stored ? In other worlds, is this issue is dangerous or we can just ignore it safely ? |
"Group folders" + "Versions" produce homepage 3-5 sec open delay. With this error "unsupported operand types: int & array" in the log. |
This comment has been minimized.
This comment has been minimized.
I have the same error code flooding my logs however I also cannot connect remotely to my nextcloud server now, error 522 times out. Locally via a workstation over a LAN my Nextcloud is functioning however the log this error code 1x a hour which seems to be a clue that something is triggering this issue each hour. Error | core | TypeError: Unsupported operand types: int & array Snap revert nextcloud |
This comment has been minimized.
This comment has been minimized.
For those having this problem, can you check/try nextcloud/server#28385? |
There is no way of testing in a production environment, since no update was pushed, right? |
I believe this was fixed by #1725 You can apply the patch manually:
In case this breaks, you can revert this with:
The diff number depends on your Nextcloud version: 1728 for stable20, 1727 for stable21, 1726 for stable22, 1725 for master |
How to use GitHub
Expected behaviour
no logged error
Actual behaviour
Logging of Error core
Server configuration
see nextcloud/server#26743
The text was updated successfully, but these errors were encountered: