hevelius / files_external_onedrive

:mega: :floppy_disk: External storage support for Microsoft OneDrive
GNU General Public License v2.0
73 stars 21 forks source link

Undefined index error #25

Open L0ric0 opened 5 years ago

L0ric0 commented 5 years ago

On the new version I am getting the following errors:

[PHP] Error: Undefined index: name at /usr/share/webapps/nextcloud/apps/files_external_onedrive/vendor/hevelius/flysystem-onedrive/src/OneDriveAdapter.php#394
[PHP] Error: Array to string conversion at /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#77
[files] Error: Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'INSERT INTO "oc_filecache" ("mimepart", "mimetype", "mtime", "size", "etag", "storage_mtime", "permissions", "checksum", "path_hash", "path", "parent", "name", "storage") VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params [1, 2, {"path":"children\/","name":null,"timestamp":null,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null}, -1, "5db1808c24c3b", {"path":"children\/","name":null,"timestamp":null,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null}, 23, "", "d41d8cd98f00b204e9800998ecf8427e", "", -1, "", 9]:

SQLSTATE[22P02]: Invalid text representation: 7 FEHLER:  ungültige Eingabesyntax für ganze Zahl: »Array« at <<closure>>

 0. /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 169
    Doctrine\DBAL\Driver\AbstractPostgreSQLDriver->convertException("An exception oc ... «", Doctrine\DBAL\Dr ... ]})
 1. /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 145
    Doctrine\DBAL\DBALException::wrapException(Doctrine\DBAL\Driver\PDOPgSql\Driver {}, Doctrine\DBAL\Dr ... ]}, "An exception oc ... «")
 2. /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php line 1063
    Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Doctrine\DBAL\Driver\PDOPgSql\Driver {}, Doctrine\DBAL\Dr ... ]}, "INSERT INTO \"o ... )", {1: 1,2: 2,3: {p ... 9})
 3. /usr/share/webapps/nextcloud/lib/private/DB/Connection.php line 216
    Doctrine\DBAL\Connection->executeUpdate("INSERT INTO \"o ... )", [1,2,{path: "chi ... 9], [2,2,2,2,2,2,2,2,2,2,2,2,2])
 4. /usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php line 203
    OC\DB\Connection->executeUpdate("INSERT INTO \"o ... )", {dcValue1: 1,dcV ... 9}, {dcValue1: 2,dcV ... 2})
 5. /usr/share/webapps/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 214
    Doctrine\DBAL\Query\QueryBuilder->execute()
 6. /usr/share/webapps/nextcloud/lib/private/Files/Cache/Cache.php line 291
    OC\DB\QueryBuilder\QueryBuilder->execute()
 7. /usr/share/webapps/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php line 128
    OC\Files\Cache\Cache->insert("", {mimetype: "http ... "})
 8. /usr/share/webapps/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php line 114
    OC\Files\Cache\Wrapper\CacheWrapper->insert("", {mimetype: "http ... "})
 9. /usr/share/webapps/nextcloud/lib/private/Files/Cache/Scanner.php line 292
    OC\Files\Cache\Wrapper\CacheWrapper->put("", {mimetype: "http ... "})
10. /usr/share/webapps/nextcloud/lib/private/Files/Cache/Scanner.php line 221
    OC\Files\Cache\Scanner->addToCache("", {mimetype: "http ... "}, -1)
11. /usr/share/webapps/nextcloud/lib/private/Files/Cache/Scanner.php line 336
    OC\Files\Cache\Scanner->scanFile("", 1, -1, false, true)
12. /usr/share/webapps/nextcloud/lib/private/Files/Cache/Scanner.php line 515
    OC\Files\Cache\Scanner->scan("", true, 1)
13. /usr/share/webapps/nextcloud/lib/private/Files/Cache/Scanner.php line 532
    OC\Files\Cache\Scanner->OC\Files\Cache\{closure}("*** sensitive parameters replaced ***")
14. /usr/share/webapps/nextcloud/lib/private/Files/Cache/Scanner.php line 516
    OC\Files\Cache\Scanner->runBackgroundScanJob(Closure {}, "")
15. /usr/share/webapps/nextcloud/lib/private/Files/Utils/Scanner.php line 173
    OC\Files\Cache\Scanner->backgroundScan()
16. /usr/share/webapps/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php line 88
    OC\Files\Utils\Scanner->backgroundScan("")
17. /usr/share/webapps/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php line 112
    OCA\Files\BackgroundJob\ScanFiles->runScanner(OC\User\User {})
18. /usr/share/webapps/nextcloud/lib/private/BackgroundJob/Job.php line 61
    OCA\Files\BackgroundJob\ScanFiles->run(null)
19. /usr/share/webapps/nextcloud/lib/private/BackgroundJob/TimedJob.php line 55
    OC\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})
20. /usr/share/webapps/nextcloud/cron.php line 124
    OC\BackgroundJob\TimedJob->execute(OC\BackgroundJob\JobList {}, OC\Log {})
hevelius commented 5 years ago

@L0ric0 thanks to try fe into NC17. I haven't enough time to try NC17 and resolve this issues at the moment. Feel free to change and do a pull request. As you can see FE is compatible only for NC 15 and NC 16. The NC version I've tested.

Cwellan commented 5 years ago

I've got the same error on NC16 actually :)