Skip to content

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

@zeroepix

Description

@zeroepix

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions