-
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
TypeError: Argument 1 passed to OCA\\GroupFolders\\Versions\\VersionsBackend::getVersionsFolder() must be of the type int, string given, called in /var/www/nextcloud/apps/groupfolders/lib/Versions/VersionsBackend.php on line 154 #267
Comments
I'm encountering this error regularly also. I'm running the cronjob with PHP 7.0.33. {"reqId":"OSFpw8Yg9fet4fWFKaLv","level":3,"time":"2018-12-19T08:30:02+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"TypeError","Message":"Argument 1 passed to OCA\\GroupFolders\\Versions\\VersionsBackend::getVersionsFolder() must be of the type integer, string given, called in /var/www/html/apps/groupfolders/lib/Versions/VersionsBackend.php on line 154","Code":0,"Trace":[{"file":"/var/www/html/apps/groupfolders/lib/Versions/VersionsBackend.php","line":154,"function":"getVersionsFolder","class":"OCA\\GroupFolders\\Versions\\VersionsBackend","type":"->","args":["1"]},{"file":"/var/www/html/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php","line":53,"function":"getAllVersionedFiles","class":"OCA\\GroupFolders\\Versions\\VersionsBackend","type":"->","args":[{"id":"1","mount_point":"Familie","groups":{"group":"31"},"quota":"-3","size":0}]},{"file":"/var/www/html/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php","line":48,"function":"expireFolder","class":"OCA\\GroupFolders\\Versions\\GroupVersionsExpireManager","type":"->","args":[{"id":"1","mount_point":"Familie","groups":{"group":"31"},"quota":"-3","size":0}]},{"file":"/var/www/html/apps/groupfolders/lib/BackgroundJob/ExpireGroupVersions.php","line":40,"function":"expireAll","class":"OCA\\GroupFolders\\Versions\\GroupVersionsExpireManager","type":"->","args":[]},{"file":"/var/www/html/lib/private/BackgroundJob/Job.php","line":61,"function":"run","class":"OCA\\GroupFolders\\BackgroundJob\\ExpireGroupVersions","type":"->","args":[null]},{"file":"/var/www/html/lib/private/BackgroundJob/TimedJob.php","line":55,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]},{"file":"/var/www/html/cron.php","line":123,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]}],"File":"/var/www/html/apps/groupfolders/lib/Versions/VersionsBackend.php","Line":189,"CustomMessage":"--"},"userAgent":"--","version":"15.0.0.10","id":"5c1a520b6cdc6"} |
I'm encountering the same problem with cronjob and PHP 7.2 after upgrading to Nextcloud 15.0 and Group folders 2.0.2. Error message:
at 2019-01-05T05:15:03+00:00 |
I think, it is not PHP Version related (String / Integer) php 7.0.30 [cron] Error: TypeError: Argument 1 passed to OCA\GroupFolders\Versions\VersionsBackend::getVersionsFolder() must be of the type integer, string given, called in /volume1/web/nextcloud/apps/groupfolders/lib/Versions/VersionsBackend.php on line 154 at <>
GET /cron.php |
i agree, it seems to be a type mismatch problem in the group folder app.. can we label this issue as a bug? |
Same problem... [cron] Error: TypeError: Argument 1 passed to OCA\GroupFolders\Versions\VersionsBackend::getVersionsFolder() must be of the type integer, string given, called in /var/www/owncloud/apps/groupfolders/lib/Versions/VersionsBackend.php on line 154 at <>
at 2019-01-16T01:15:06+01:00 |
Same issue
|
same issue
|
here too same issue
|
Same issue here
|
The same here |
same issue {"reqId":"o9GNaEAYuTbkJs2AS164","level":3,"time":"2019-02-06T20:15:03+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"TypeError","Message":"Argument 1 passed to OCA\GroupFolders\Versions\VersionsBackend::getVersionsFolder() must be of the type integer, string given, called in /var/najacloud/apps/groupfolders/lib/Versions/VersionsBackend.php on line 154","Code":0,"Trace":[{"file":"/var/najacloud/apps/groupfolders/lib/Versions/VersionsBackend.php","line":154,"function":"getVersionsFolder","class":"OCA\GroupFolders\Versions\VersionsBackend","type":"->","args":["1"]},{"file":"/var/najacloud/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php","line":53,"function":"getAllVersionedFiles","class":"OCA\GroupFolders\Versions\VersionsBackend","type":"->","args":[{"id":"1","mount_point":"Folder Group","groups":[],"quota":"1073741274","size":0}]},{"file":"/var/najacloud/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php","line":48,"function":"expireFolder","class":"OCA\GroupFolders\Versions\GroupVersionsExpireManager","type":"->","args":[{"id":"1","mount_point":"Folder Group","groups":[],"quota":"1073741274","size":0}]},{"file":"/var/najacloud/apps/groupfolders/lib/BackgroundJob/ExpireGroupVersions.php","line":40,"function":"expireAll","class":"OCA\GroupFolders\Versions\GroupVersionsExpireManager","type":"->","args":[]},{"file":"/var/najacloud/lib/private/BackgroundJob/Job.php","line":61,"function":"run","class":"OCA\GroupFolders\BackgroundJob\ExpireGroupVersions","type":"->","args":[null]},{"file":"/var/najacloud/lib/private/BackgroundJob/TimedJob.php","line":55,"function":"execute","class":"OC\BackgroundJob\Job","type":"->","args":[{"class":"OC\BackgroundJob\JobList"},{"class":"OC\Log"}]},{"file":"/var/najacloud/cron.php","line":123,"function":"execute","class":"OC\BackgroundJob\TimedJob","type":"->","args":[{"class":"OC\BackgroundJob\JobList"},{"class":"OC\Log"}]}],"File":"/var/najacloud/apps/groupfolders/lib/Versions/VersionsBackend.php","Line":189,"CustomMessage":"--"},"userAgent":"--","version":"15.0.2.0","id":"5c5b97e7cb1b8"} |
Please stop writing "same issue" without contributing further. |
Just a thought... |
@Sprinterfreak Did that work out? We could form a PR towards that. |
Hello, the mistake still exists. Since 18.12.2018 the error is known, and still it is not processed! When can a solution be expected? Same on PHP 7.2 and NC 15.0.4.0 + Group folders 2.0.2: |
@fwolfst worked out partially but moved the issue to the next level. I didn't invetigated it further until now but I think the cast should happen at that point where the array of group folder configuration is collected. Couldn't resist now.
This is the location where things are collected. I allready added the cast Some classes declare |
Still not. Now it's complaining
Needs further investigating. |
* fixes nextcloud#267 logging errors * fixed followup error of undefined index 'permissions'
My PR forces id to be type integer instead of string wich solves this issue for me. |
Now under Settings - Group Folder - under Groups only a 0 is displayed. |
Kind of expected. The whole groupfolders expire manager module looks like someone has forgotten to stage half of his work during development. There are variables used, never defined before. |
Followup patch fixing null permissions bug #267
Thanks icewind1991, the code looks good now. |
* fixes #267 logging errors * fixed followup error of undefined index 'permissions'
The errror seems back with NC 22. |
NC: 15
Groupfolders: 2.0.2
Seeing this in the Logfile from cron (that run's with php7.3 cli) - so it's maybe a PHP7.3 related error.
The text was updated successfully, but these errors were encountered: