mtierltd / timetracker

GNU Affero General Public License v3.0
83 stars 29 forks source link

Error: settype(): Invalid type at /var/www/nextcloud/lib/public/AppFramework/Db/Entity.php#118 #83

Closed zeroepix closed 3 years ago

zeroepix commented 3 years ago

Just started getting this error after updating to Nextcloud 20.0.5 and 0.0.50, full trace:

{
    "reqId": "0FgpQYj5I33CZkEEnnt1",
    "level": 3,
    "time": "2021-01-25T19:21:40+11:00",
    "remoteAddr": "192.168.x.y",
    "user": "me",
    "app": "PHP",
    "method": "GET",
    "url": "/apps/timetracker/ajax/work-intervals?days=30",
    "message": {
        "Exception": "Error",
        "Message": "settype(): Invalid type at /var/www/nextcloud/lib/public/AppFramework/Db/Entity.php#118",
        "Code": 0,
        "Trace": [
            {
                "function": "onError",
                "class": "OC\\Log\\ErrorHandler",
                "type": "::"
            },
            {
                "file": "/var/www/nextcloud/lib/public/AppFramework/Db/Entity.php",
                "line": 118,
                "function": "settype"
            },
            {
                "file": "/var/www/nextcloud/lib/public/AppFramework/Db/Entity.php",
                "line": 151,
                "function": "setter",
                "class": "OCP\\AppFramework\\Db\\Entity",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/lib/public/AppFramework/Db/Entity.php",
                "line": 73,
                "function": "__call",
                "class": "OCP\\AppFramework\\Db\\Entity",
                "type": "->"
            },
            {
                "function": "fromRow",
                "class": "OCP\\AppFramework\\Db\\Entity",
                "type": "::"
            },
            {
                "file": "/var/www/nextcloud/lib/public/AppFramework/Db/Mapper.php",
                "line": 326,
                "function": "call_user_func"
            },
            {
                "file": "/var/www/nextcloud/lib/public/AppFramework/Db/Mapper.php",
                "line": 346,
                "function": "mapRowToEntity",
                "class": "OCP\\AppFramework\\Db\\Mapper",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/apps/timetracker/lib/Db/WorkIntervalToTagMapper.php",
                "line": 34,
                "function": "findEntities",
                "class": "OCP\\AppFramework\\Db\\Mapper",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/apps/timetracker/lib/Controller/AjaxController.php",
                "line": 99,
                "function": "findAllForWorkInterval",
                "class": "OCA\\TimeTracker\\Db\\WorkIntervalToTagMapper",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
                "line": 169,
                "function": "workIntervals",
                "class": "OCA\\TimeTracker\\Controller\\AjaxController",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
                "line": 100,
                "function": "executeController",
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
                "line": 152,
                "function": "dispatch",
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/lib/private/Route/Router.php",
                "line": 309,
                "function": "main",
                "class": "OC\\AppFramework\\App",
                "type": "::"
            },
            {
                "file": "/var/www/nextcloud/lib/base.php",
                "line": 1008,
                "function": "match",
                "class": "OC\\Route\\Router",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/index.php",
                "line": 37,
                "function": "handleRequest",
                "class": "OC",
                "type": "::"
            }
        ],
        "File": "/var/www/nextcloud/lib/private/Log/ErrorHandler.php",
        "Line": 91,
        "CustomMessage": "--"
    },
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36",
    "version": "20.0.5.2",
    "id": "600e7f9507c89"
}

Error log throws around 25 of these whenever I start, stop or edit a work item. I think the number of errors matches how many items are showing up in the list.

zeroepix commented 3 years ago

Running this command

sudo -u www-data php /var/www/nextcloud/occ integrity:check-app timetracker

reports:

  - FILE_MISSING:
    - vendor/phpunit/php-file-iterator/.gitattributes:
      - expected: 66ca641a348a43ff13dc52eb690674319332d7eef2fc3dd03a3e1dad66c6375a2c6146e964591dd557d880cf89bedb10c4dd188b43582de7e96108028a541f54
      - current:

Is it possible something weird happened with the update?