mtierltd / timetracker

GNU Affero General Public License v3.0
81 stars 27 forks source link

goals do not work #91

Closed simeonfelis closed 3 years ago

simeonfelis commented 3 years ago

after trying to create a goal for a project I receive error messages. reloading goals results in 500. log entry:

{
  "reqId": "X9A9BdgLr1TxHFit98Uo",
  "level": 3,
  "time": "2021-01-29T22:18:36+00:00",
  "remoteAddr": "X",
  "user": "X",
  "app": "index",
  "method": "GET",
  "url": "/apps/timetracker/ajax/goals",
  "message": {
    "Exception": "BadFunctionCallException",
    "Message": "projectname is not a valid attribute",
    "Code": 0,
    "Trace": [
      {
        "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/custom_apps/timetracker/lib/Db/GoalMapper.php",
        "line": 42,
        "function": "findEntities",
        "class": "OCP\\AppFramework\\Db\\Mapper",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/custom_apps/timetracker/lib/Controller/AjaxController.php",
        "line": 1220,
        "function": "findAll",
        "class": "OCA\\TimeTracker\\Db\\GoalMapper",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 169,
        "function": "getGoals",
        "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/public/AppFramework/Db/Entity.php",
    "Line": 122,
    "CustomMessage": "--"
  },
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0",
  "version": "20.0.6.1"
}

nextcloud 20.0.6, timetracker 0.0.53, using postgresql