Skip to content

Can't create any entry (time entry, project or client) #211

@bjoernramos

Description

@bjoernramos

After your update to support Nextcloud 26 i cant create any entry.
My Nextcloud Log:

{"reqId":"m2tM1fWhW1ae2tYIFZmR","level":3,"time":"2023-03-26T12:53:35+00:00","remoteAddr":"173.249.49.216","user":"bjoern","app":"index","method":"POST","url":"/apps/timetracker/ajax/start-timer/test","message":"OCA\\TimeTracker\\Db\\OldNextcloudMapper::insert(): Argument #1 ($entity) must be of type OCA\\TimeTracker\\Db\\Entity, OCA\\TimeTracker\\Db\\WorkInterval given, called in /var/www/html/custom_apps/timetracker/lib/Controller/AjaxController.php on line 219 in file '/var/www/html/custom_apps/timetracker/lib/Db/OldNextcloudMapper.php' line 99","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0","version":"26.0.0.11","exception":{"Exception":"Exception","Message":"OCA\\TimeTracker\\Db\\OldNextcloudMapper::insert(): Argument #1 ($entity) must be of type OCA\\TimeTracker\\Db\\Entity, OCA\\TimeTracker\\Db\\WorkInterval given, called in /var/www/html/custom_apps/timetracker/lib/Controller/AjaxController.php on line 219 in file '/var/www/html/custom_apps/timetracker/lib/Db/OldNextcloudMapper.php' line 99","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\TimeTracker\\Controller\\AjaxController"],"startTimer"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\TimeTracker\\Controller\\AjaxController","startTimer",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["test","timetracker.ajax.start_timer"]]},{"file":"/var/www/html/lib/base.php","line":1055,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/timetracker/ajax/start-timer/test"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","Line":169,"Previous":{"Exception":"TypeError","Message":"OCA\\TimeTracker\\Db\\OldNextcloudMapper::insert(): Argument #1 ($entity) must be of type OCA\\TimeTracker\\Db\\Entity, OCA\\TimeTracker\\Db\\WorkInterval given, called in /var/www/html/custom_apps/timetracker/lib/Controller/AjaxController.php on line 219","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/timetracker/lib/Controller/AjaxController.php","line":219,"function":"insert","class":"OCA\\TimeTracker\\Db\\OldNextcloudMapper","type":"->","args":[["OCA\\TimeTracker\\Db\\WorkInterval",null,"test",null,null,"bjoern",1679835215,null,1,null]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"startTimer","class":"OCA\\TimeTracker\\Controller\\AjaxController","type":"->","args":["test"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\TimeTracker\\Controller\\AjaxController"],"startTimer"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\TimeTracker\\Controller\\AjaxController"],"startTimer"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\TimeTracker\\Controller\\AjaxController","startTimer",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["test","timetracker.ajax.start_timer"]]},{"file":"/var/www/html/lib/base.php","line":1055,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/timetracker/ajax/start-timer/test"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/timetracker/lib/Db/OldNextcloudMapper.php","Line":99},"CustomMessage":"--"}}
{"reqId":"uqXXu0GuM797wLfmoAwG","level":3,"time":"2023-03-26T12:58:49+00:00","remoteAddr":"173.249.49.216","user":"bjoern","app":"index","method":"POST","url":"/apps/timetracker/ajax/add-client/Test","message":"OCA\\TimeTracker\\Db\\OldNextcloudMapper::insert(): Argument #1 ($entity) must be of type OCA\\TimeTracker\\Db\\Entity, OCA\\TimeTracker\\Db\\Client given, called in /var/www/html/custom_apps/timetracker/lib/Controller/AjaxController.php on line 508 in file '/var/www/html/custom_apps/timetracker/lib/Db/OldNextcloudMapper.php' line 99","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0","version":"26.0.0.11","exception":{"Exception":"Exception","Message":"OCA\\TimeTracker\\Db\\OldNextcloudMapper::insert(): Argument #1 ($entity) must be of type OCA\\TimeTracker\\Db\\Entity, OCA\\TimeTracker\\Db\\Client given, called in /var/www/html/custom_apps/timetracker/lib/Controller/AjaxController.php on line 508 in file '/var/www/html/custom_apps/timetracker/lib/Db/OldNextcloudMapper.php' line 99","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\TimeTracker\\Controller\\AjaxController"],"addClient"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\TimeTracker\\Controller\\AjaxController","addClient",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["Test","timetracker.ajax.add_client"]]},{"file":"/var/www/html/lib/base.php","line":1055,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/timetracker/ajax/add-client/Test"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","Line":169,"Previous":{"Exception":"TypeError","Message":"OCA\\TimeTracker\\Db\\OldNextcloudMapper::insert(): Argument #1 ($entity) must be of type OCA\\TimeTracker\\Db\\Entity, OCA\\TimeTracker\\Db\\Client given, called in /var/www/html/custom_apps/timetracker/lib/Controller/AjaxController.php on line 508","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/timetracker/lib/Controller/AjaxController.php","line":508,"function":"insert","class":"OCA\\TimeTracker\\Db\\OldNextcloudMapper","type":"->","args":[["OCA\\TimeTracker\\Db\\Client",null,"Test",1679835529]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"addClient","class":"OCA\\TimeTracker\\Controller\\AjaxController","type":"->","args":["Test"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\TimeTracker\\Controller\\AjaxController"],"addClient"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\TimeTracker\\Controller\\AjaxController"],"addClient"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\TimeTracker\\Controller\\AjaxController","addClient",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["Test","timetracker.ajax.add_client"]]},{"file":"/var/www/html/lib/base.php","line":1055,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/timetracker/ajax/add-client/Test"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/timetracker/lib/Db/OldNextcloudMapper.php","Line":99},"CustomMessage":"--"}}

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