Skip to content

Open documents in collabora fails in nc18 when social is enabled.  #856

Description

@small1

Describe the bug
Update to nextcloud 18 enable the social app (it is not compatible with 18 but enable anway).

Documents wont open and this error will be in the log:
{"reqId":"YQu6Vze3miU1Ci3j0W2Z","level":3,"time":"2020-01-20T13:55:31+00:00","remoteAddr":"*************","user":"admin","app":"PHP","method":"GET","url":"/apps/richdocuments/index?fileId=98379&requesttoken=%3D","message":"Declaration of daita\MySmallPhpTools\Db\ExtendedQueryBuilder::exprLimitToDBFieldArray(string $field, array $values, bool $eq = true, bool $cs = true, string $alias = ''): OCP\DB\QueryBuilder\ICompositeExpression must be compatible with daita\MySmallPhpTools\IExtendedQueryBuilder::exprLimitToDBFieldArray(string $field, array $values, bool $cs = true, string $alias = ''): OCP\DB\QueryBuilder\ICompositeExpression at /var/www/nextcloud/apps/social/vendor/daita/my-small-php-tools/lib/Db/ExtendedQueryBuilder.php#49","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36","version":"18.0.0.10"}

To Reproduce
Steps to reproduce the behavior:

  1. update to nx18
  2. enable the app even if its not compatbile with nc18
  3. Go to files and open a collabora dokument.
  4. Document wont open and the error will be in the file

Expected behavior
Document should be opened

Server details **Social app version:** 0.2.101 **Operating system**: debian 9 **Web server:** nginx **Database:** mariadb **PHP version:** 7.2 **Nextcloud version:** (see Nextcloud admin page) nc 18
Logs

Nextcloud log (data/nextcloud.log)

{"reqId":"YQu6Vze3miU1Ci3j0W2Z","level":3,"time":"2020-01-20T13:55:31+00:00","remoteAddr":"2.64.191.217","user":"admin","app":"PHP","method":"GET","url":"/apps/richdocuments/index?fileId=98379&requesttoken=M8YtD7PWJ9C40twbnMXnwcRy%2BqcLbyIyQOGT9K9tdsU%3D%3AQ4UYXNyXbofh47NI64DRrohKw4xAI2lqCbX1vvtGIIQ%3D","message":"Declaration of daita\\MySmallPhpTools\\Db\\ExtendedQueryBuilder::exprLimitToDBFieldArray(string $field, array $values, bool $eq = true, bool $cs = true, string $alias = ''): OCP\\DB\\QueryBuilder\\ICompositeExpression must be compatible with daita\\MySmallPhpTools\\IExtendedQueryBuilder::exprLimitToDBFieldArray(string $field, array $values, bool $cs = true, string $alias = ''): OCP\\DB\\QueryBuilder\\ICompositeExpression at /var/www/nextcloud/apps/social/vendor/daita/my-small-php-tools/lib/Db/ExtendedQueryBuilder.php#49","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36","version":"18.0.0.10"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions