-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Trying to access array offset on value of type int
at lib/private/Files/Node/Node.php#327
#19010
Comments
Duplicate of #18996 |
Please open a separate issue in https://github.com/nextcloud/logreader for BBB. |
Thanks for reporting 👍 server/lib/private/Files/Node/Node.php Lines 327 to 329 in 5bf3d1b
OK. Current implementation will prepend a
That's the same without the array integer warning. Actually the documentation says that
Would be nice to test this patch with additional logging. It will throw a exception if $path is an integer, catch the exception and forward it to the logs. We need the exception then to see where this faulty integer is coming from. Thanks 👍 (Don't forget the backups just in case) Similar to: #18926 |
Hi thank for re-opening this issue 👍 I am not comfortable with testing a patch on my only NC setup which is in production 😟 Can you reproduce this issue? |
No luck 🤷♂️ If you keep |
Hi @kesselb !
|
Thanks @MeiRos 👍 cc @juliushaertl Please pass a string to |
Hi |
Fixed by nextcloud/text#608 |
Why is it closed ? I'm still having the error, and my NC instance is up to date. |
As you may have seen I did some debugging with @MeiRos and traced this error down to a specific code path. That faulty code has been fixed (by the linked pull request). The pull request is merged and the code shipped with 18.0.1 hence I closed this issue. Feel free to patch your instance the same way and add more logs to find more faulty places. We can reopen than. |
Just got this error today : { And since you fixed it in 18.0.1 and i'm using 18.0.2.2, then issue is not fixed. Unless I've missed something ? |
As you may have seen I did some debugging with @MeiRos and traced this error down to a specific code path. Feel free to patch your instance the same way and add more logs to find more faulty places. |
There are nothing about node.php in my log. It's fixed for me. I have errors about compiler.php, but that's the other story.. |
Still in my logs today. |
Is the explanation there not clear to you? It's important to figure out which code calls the method in a wrong way. |
True, I didn't realize that the patch was for extra logging. Thought it was a fix. |
Ok @kesselb I think I've some stuff for you^^
|
Can you please reopen the issue ? |
Asking for a solution on a closed issue is not the best way to get an reply. I suggest you open a new issue if there is not already one open. Good luck 🍺 |
I do not know why it is closed when it is not fixed and several other user still have the same problem with NC 18 even with NC 19 |
@kesselb can you take a look on latest comments on this issue? |
@TorinKR @vanyolai @Chris-A-sc
|
thank for the help @kesselb 🍺 |
Just updated to version 18.0.7 and the bug is back. Trying to access array offset on value of type int at /var/www/html/nextcloud/lib/private/Files/Node/Node.php#327 I don't understand why you didn't fix it in the new version? |
NC 19.0.1 PHP 7.4.8 Trying to access array offset on value of type int at /var/www/vhosts/<my.domain>/httpdocs/lib/private/Files/Node/Node.php#328 |
If you still see this issue happening, please apply the patch from @kesselb and paste the verbose logging output, as the error message in general is not pointing to the original location where the issue is happening: #19010 (comment) |
Did apply the patch after I got the issue back in 18.0.7. It worked fine. Upgraded to 19.0.1 and issue was back again. Now I applied the patch once again. It looks like the issue disappeared. If not I'll report again with verbose logging output. |
Here is the output from the logs after applying the patch from kesselb:
These two error messages are triggered by the cronjob and therefore appear every 5 minutes. System: PHP: |
Ah I see nextcloud/groupfolders#942 was not released yet as a fix for the groupfolders app. |
Same issue here... (also groupfolders) JSON-Object:{"reqId":"xEIL38IsJazQ0iUo73FZ","level":3,"time":"2020-08-24T16:40:05+00:00","remoteAddr":"[redacted]","user":"server","app":"no app in context","method":"PUT","url":"/remote.php/dav/files/server/[redacted]","message":{"Exception":"LogicException","Message":"$path is a integer: 45314","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/Node/Folder.php","line":63,"function":"normalizePath","class":"OC\\Files\\Node\\Node","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Folder.php","line":138,"function":"getFullPath","class":"OC\\Files\\Node\\Folder","type":"->"},{"file":"/var/www/nextcloud/apps/groupfolders/lib/Versions/VersionsBackend.php","line":96,"function":"get","class":"OC\\Files\\Node\\Folder","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/Versions/VersionManager.php","line":93,"function":"createVersion","class":"OCA\\GroupFolders\\Versions\\VersionsBackend","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/Storage.php","line":207,"function":"createVersion","class":"OCA\\Files_Versions\\Versions\\VersionManager","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/Hooks.php","line":61,"function":"store","class":"OCA\\Files_Versions\\Storage","type":"::"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Hook.php","line":110,"function":"write_hook","class":"OCA\\Files_Versions\\Hooks","type":"::"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":381,"function":"emit","class":"OC_Hook","type":"::"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":162,"function":"emitPreHooks","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1143,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":515,"function":"updateFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":474,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":251,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":319,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":320,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":167,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Files/Node/Node.php","Line":307,"CustomMessage":"--"},"userAgent":"curl/7.68.0","version":"19.0.1.1","id":"5f43ed65cf231"} Stacktrace
|
Thanks a lot @Pingger I moved it to nextcloud/groupfolders#1023 |
Mh, I noticed a high cpu-usage of the cron-job on my instance (v 19.0.2) and saw the (I have no groupfolders installed) |
@AndreKoepke See #19010 (comment) for additional steps to generate some useful log output. |
@juliushaertl thanks for the hint. I will open a new ticket for it. |
Just got this error today in Nextcloud 21.0.0 :
|
int
at lib/private/Files/Node/Node.php#327
Also got this error today in NC 23. Applied the patch and will post verbose output when available. |
HI all i just got this error today on NC 24.0.4 {"reqId":"6eYLNqVQSjAit8VDbOwz","level":3,"time":"2022-08-30T12:40:52-05:00","remoteAddr":"66.158.36.34","user":"admin","app":"PHP","method":"PUT","url":"/apps/sendent/api/1.0/settinggroupvalue/10","message":"Trying to access array offset on value of type int at /var/www/nextcloud/lib/private/Files/Node/Node.php#310","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36","version":"24.0.4.1","exception":{"Exception":"Error","Message":"Trying to access array offset on value of type int at /var/www/nextcloud/lib/private/Files/Node/Node.php#310","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/Node/Node.php","line":310,"function":"onError","class":"OC\Log\ErrorHandler","type":"::"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Folder.php","line":69,"function":"isValidPath","class":"OC\Files\Node\Node","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Folder.php","line":137,"function":"getFullPath","class":"OC\Files\Node\Folder","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Folder.php","line":146,"function":"get","class":"OC\Files\Node\Folder","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFolder.php","line":71,"function":"nodeExists","class":"OC\Files\Node\Folder","type":"->"},{"file":"/var/www/nextcloud/apps/sendent/lib/Service/SendentFileStorageManager.php","line":28,"function":"fileExists","class":"OC\Files\SimpleFS\SimpleFolder","type":"->"},{"file":"/var/www/nextcloud/apps/sendent/lib/Controller/SettingGroupValueApiController.php","line":176,"function":"writeTxt","class":"OCA\Sendent\Service\SendentFileStorageManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"update","class":"OCA\Sendent\Controller\SettingGroupValueApiController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1023,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"id":"630e4c7797114"} |
How to use GitHub
Steps to reproduce
Hi, after upgrading not NC 18 and PHP 7.4, I have got some error messages that are apparently related to this new PHP version:
Errors are from apps:
Apprarently there is an issue in
/3rdparty/leafo/scssphp/src/Compiler.php
.The text was updated successfully, but these errors were encountered: