pitaj/nodebb-plugin-calendar

Error when viewing events

Closed this issue · 3 comments

pitaj commented

Stack trace:

templates.js:13 

Uncaught TypeError: event.reminders.sort is not a function
    at eventTemplate (templates.js:13)
    at displayEvent (displayEvent.js:5)
    at HTMLAnchorElement.eventClick (index.js:40)
    at Calendar.publiclyTrigger (fullcalendar.js:9352)
    at SubClass.DateComponent.publiclyTrigger (fullcalendar.js:8780)
    at EventPointing.handleClick (fullcalendar.js:6599)
    at HTMLAnchorElement.<anonymous> (fullcalendar.js:3352)
    at HTMLDivElement.dispatch (jquery.js:5183)
    at HTMLDivElement.g.handle (jquery.js:4991)

Also when I create an event repeating every day like this
image
this error is thrown when viewing the /calendar page:
image

Maybe repetition is broken (?)

Reminders appears to be broken too... 😢
When starting NodeBB I'm getting this error too on console log:

2019-01-20T18:50:57.932Z [4567/10548] - error: Cannot read property 'reminders' of null
TypeError: Cannot read property 'reminders' of null
    at reminders (/home/ectua/NodeBB/node_modules/nodebb-plugin-calendar/src/lib/reminders.js:126:40)
    at Array.reduce (<anonymous>)
    at reduce (/home/ectua/NodeBB/node_modules/nodebb-plugin-calendar/src/lib/reminders.js:125:31)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)
pitaj commented

I've done what I can to try to remedy these issues. Try nodebb-plugin-calendar@1.0.0-alpha.45. Also, try editing and saving any posts with events in them, that may fix the problems you're seeing.