tasks icon indicating copy to clipboard operation
tasks copied to clipboard

Error adding task into task list

Open caumons opened this issue 5 years ago • 1 comments

Every time I try to add a new task in a task list the following error is shown at the bottom of the page: An unexpected error occurred. If this keeps happening, please contact a site administrator

If I check the browser's console log I can see the following stack trace:

all-80cc587bf42b9f4207d602b7bba9bd46.js?v=1526470089:259 ERROR - humhub.modules.ui.modal: An unexpected error occurred. If this keeps happening, please contact a site administrator. TypeError: Cannot read property 'reloadTask' of undefined
    at HTMLDivElement.onEditTaskSubmitted (humhub.task.list.js?v=1553269680:458)
    at HTMLDivElement.e (all-80cc587bf42b9f4207d602b7bba9bd46.js?v=1526470089:19)
    at HTMLDivElement.dispatch (all-80cc587bf42b9f4207d602b7bba9bd46.js?v=1526470089:30)
    at HTMLDivElement.q.handle (all-80cc587bf42b9f4207d602b7bba9bd46.js?v=1526470089:29)
    at Object.trigger (all-80cc587bf42b9f4207d602b7bba9bd46.js?v=1526470089:30)
    at HTMLDivElement.<anonymous> (all-80cc587bf42b9f4207d602b7bba9bd46.js?v=1526470089:30)
    at Function.each (all-80cc587bf42b9f4207d602b7bba9bd46.js?v=1526470089:19)
    at ea.fn.init.each (all-80cc587bf42b9f4207d602b7bba9bd46.js?v=1526470089:19)
    at ea.fn.init.trigger (all-80cc587bf42b9f4207d602b7bba9bd46.js?v=1526470089:30)
    at all-80cc587bf42b9f4207d602b7bba9bd46.js?v=1526470089:260
    at d (all-80cc587bf42b9f4207d602b7bba9bd46.js?v=1526470089:216)
    at e._settlePromiseFromHandler (all-80cc587bf42b9f4207d602b7bba9bd46.js?v=1526470089:215)
    at e._settlePromise (all-80cc587bf42b9f4207d602b7bba9bd46.js?v=1526470089:215)
    at e._settlePromise0 (all-80cc587bf42b9f4207d602b7bba9bd46.js?v=1526470089:215)
    at e._settlePromises (all-80cc587bf42b9f4207d602b7bba9bd46.js?v=1526470089:215)
    at d._drainQueue (all-80cc587bf42b9f4207d602b7bba9bd46.js?v=1526470089:214)

It seems that the response param at onEditTaskSubmitted function is undefined and when trying to access response.reloadTask crashes (response.reloadLists would also crash).

We're using Humhub 1.2.4 and the Tasks Module version is 1.1.13

caumons avatar May 02 '19 12:05 caumons

The same happens in mine, has anyone managed to solve it?

Sameqdev avatar Mar 23 '23 11:03 Sameqdev